zeldor.biz

Linux, programming and more

Copyright © 2023
Log in

KVM-Virtualization under OpenSUSE

November 10, 2016 by Igor Drobot Leave a Comment

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

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

zypper in kvm libvirt libvirt-python qemu virt-manager

Add libvirtd to system autostart:

systemctl enable libvirtd.service

systemctl enable libvirtd.service

… and start the libvirt daemon:

systemctl start libvirtd.service

systemctl start libvirtd.service

zypper in bridge-utils

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'

/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
 src="/etc/sysconfig/network/ifcfg-eth0">
BOOTPROTO='none'
STARTMODE='auto'
IPADDR=''
NETMASK=''
PREFIXLEN=''

src="/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'

dd if=/dev/vg0/system01 bs=4096 | pv | gzip | ssh root@base.ackbyte.com 'gzip -d | dd of=/dev/vg0/system01 bs=4096'

Filed Under: Linux Tagged With: KVM, openSUSE, virtualization

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *