Re: lxc: Add /dev/tty to lxcContainerPopulateDevices() ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel P. Berrange [berrange@xxxxxxxxxx] wrote:
| On Wed, May 16, 2012 at 03:44:19PM -0700, Sukadev Bhattiprolu wrote:
| 
| No, we can't just pass in the host's /dev/tty device to the
| container. We need to virtualize it, but this is not really
| very easy todo if we need to take account of multiple consoles.
| Probably as a temporar hack, we can just symlink it to /dev/tty1
| and try to figure out a proper fix later

man tty(4) says: 

	It is a  synonym for the controlling terminal of a process, if any.

so whether the process is in the host or in a container, /dev/tty will
is just the process's own controlling terminal right ? Two processes each
writing to "/dev/tty" would very well be writing to different terminals.

So, I don't see why it needs to be virtualized. Besides, linking /dev/tty1
to /dev/tty would not be the right I think.

Sukadev

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux