[libvirt-users] /dev/tty only on a new container

Hi folks :), I migrated the host from the Debian Squeeze to Ubuntu 12.10. Old containers work but I can't use the ssh command, /dev/tty is missing. On a new container, /dev/tty is here. The libvirt configuration is the same. Any ideas? Thanks. -- Sebastien Douche <sdouche@gmail.com> Twitter: @sdouche / G+: +sdouche

On Thu, Apr 04, 2013 at 03:22:54PM +0200, Sebastien Douche wrote:
Hi folks :), I migrated the host from the Debian Squeeze to Ubuntu 12.10. Old containers work but I can't use the ssh command, /dev/tty is missing. On a new container, /dev/tty is here. The libvirt configuration is the same.
Libvirt never creates any /dev/tty node, and /dev is a tmpfs created each time the container starts, so the only reason a /dev/tty could exist is if something you are running inside the container created it. The console devices libvirt creates are /dev/tty0, /dev/tty1, etc, with tty0 obviously being the first/primary one. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|

On Thu, Apr 4, 2013 at 3:30 PM, Daniel P. Berrange <berrange@redhat.com> wrote:
Libvirt never creates any /dev/tty node, and /dev is a tmpfs created each time the container starts, so the only reason a /dev/tty could exist is if something you are running inside the container created it.
Thanks Daniel. this is what I understood. I added the device manually and it works now. -- Sebastien Douche <sdouche@gmail.com> Twitter: @sdouche / G+: +sdouche

Hi Sebastien. Which SSH connectivity did you lose? From the hypervisor to the VM's? Did you started the VM's? Can you telnet TCP 22 port on the VM from the hypervisor? Are you able to use livbirt-manager to connect first to the hypervisor then (in case it's configured) to the VNC service running on the VM in order to access to it through a GUI? Regards. Javier 2013/4/4 Sebastien Douche <sdouche@gmail.com>
Hi folks :), I migrated the host from the Debian Squeeze to Ubuntu 12.10. Old containers work but I can't use the ssh command, /dev/tty is missing. On a new container, /dev/tty is here. The libvirt configuration is the same.
Any ideas? Thanks.
-- Sebastien Douche <sdouche@gmail.com> Twitter: @sdouche / G+: +sdouche
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

On Thu, Apr 4, 2013 at 3:22 PM, Sebastien Douche <sdouche@gmail.com> wrote:
I migrated the host from the Debian Squeeze to Ubuntu 12.10. Old containers work but I can't use the ssh command, /dev/tty is missing. On a new container, /dev/tty is here. The libvirt configuration is the same.
Hi, I'm back again with the same issue. After updated the server to Ubuntu 13.04, all LXC containers lost the /dev/tty device (can't create it manually). Same issue with a *fresh* LXC container. The "funny" thing is the container works fine if launched by lxc-start, so the problem seems to be with the container configuration. I'm lost. Ubuntu bug or just stupid brain? -- Sebastien Douche <sdouche@gmail.com> Twitter: @sdouche / G+: +sdouche
participants (3)
-
Daniel P. Berrange
-
Javi Legido
-
Sebastien Douche