SLES 11 SP4
Sponsored Link

Install KVM2015/11/28

 
It's Virtualization with KVM ( Kernel-based Virtual Machine ) + QEMU.
This requires that the CPU on your computer which has a function Intel VT or AMD-V.
[1] Install required packages.
dlp:~ #
zypper -n install kvm libvirt virt-manager bridge-utils
# load modules

dlp:~ #
modprobe kvm

dlp:~ #
modprobe kvm_intel

dlp:~ #
lsmod | grep kvm

kvm_intel             150650  0
kvm                   427332  1 kvm_intel

dlp:~ #
/etc/init.d/libvirtd start

dlp:~ #
chkconfig libvirtd on

[2] Configure Bridge networking for KVM virtual machines.
dlp:~ #
mv /etc/sysconfig/network/ifcfg-eth0 /etc/sysconfig/network/ifcfg-br0

dlp:~ #
vi /etc/sysconfig/network/ifcfg-br0
# add follows to the end

BRIDGE='yes'
BRIDGE_FORWARDDELAY='0'
BRIDGE_PORTS='eth0'
BRIDGE_STP='off'
dlp:~ #
vi /etc/sysconfig/network/routes
# add gateway for br0 to the end

default 10.0.0.1 - br0
dlp:~ #
/etc/init.d/network restart
dlp:~ #
br0       Link encap:Ethernet  HWaddr 00:0C:29:4C:18:F8
          inet addr:10.0.0.30  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe4c:18f8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:58 errors:0 dropped:0 overruns:0 frame:0
          TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5841 (5.7 Kb)  TX bytes:16822 (16.4 Kb)

eth0      Link encap:Ethernet  HWaddr 00:0C:29:4C:18:F8
          inet6 addr: fe80::20c:29ff:fe4c:18f8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13999 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7242 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:18469005 (17.6 Mb)  TX bytes:564689 (551.4 Kb)

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:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:100 (100.0 b)  TX bytes:100 (100.0 b)
Matched Content