Fedora 17
Sponsored Link

Install KVM
2012/06/10
 
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 ~]#
systemctl enable libvirtd.service

[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: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.30  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::224:1dff:fe13:7a26  prefixlen 64  scopeid 0x20<link>
        ether 00:24:1d:13:7a:26  txqueuelen 0  (Ethernet)
        RX packets 57  bytes 5767 (5.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 62  bytes 7740 (7.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 6  bytes 828 (828.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 6  bytes 828 (828.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::224:1dff:fe13:7a26  prefixlen 64  scopeid 0x20<link>
        ether 00:24:1d:13:7a:26  txqueuelen 1000  (Ethernet)
        RX packets 60  bytes 6745 (6.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 80  bytes 10224 (9.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 44  base 0xe000

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether ba:52:99:e3:33:0c  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Matched Content
 
Tweet