I can confirm this bug on xen-tools version 3.1-1ubuntu1 for edgy
guests.

This is a rather silly bug, though. The problem is in file 30-disable-
gettys (/usr/lib/xen-tools/edgy.d/), in the following lines::

  #
  #  Remove the links for upstart
  #
  rm ${prefix}/etc/event.d/tty[^1]


The command above would be perfectly correct in a bash shell! But this script 
uses /bin/bash, which in turn is a sym-link to dash. In dash, the command above 
would remove ONLY  ${prefix}/etc/event.d/tty[^1], leaving all the other tty*.* 
files intact. Without a login process attached to tty1 there would be no login 
prompt after running xm console.

POSSIBLE FIXES:

 1. use the command bellow:

    find ${prefix}/etc/event.d -name 'tty?' | grep -v tty1 | xargs rm -v

 2. use bash instead of /bin/sh in this script.

WORKAROUNDS:

1. Mont the guest image disk so you can edit its files directly. The
guest vm should not be running.

export GUEST=/tmp/guest
mkdir ${GUEST}
sudo mount -o loop /home/xen/domains/you_xen_guest_hostname_here/disk.img 
${GUEST}


 2. Add the tty1 file bak

cat ${GUEST}/etc/event.d/tty2 | sed -e 's/tty2/tty1/' >
${GUEST}/etc/event.d/tty1


 3. Umount your guest image

cd /tmp
sudo umount ${GUEST}

-- 
no xm console prompt after debootstrap debian or ubuntu
https://bugs.launchpad.net/bugs/139046
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to