SLES 15
Sponsored Link

KVM : Install2019/01/18

 
This is the Virtualization Configuration 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 qemu-kvm libvirt virt-install
# verify modules are loaded

dlp:~ #
lsmod | grep kvm

kvm_intel             241664  0
kvm                   704512  1 kvm_intel
irqbypass              16384  1 kvm

dlp:~ #
systemctl start libvirtd

dlp:~ #
systemctl enable libvirtd

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

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

BRIDGE='yes'
BRIDGE_FORWARDDELAY='0'
BRIDGE_PORTS='eth0'
BRIDGE_STP='off'
dlp:~ #
vi /etc/sysconfig/network/routes
# set default gateway for br0

default 10.0.0.1 - br0
dlp:~ #
systemctl restart wickedd wicked
dlp:~ #
ip addr

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP group default qlen 1000
    link/ether 52:54:00:48:0e:55 brd ff:ff:ff:ff:ff:ff
3: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 52:54:00:48:0e:55 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.30/24 brd 10.0.0.255 scope global br0
       valid_lft forever preferred_lft forever
    inet6 fe80::5054:ff:fe48:e55/64 scope link
       valid_lft forever preferred_lft forever
Matched Content