Install
[root@vm1 ~]# cd /etc/yum.repos.d/
[root@vm1 yum.repos.d]# scp server1:/etc/yum.repos.d/cl* .
The authenticity of host 'server1 (192.168.11.108)' can't be established.
RSA key fingerprint is f8:18:e4:f7:bc:fc:f5:2a:f2:a5:1c:dd:71:94:a1:f9.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'server1,192.168.11.108' (RSA) to the list of known hosts.
root@server1's password:
classroom.repo
100% 798 0.8KB/s 00:00
[root@vm1 yum.repos.d]# /etc/init.d/autofs start
automount (을)를 시작 중: automount: program is already running.
[ OK ]
[root@vm1 yum.repos.d]# yum install qemu-kvm libvirt virt-manager
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
.
Complete!
[root@vm1 yum.repos.d]# /etc/init.d/libvirtd start
libvirtd 데몬을 시작 중: [ OK ] -> hypervisor 정상작동
[root@vm1 yum.repos.d]# chkconfig libvirtd on
[root@vm1 yum.repos.d]#
프로그램에 가상머신 관리자 생성
[root@vm1 yum.repos.d]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:26:9E:95:17:7F
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:48 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3230 (3.1 KiB) TX bytes:3230 (3.1 KiB)
virbr0 Link encap:Ethernet HWaddr 52:54:00:5D:7D:14
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
wlan0 Link encap:Ethernet HWaddr 00:26:C6:43:0A:40
inet addr:192.168.11.111 Bcast:192.168.11.255 Mask:255.255.255.0
inet6 addr: fe80::226:c6ff:fe43:a40/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:44424 errors:0 dropped:0 overruns:0 frame:0
TX packets:15124 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37258910 (35.5 MiB) TX bytes:1659266 (1.5 MiB)
NETWORK
network configuration files
IP add : /etc/sysconfig/network-scripts/ifcfg-ethX
- IPADDR=
- DNS1=
-
/usr/share/libvirt/networks/
[root@vm1 networks]# virsh net-edit default
Network default XML configuration edited.
[root@vm1 networks]# virsh net-destroy default
default 네트워크 강제 종료
[root@vm1 networks]# virsh net-start default
default 네트워크 시작
[root@vm1 networks]# ifconfig virbr0
virbr0 Link encap:Ethernet HWaddr 52:54:00:5D:7D:14
inet addr:10.100.100.1 Bcast:10.100.100.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
'Linux' 카테고리의 다른 글
kickstart 설치방법 (0) | 2014.03.26 |
---|---|
Linux LVM생성 (0) | 2014.03.25 |
리눅스가상화 KVM (0) | 2014.03.24 |
UNIX 기본 명령어 목록 (0) | 2014.02.18 |
콘솔 리눅스 해상도 변경 (0) | 2014.02.01 |