Difference between revisions of "KVM"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 7: Line 7:
 
  The operating system does not support full virtualization
 
  The operating system does not support full virtualization
 
  The CPUs support full virtualization, but it is disabled in the BIOS
 
  The CPUs support full virtualization, but it is disabled in the BIOS
 +
 
-> you create a new connection
 
-> you create a new connection
 +
 
-> reboot your computer
 
-> reboot your computer
 +
 +
create a new virtual machine. You get an error
 +
internal error No <source> 'bridge' attribute specified with <interface type='bridge'/>
 +
 +
-> you disable networking
 +
 
=> it works
 
=> it works
  

Revision as of 09:25, 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

create a new virtual machine. You get an error

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

-> you disable networking

=> 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