KVM

From Linuxintro
Revision as of 10:17, 10 March 2010 by imported>ThorstenStaerk (→‎SUSE 11.2)

SUSE 11.2

  • Make sure you have a modern computer and "virtualization technology" switched on in your BIOS
  • open a console and enter
# yast -i kvm virt-manager
# /etc/init.d/libvirtd start
# chkconfig libvirtd on
# virt-manager

Now you try to create a new virtual machine. When you use Paravirtualization, you get the error message "The hypervisor is not running.". When you try to use "Full virtualization", you get an error

The operating system does not support full virtualization
The CPUs support full virtualization, but it is disabled in the BIOS

To resolve this,

  • create a new connection
  • reboot your computer
  • start virt-manager

create a new virtual machine. You get an error

internal error No <source> 'bridge' attribute specified with <interface type='bridge'/>

To resolve this

  • you disable networking

Now it works - you can create a virtual machine without networking.

SUSE 11.1

Here is an example how to use KVM virtualization on SUSE Linux 11.1.

Install kvm

open a console and enter:

yast -i kvm
yast -i virt-manager
/etc/init.d/libvirtd start
chkconfig libvirtd on
virt-manager

Now comes the first pitfall: You have to select localhost, then new. Otherwise you will not be able to create new virtual machines.

Install virtinst

Suddenly you will find out you need to install virtinst.

tweedleburg:~/virtinst-0.500.2 # python setup.py install

uninstall vm and libvirt

Install libdevmapper

From ftp://sources.redhat.com/pub/dm/

Install libvirt

Start it

Start virt-manager:

/usr/local/bin/virt-manager