It’s been a while since i updated the Templates, here comes our new friend Ubuntu 10.04 and it’s running in Pv mode on Xenserver Yep :)

As usual there are a few tweaks that had to be done to the vm for it to work, however this time it is easier then 9.10
If you download my template you do not need to do any changes. however if you update the kernel once your vm is running, then you must tell Xenserver where to find this kernel,
since the new ubuntu uses grub2, xen does not know how to handle this, so instead of pygrub reading the grub.cfg file, we need to specify the kernel and ramdisk manually.

This is how it can be done.
Log in to your xenserver via ssh
find out the UUID of your vm


xe vm-list
uuid ( RO)           : 7022730c-67c1-224e-481e-501e9930e03a
name-label ( RW): Db Srv
power-state ( RO): running
uuid ( RO)           : b752d5f8-d102-3057-4487-a60bec1d0e12
name-label ( RW): FileSrv
power-state ( RO): halted
uuid ( RO)           : c74a6236-4a5a-9245-ffe6-b719b6f28ee2
name-label ( RW): Ubuntu10
power-state ( RO): halted

Copy the uuid of your ubuntu10 vm, if in xen you renamed it, then under name-label you need to look for whatever you called it.

xe vm-param-set uuid=c74a6236-4a5a-9245-ffe6-b719b6f28ee2 PV-bootloader-args=”–kernel=/boot/vmlinuz-2.6.32-21-server –ramdisk=/boot/initrd.img-2.6.32-21-server”
you need to update the kernel and ramdisk entries above with the ones in your grub.cfg after the update

Also Note that you no longer need a Xen kernel in order to Pv the vm, as this is all added in the generic kernel, so once you do an apt update and there is a kernel update, just get the details and run
the command above.

And that should be it :)

Username: root
password: password

You can download the template from here