1. Install xen and utilities
$sudo apt-get install xen-hypervisor-4.1-amd64 xen-utils-4.1 xenwatch xen-tools xen-utils-common xenstore-utils $sudo apt-get install virtinst $sudo apt-get install virt-viewer virt-manager
2.Restart OS and Select Xen Kernal
Verify the Xen installation using
$sudo xm info
If this command does not return any error, then the installation is correct.
3.Xend Configuration
Edit /etc/xen/xend-config.sxp and uncomment this line
(xend-unix-server no)
and change to
(xend-unix-server yes)
Edit .bashrc file using
#vi ~/.bashrc, add the following line:
export VIRSH_DEFAULT_CONNECT_URI="xen:///"
4. Restart OS and Select Xen Kernel
Verify libvirt Installation
$sudo virsh version
Compiled against library: libvir 0.8.3 Using library: libvir 0.8.3 Using API: Xen 3.0.1 Running hypervisor: Xen 4.0.0If got output like this, you have installed every package correctly.
5.Creating VM using virt-manager
Here I am telling about virtual machine creation using virt-manger
Type $sudo virt-manager for getting GUI for virt-manager
Create new VM using virt-manager(Learn More)
Solution for common error during DomU is given below..
1. Show Something like this
Fix it using$sudo mkdir /usr/lib64/xen -p $sudo cp /usr/lib/xen-4.1/* -r /usr/lib64/xen/
2. Get like this
Solve it using
$sudo mkdir /usr/share/qemu $sudo cp -r /usr/share/qemu-linaro/keymaps /usr/share/qemu/