Wednesday, 27 March 2013

Upgrading xen server from Etch to Wheezy

One of the issues with Xen, which has since been addressed by PyGRUB, is that the kernel used by a VM is controlled by the dom0, not by the vm. So, like me, you can cheerfully dist-upgrade within a vm, to no effect.

Ideally we want to got from Etch to Lenny to Squeeze.

As a half way house lets try to get an unused vm to work with a squeeze kernel.

I have an unused vm! Update /etc/apt/sources.list to use squeeze. Oh, the debian keyring has changed:

apt-get install debian-archive-keyring

Now try to get a copy of the kernel image we need, as per above release notes.

apt-get install xen-linux-system-2.6-xen-amd64

Fat chance, as the vm is running an old kernel.

On the vm install xen-linux-system-2.6.26-2-xen-amd64, then copy to dom0

cd /boot
scp .
scp .
xm shutdown
cd /etc/xen
xm create

Whilst the config works (no Error 22), ie we have a xen enabled kernel, the machine crashes, and does so early: no output on console.

Revert to a lenny system running an etch kernel.

No comments:

Post a Comment