Fedora 16
Sponsored Link

Install KVM
2011/11/09
 
It's Virtualization with KVM ( Kernel-based Virtual Machine ) + QEMU. This requires that the CPU on your computer has a function Intel VT or AMD-V.
[1] Install KVM
[root@dlp ~]#
yum -y install qemu-kvm libvirt python-virtinst bridge-utils
[root@dlp ~]#
lsmod | grep kvm

kvm_intel
43336 0

kvm
306680 1 kvm_intel

[root@dlp ~]#
systemctl start libvirtd.service

[root@dlp ~]#
chkconfig libvirtd on
[2] Configure Bridge networking for KVM virtual machine.
[root@dlp ~]#
cd /etc/sysconfig/network-scripts

[root@dlp network-scripts]#
cp ifcfg-eth0 ifcfg-br0

[root@dlp network-scripts]#
vi ifcfg-br0
DEVICE=
br0
# change

HWADDR=00:22:68:5E:34:06
ONBOOT=yes
BOOTPROTO=none
NM_CONTROLLED=yes
IPADDR=10.0.0.30
NETMASK=255.255.255.0
TYPE=
Bridge
# change

GATEWAY=10.0.0.1
DNS1=10.0.0.1
IPV6INIT=no
USERCTL=no
PREFIX=24
[root@dlp network-scripts]#
vi ifcfg-eth0
DEVICE=eth0
HWADDR=00:22:68:5E:34:06
ONBOOT=yes
BOOTPROTO=none
NM_CONTROLLED=yes
IPADDR=10.0.0.30
NETMASK=255.255.255.0
TYPE=Ethernet
GATEWAY=10.0.0.1
DNS1=10.0.0.1
IPV6INIT=no
USERCTL=no
PREFIX=24
BRIDGE=br0
# add
[root@dlp network-scripts]#
[root@dlp ~]#
br0       Link encap:Ethernet  HWaddr 00:22:68:5E:34:06
          inet addr:10.0.0.30  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::222:68ff:fe5e:3406/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:336 errors:0 dropped:0 overruns:0 frame:0
          TX packets:350 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:26530 (25.9 KiB)  TX bytes:40462 (39.5 KiB)

eth0      Link encap:Ethernet  HWaddr 00:22:68:5E:34:06
          inet6 addr: fe80::222:68ff:fe5e:3406/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:362 errors:0 dropped:0 overruns:0 frame:0
          TX packets:365 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:34070 (33.2 KiB)  TX bytes:41504 (40.5 KiB)
          Interrupt:44 Base address:0xa000

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:62 errors:0 dropped:0 overruns:0 frame:0
          TX packets:62 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5640 (5.5 KiB)  TX bytes:5640 (5.5 KiB)

virbr0    Link encap:Ethernet  HWaddr 52:54:00:CD:6D:55
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          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:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
Matched Content