Difference between revisions of "KVM"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 1: Line 1:
 
= SUSE 11.2 =
 
= SUSE 11.2 =
 +
Make sure you have a modern computer and "virtualization technology" switched on in your BIOS
 
  # yast -i kvm virt-manager
 
  # yast -i kvm virt-manager
 
  # /etc/init.d/libvirtd start
 
  # /etc/init.d/libvirtd start
 
  # chkconfig libvirtd on
 
  # chkconfig libvirtd on
 +
You get an error
 +
The operating system does not support full virtualization
 +
The CPUs support full virtualization, but it is disabled in the BIOS
 +
-> you create a new connection
 +
-> reboot your computer
 +
=> it works
  
 
= SUSE 11.1 =
 
= SUSE 11.1 =

Revision as of 09:23, 10 March 2010

SUSE 11.2

Make sure you have a modern computer and "virtualization technology" switched on in your BIOS

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

You get an error

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

-> you create a new connection -> reboot your computer => it works

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