Lenny domU Xencons
Even though at some point it looked like debian lenny will not have full xen support (for the 2.6.26 amd64 kernel) in the end this was fixed and lenny supports fully Xen ever on amd64. Upgrading from 2.6.18 to 2.6.26 is very straightforward (though we were using xen-hypervisor 3.2-1 already) and the only problem noticed was that the console on the domU machines was no longer working: it was showing the output correctly, but you could not enter anything on the console.
This is caused by the ‘new Xen console’ (xen now uses hvc0 for its console) and to fix it you have to add to your virtual machine xen configuration file one line: extra = “console=hvc0 xencons=tty”, restart the vm and it should be fine. In /etc/xen/<myvm>.cfg add this line:
extra = "console=hvc0 xencons=tty"
If you are using pygrub then in grub.conf on the domU add: console=hvc0 xencons=tty to the kernel line, like:
kernel /boot/vmlinuz-2.6.26-1-xen-amd64 ro root=/dev/sda1 console=hvc0 xencons=tty
Here are the xen packages lenny uses:
ii libxenstore3.0 3.2.1-2 Xenstore communications library for Xen
ii linux-image-2.6.26-1-xen-amd64 2.6.26-13 Linux 2.6.26 image on AMD64, oldstyle Xen su
ii linux-modules-2.6.26-1-xen-amd64 2.6.26-13 Linux 2.6.26 modules on AMD64
ii xen-hypervisor-3.2-1-amd64 3.2.1-2 The Xen Hypervisor on AMD64
ii xen-tools 3.9-4 Tools to manage Debian XEN virtual servers
ii xen-utils-3.2-1 3.2.1-2 XEN administrative tools
ii xen-utils-common 3.2.0-2 XEN administrative tools - common files
ii xenstore-utils 3.2.1-2 Xenstore utilities for Xen
>
Tags: debian-lenny, lenny, xen







21st March 2009, 13:45
Instead of this, you can also mount your existing domU partitions and modify /etc/inittab changing line
1:2345:respawn:/sbin/getty 38400 tty1
to
1:2345:respawn:/sbin/getty 38400 hvc0
New domU hosts created by xen-tools will have inittab modified automaticaly
13th April 2009, 18:14
[...] http://www.ducea.com/2009/03/18/lenny-domu-xencons/ Tags:debian xen etch lenny upgrade virtualization Possibly related postsInstall git 1.6 from source on debian etch [...]
1st August 2009, 11:08
You saved my day!
I had _no_ clue why my domU was getting “stuck” at “Starting scheduling services: crond”. Thanks.