Quantcast
Channel: KVM – ID's blog
Viewing all articles
Browse latest Browse all 6

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:

1
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:

1
zypper in kvm libvirt libvirt-python qemu virt-manager

Add libvirtd to system autostart:

1
systemctl enable libvirtd.service

… and start the libvirt daemon:

1
systemctl start libvirtd.service
1
zypper in bridge-utils
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/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'
1
2
3
4
5
6
cat /etc/sysconfig/network/ifcfg-eth0
BOOTPROTO='none'
STARTMODE='auto'
IPADDR=''
NETMASK=''
PREFIXLEN=''
1
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 6

Latest Images

Trending Articles





Latest Images