Lenny Dom0 guest console hangs at boot.

When you attempt to boot a Xen DomU on Debian Lenny Dom0, the console might hang as the follows:

Starting NFS servers: nfsd mountd.
Starting automounter: amd.
Starting anac(h)ronistic cron: anacron.
Starting periodic command scheduler: crond.
Running local boot scripts (/etc/rc.local).

This problem occurs when using xen-tools to create a new (Debian Lenny in my case) guest image and configuration.

The cause for the problem is when the guest configuration file does not have the “extra” configured.
To solve this problem – just add -

extra = ‘console=hvc0 xencons=tty

To your guest configuration file.

kernel = '/boot/vmlinuz-'
ramdisk = '/boot/initrd.img-'
extra = ‘console=hvc0 xencons=tty
memory = '512'
root = '/dev/sda2 ro'
disk = [
name = 'vm01'
vif = [ 'mac=00:16:7E:DC:C9:F6' ]
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'

If you are using pygrub, edit /boot/grub/menu.lst  on the domU and append -  console=hvc0 xencons=tty to the kernel line.

4 thoughts on “Lenny Dom0 guest console hangs at boot.”

  1. I have found that this problem does NOT exists when running Etch and using xne-tools to create an image. I confirm that this happens on my Lenny machine running an amd64 kernel when using xen-tools to create an image.

  2. Pingback: Xen Support » Blog Archive » Update - Lenny Dom0 guest console hangs at boot
  3. Thank you thank you thank you!!!! :)

    I have previously also added this line to dom0′s /etc/inittab:
    co:2345:respawn:/sbin/getty 38400 hvc0

    I’m not sure I need it, but it works so I won’t mess with it anymore.

    But your advice solved the problem for me! Thanks again!

Leave a Reply

Your email address will not be published. Required fields are marked *

* Copy This Password *

* Type Or Paste Password Here *

HTML tags and attributes are not allowed.