Fedora 18
Sponsored Link

Install KVM2013/01/22

 
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. (Replace the ifcfg-eth0 to the name of interface on your system.)
[root@dlp ~]#
cd /etc/sysconfig/network-scripts

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

[root@dlp network-scripts]#
vi ifcfg-br0
# change like follows

TYPE=Bridge
BOOTPROTO=none
DEVICE=br0
ONBOOT=yes
IPADDR=10.0.0.30
NETMASK=255.255.255.0
GATEWAY=10.0.0.1
DNS1=10.0.0.10
[root@dlp network-scripts]#
vi ifcfg-eth0
# change like follows

HWADDR=00:24:1D:13:7A:26
TYPE=Ethernet
DEVICE=eth0
ONBOOT=yes
BRIDGE=br0
[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 41  bytes 4559 (4.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 47  bytes 6404 (6.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING<  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        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

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 44  bytes 5313 (5.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 64  bytes 8858 (8.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 7a:93:33:e5:cc:ac  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