Ubuntu Oneiric as Xen Dom0

Last updated November 20, 2011

I have a machine running Ubuntu Oneiric and I wanted to use it as a Xen Dom0. But it seems the documentation around the web hasn’t yet caught up with the Xen hypervisor being reincluded in Ubuntu with Oneiric’s release. The docs and blog posts I found went through the old way of building Xen-enabled kernels, or assumed you were using a graphical interface, or suggested a nondeterministic way to select a default kernel on boot.

But there’s a much simpler way:

    # aptitude install xen-hypervisor
    # mv /etc/grub.d/20_linux_xen /etc/grub.d/09_linux_xen
    # update-grub
    # reboot

And that’s it.