We recently reinstalled our main server. It’s a Xen 4.0.1 host, based on Debian Squeeze. We don’t have many VM on it, it’s basically to save some power and have a sandbox for some test installations. Can be useful, quite often.
Instead of using plain CLI tools (xen-tools basically), I decided to give a try to one of the most well known interfaces for Xen: Convirt. Formerly xenman, born some years ago, at some time it moved to a commercial software, with open source base. Can be installed on custom host, as in my case, or downloaded as VM appliance!
Beside all considerations, it’s quite cool, even if I find documentation a bit lacking, the forum has some nice people. Not really as much as I’d like, but useful.
Our main VM is an Ubuntu 10.04 64-bit server. Convirt comes with templates for Centos 5.4 and Fedora. Not really a rich choice! 🙂 So I installed it as Hardware Virtualization (HVM), but this means very poor performances, expecially when talking about disk IO. And since we use Zimbra, that’s a critical point! So it was mandatory to convert the machine to ParaVirtualization (PV).
There is no clear documentation about that, but the steps are pretty quick and straightforward. Supposing you created the domU using the standard Linux_CD_Install, proceed as follows:
- shutdown your HVM instance
- login to Convirt admin interface, and edit settings of the VM
- under storage tab, for each disk entry change the VM device attribute from hd* to xvd*
- under boot params, the dom0 kernel must be passed, so in my case:
Root device: /dev/xvda1
- under miscellaneous tab, remove builder and vncunused items
- if you have VNC configured in your VM, add
- if your guest fstab was not configured using UUIDs, adjust it accordingly, as per step 3
- start your VM, and you should be done!