Quantcast
Channel: zeldor.biz
Viewing all articles
Browse latest Browse all 5

KVM-Virtualization under OpenSUSE

$
0
0

libvirt

KVM, Kernel-based Virtual Machine, is a hypervisor built into the Linux kernel. It is similar to Xen in purpose but much simpler to get running.

Unlike native QEMU, which uses emulation, KVM is a special operating mode of QEMU that uses CPU extensions (HVM) for virtualization via a kernel module.

Verify if your CPU supports hardware virtualization
The following should return a valid flag for each CPU-Thread which confirm, that hardware virtualisation is enabled:

egrep '(vmx|svm)' --color=always /proc/cpuinfo

You have no result. You may need to enable virtualization support in your BIOS.

Insall required packages for KVM:

zypper in kvm libvirt libvirt-python qemu virt-manager

Add libvirtd to system autostart:

systemctl enable libvirtd.service

… and start the libvirt daemon:

systemctl start libvirtd.service
zypper in bridge-utils
/etc/sysconfig/network/ifcfg-br0
BOOTPROTO='static'
BRIDGE='yes'
BRIDGE_FORWARDDELAY='0'
BRIDGE_PORTS='eth0'
BRIDGE_STP='off'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR='176.9.156.81/32'
MTU=''
NAME=''
NETWORK=''
REMOTE_IPADDR='176.9.156.65'
STARTMODE='auto'
IPADDR_0='192.168.3.1/24'
LABEL_0='lan'
IPADDR_1='2a01:4f8:160:4252::2/64'
LABEL_1='ipv6'
 src="/etc/sysconfig/network/ifcfg-eth0">
BOOTPROTO='none'
STARTMODE='auto'
IPADDR=''
NETMASK=''
PREFIXLEN=''
dd if=/dev/vg0/system01 bs=4096 | pv | gzip | ssh root@base.ackbyte.com 'gzip -d | dd of=/dev/vg0/system01  bs=4096'

Viewing all articles
Browse latest Browse all 5

Trending Articles