[Bug 594836] Re: virsh unable to open console
Thanks, David. Hopefully we can leverage some of the lxc templating work to make it easier to create usable libvirt-lxc containers, which would ease testing. Marking this invalid. ** Changed in: libvirt (Ubuntu) Status: Incomplete => Invalid -- virsh unable to open console https://bugs.launchpad.net/bugs/594836 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 594836] Re: virsh unable to open console
I agree this bug is stale. Unfortunately I have lost access to the data/system with this broken container on it, so I will be unable to be of any assistance. Probably best to mark the but invalid/unresolved. On Wed, Aug 25, 2010 at 3:56 AM, Dave Walker wrote: > @David, This bug is starting to become stale - would you be able to > provide the additional information that Serge has requested? > > Thanks :) > > -- > virsh unable to open console > https://bugs.launchpad.net/bugs/594836 > You received this bug notification because you are a direct subscriber > of the bug. > > Status in “libvirt” package in Ubuntu: Incomplete > > Bug description: > Hi, > > Using a simple config on lucid 10.04LTS, I get varying behavior of the pts > device that is supposed to be created for the console: This happens both > with stock 0.7.5 versions and 0.7.7-4ubuntu1~jdstrand4. > > > vm1 > 65065c54-1085-b595-9bcd-7ccbd03b91e6 > 50 > 50 > 2 > > exe > /sbin/init > > > destroy > restart > destroy > > /usr/lib/libvirt/libvirt_lxc > > > > > > > > > > > > > > > > > Note that the pts device was never created: > > $ ls -l /dev/pts/ > total > crw--w 1 root tty 136, 0 2010-06-15 13:58 0 > crw--w 1 dbryson tty 136, 1 2010-06-15 13:48 1 > crw--w 1 dbryson tty 136, 2 2010-06-15 14:04 2 > c- 1 root root 5, 2 2010-06-15 10:24 ptmx > > Also this is NOT the same as bug 542324, notice that my dumpxml has properly > formatted newlines. This may or may not be related to strange behavior when > ssh'ing to the machine, it shows me a terminal prompt in my ssh session. > > dbry...@lxc4:/lxc$ ssh 192.168.122.12 > dbry...@192.168.122.12's password: > Linux lucid 2.6.32-21-server #32-Ubuntu SMP Fri Apr 16 09:17:34 UTC 2010 > x86_64 GNU/Linux > Ubuntu 10.04 LTS > > Welcome to the Ubuntu Server! > * Documentation: http://www.ubuntu.com/server/doc > > The programs included with the Ubuntu system are free software; > the exact distribution terms for each program are described in the > individual files in /usr/share/doc/*/copyright. > > Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by > applicable law. > > Last login: Tue Jun 15 21:07:09 2010 from 192.168.122.1 > Could not chdir to home directory /home/dbryson: No such file or directory > groups: cannot find name for group ID 1001 > dbry...@lucid:/$ > Ubuntu 10.04 LTS lucid tty1 > > lucid login: > > To unsubscribe from this bug, go to: > https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/594836/+subscribe > -- virsh unable to open console https://bugs.launchpad.net/bugs/594836 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 594836] Re: virsh unable to open console
@David, This bug is starting to become stale - would you be able to provide the additional information that Serge has requested? Thanks :) -- virsh unable to open console https://bugs.launchpad.net/bugs/594836 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 594836] Re: virsh unable to open console
I installed a fresh lucid VM under kvm, installed libvirt-bin, then took your xml file, replaced /sbin/init with /bin/init. I created /lxc/rootfs.dbryson, and did cd /lxc/rootfs.dbryson mkdir bin cd bin cp /bin/busybox . ln busybox init ln busybox sh then did virsh -c lxc:/// create u1.xml virsh -c lxc:/// start vm1 virsh -c lxc:/// console vm1 while the busybox-init wasn't entirely happy with the lack of an inittab, I haven't yet reproduced any console problems. In particular, I've done this both with /dev/pts/3 on the host being unused, and with it in use (forced by starting screen). Are you running virsh as root (or with sudo)? Just how frequently does it fail for you? When you say you ssh to your machine (192.168.122.12), does that mean you are ssh'ing from your container to the host? Can you give us the output of cat /proc/self/mounts inside the container, /bin/ls /dev/pts /dev/pts/ptmx both in the container and on the host? thanks, -serge -- virsh unable to open console https://bugs.launchpad.net/bugs/594836 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 594836] Re: virsh unable to open console
** Changed in: libvirt (Ubuntu) Status: New => Incomplete -- virsh unable to open console https://bugs.launchpad.net/bugs/594836 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 594836] Re: virsh unable to open console
Hi, thanks for filing this bug. Can you tell me how you populated /lxc/rootfs.dbryson ? Did you do a debootstrap, manually populate it with busybox, or some other way? Is /dev/ptmx on the host a device, or a link to /dev/pts/ptmx? -- virsh unable to open console https://bugs.launchpad.net/bugs/594836 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs