I was trying to make Windows DomU work on Ubuntu+Xen setup. I have to spend couple of hours to find out in what sequence we should do the installation and configuration.
Ubuntu support xen officially from 11.10 version. But there is some issue while creating DomU. Here find some easy step to configure xen 4.1 on 64 bit version of ubuntu 11.10 and solve issue in DomU creation.
1. Install xen and utilities
2.Restart OS and Select Xen KernalVerify the Xen installation using
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
Edit
.bashrc file using
, add the
following line:
4. Restart OS and Select Xen Kernel
Verify libvirt Installation
If got output like this, you have installed every package correctly.
Fix it using
Ubuntu support xen officially from 11.10 version. But there is some issue while creating DomU. Here find some easy step to configure xen 4.1 on 64 bit version of ubuntu 11.10 and solve issue in DomU creation.
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 KernalVerify 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)
- #vi ~/.bashrc
- 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.0
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
- $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
If
you have :
-
WARNING! Can't find hypervisor information in sysfs!Error: Unable to connect to xend: No such file or directory. Is xend running?It’s not that bad. It’s just that GRUB2 start the kernel without the hypervisor (the “right” line in the menu exists, but it’s in second position). So, you need to put Xen hypervisor first, and the “good” way to do this is :mv /etc/grub.d/10_linux /etc/grub.d/50_linuxupdate-grub2to get the supported diskinstall apt-get install qemu-kvmqemu-img convert source.vhd -O vmdk destination.vmdk2. If for some reason you wish to enable the root account, simply give it a password:sudo passwdsudo adduser [user name] adminGrub issuevirsh version give error- do not use sudo
No comments:
Post a Comment