Setting up a XEN Dom0 with a LTS release of Ubuntu Linux is easy again. Hooray!
First, install a standard Ubuntu Server System. Select no extras but ssh server.
If you’re going to setup your DomUs as decribed in my best-practice DomU setup on Ubuntu 12.04 (precise pangolin), please install with LVM and use 15G as root partition and about 5G as swap Space. The rest of the volume group is reserved for DomUs. Remember to mount /boot outside of the LVM, usually a 512M ext4 partition on the very beginning of the disk.
Install the XEN packages
# sudo aptitude install xen-hypervisor-amd64
modify grub configuration in /etc/default/grub
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|
I set the memory to 512MB for the Dom0. If you don’t plan additional services and use this host as Dom0 only, this is largely enough.
update the bootloader:
# sudo update-grub
select default toolstack
1 2 3 4 5 6 7 |
|
You could also use ‘xl’, I will use xm in this case.
change default behaviour of XEN DomU management:
By default, the system will save the memory of running domUs when shutting dowm or restarting the Dom0. This usually takes a very long time and also this can cause the system to hang. So we deactivate this in /etc/default/xendomains
1 2 3 4 5 |
|
reboot and run
# xm list
this should give you an output like this:
1 2 |
|
also, the xl info command gives you the right amount of memory you have on your system:
1 2 3 |
|
and that’s it.
coming up next:
DomU setup (paravirtualized Linux Guests, HVM Windows Guests)
recipe based on:
- https://help.ubuntu.com/community/XenProposed
- http://wiki.debian.org/Xen
- and several years playing around with XEN :)
Edited on 2012-04-09:
- changed xl to xm
- added config chapter for /etc/default/xendomains