[Bug 832123] Re: when booting oneiric cloud-images under libvirt, no pty is available

Scott Moser smoser at canonical.com
Tue Aug 23 20:11:02 UTC 2011


I dont know if it should be against libvirt rather than lxc. lxcguest
does things to make ubuntu work as an lxc guest.  I figured it was at
least relevant.

Here is how you can reproduce, given oneiric:

$ sudo apt-get install cgroup-bin
$ sudo apt-get install libvirt-bin  python-libvirt libvirt0
$ sudo adduser $USER libvirtd
$ exit # come back in to get into libvirt group

$ wget https://cloud-images.ubuntu.com/server/releases/natty/release-20110426/ubuntu-11.04-server-uec-amd64.tar.gz
$ tar -Sxvzf ubuntu-11.04-server-uec-amd64.tar.gz
$ mkdir mp
$ sudo mount -o loop natty-server-uec-amd64.img mp
$ sudo rsync -axHAS mp/ root
$ wget "http://smoser.brickies.net/git/?p=tildabin.git;a=blob_plain;f=lxc-libvirt-root;hb=HEAD" -O lxc-libvirt-root
$ chmod 755 lxc-libvirt-root
$ ./lxc-libvirt-root root/ --init /bin/bash

At this point, you can see a strange mount table at:

root at ubuntu:/# cat /proc/1/mountinfo
74 81 0:25 / /dev/pts rw,relatime - devpts devpts rw,gid=5,mode=620,ptmxmode=666
78 54 253:16 /root / rw,relatime - ext3 /dev/vdb rw,errors=continue,barrier=0,data=ordered
79 78 0:25 / /dev/pts rw,relatime - devpts devpts rw,gid=5,mode=620,ptmxmode=666
81 78 0:29 / /dev rw,relatime - tmpfs /dev rw
82 78 0:27 / /proc rw,relatime - proc /proc rw
83 78 0:30 / /sys rw,relatime - sysfs /sys rw
root at ubuntu:/# cat /proc/mounts
rootfs / rootfs rw 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=666 0 0
/dev/vdb / ext3 rw,relatime,errors=continue,barrier=0,data=ordered 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=666 0 0
/dev /dev tmpfs rw,relatime 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/832123

Title:
  when booting oneiric cloud-images under libvirt, no pty is available

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/832123/+subscriptions



More information about the Ubuntu-server-bugs mailing list