Libvirt

Description
http://libvirt.org/

A toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes)

Installation
Packages installation

Creating an XML file configuration to import an existing container in libvirt
 * /!\ Notice that libvirt can not install am OS in a container. Therefore, an LXC container with an OS must have been set up previously (that was the we saw before). Then, the file system directory will be given to libvirt when importing the VM. /!\

  ubuntu1 332768   exe /sbin/init  1   destroy restart destroy /usr/lib/libvirt/libvirt_lxc 
 * In order to create a libvirt container, an XML file describing the VM we want to import must be filled. There is a sample of such an XML file that belong to VM "ubuntu1" we have just created :

Booting the container

Connecting to the container localy

Connecting to the container remotly

Shutting the container 

Deleting the container

Problemes

 * Using Ubuntu as a host,when connecting to a libvirt VM running Debian, the guest appliance waits for the user to log in through two interfaces at a time (tty1 and console), so it is not possible to get identified.


 * Using Debian Wheeze as a host, when connecting to a libvirt VM, the console does not offer the user the possibility to log in. However, when using directly LXC there is no issue.