Re: [Bug 594836] Re: virsh unable to open console

2010-08-26 Thread David Bryson
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 davewal...@ubuntu.com 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.

 domain type='lxc' id='15398'
  namevm1/name
  uuid65065c54-1085-b595-9bcd-7ccbd03b91e6/uuid
  memory50/memory
  currentMemory50/currentMemory
  vcpu2/vcpu
  os
    type arch='x86_64'exe/type
    init/sbin/init/init
  /os
  clock offset='utc'/
  on_poweroffdestroy/on_poweroff
  on_rebootrestart/on_reboot
  on_crashdestroy/on_crash
  devices
    emulator/usr/lib/libvirt/libvirt_lxc/emulator
    filesystem type='mount'
      source dir='/lxc/rootfs.dbryson'/
      target dir='/'/
    /filesystem
    interface type='bridge'
      mac address='52:54:00:c8:8a:8b'/
      source bridge='virbr0'/
      target dev='veth0'/
    /interface
    console type='pty' tty='/dev/pts/3'
      source path='/dev/pts/3'/
      target port='0'/
    /console
  /devices
 /domain

 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

2010-08-26 Thread Serge Hallyn
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

2010-08-26 Thread David Bryson
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 davewal...@ubuntu.com 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.

 domain type='lxc' id='15398'
  namevm1/name
  uuid65065c54-1085-b595-9bcd-7ccbd03b91e6/uuid
  memory50/memory
  currentMemory50/currentMemory
  vcpu2/vcpu
  os
    type arch='x86_64'exe/type
    init/sbin/init/init
  /os
  clock offset='utc'/
  on_poweroffdestroy/on_poweroff
  on_rebootrestart/on_reboot
  on_crashdestroy/on_crash
  devices
    emulator/usr/lib/libvirt/libvirt_lxc/emulator
    filesystem type='mount'
      source dir='/lxc/rootfs.dbryson'/
      target dir='/'/
    /filesystem
    interface type='bridge'
      mac address='52:54:00:c8:8a:8b'/
      source bridge='virbr0'/
      target dev='veth0'/
    /interface
    console type='pty' tty='/dev/pts/3'
      source path='/dev/pts/3'/
      target port='0'/
    /console
  /devices
 /domain

 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
Bugs, which is subscribed to Ubuntu.

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

[Bug 594836] Re: virsh unable to open console

2010-08-26 Thread Serge Hallyn
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
Bugs, which is subscribed to Ubuntu.

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


[Bug 594836] Re: virsh unable to open console

2010-08-25 Thread Dave Walker
@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

2010-08-25 Thread Dave Walker
@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
Bugs, which is subscribed to Ubuntu.

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


[Bug 594836] Re: virsh unable to open console

2010-06-16 Thread Serge Hallyn
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


[Bug 594836] Re: virsh unable to open console

2010-06-16 Thread Serge Hallyn
** 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

2010-06-16 Thread Serge Hallyn
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

2010-06-16 Thread Serge Hallyn
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
Bugs, which is subscribed to Ubuntu.

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


[Bug 594836] Re: virsh unable to open console

2010-06-16 Thread Serge Hallyn
** 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
Bugs, which is subscribed to Ubuntu.

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


[Bug 594836] Re: virsh unable to open console

2010-06-16 Thread Serge Hallyn
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
Bugs, which is subscribed to Ubuntu.

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