[libvirt] [PATCH] lxc: Bind mount container TTYs
mkletzan at redhat.com
Wed Jul 1 09:40:38 UTC 2015
On Tue, Jun 30, 2015 at 07:54:25PM +0200, Richard Weinberger wrote:
>Am 30.06.2015 um 19:12 schrieb Martin Kletzander:
>>> Hmm, very strange. What guest container are you using?
>>> I tried with a Debian jessi and had user namespace enabled.
>> Sorry for the late reply. I used simple one. Only gentoo's stage 3
>> unpacked into a directory, no special settings used for it. Removing
>> /etc/securetty works for me. I'll give it another try, but probably
>> after the freeze. If anyone else wants to review this, don't get
>> stopped by the problems I'm having!
>Hmm, just gave gentoo a try, worked perfectly fine.
I tried with latest master with and without your patch. Wtih your
patch I got to the problem exactly once even though I tried multiple
times. And even though it didn't happen to me at all without your
patch, I'm thinking it's just some weird rare race and it's not
related to what you've sent. That just wouldn't make sense to me.
I also suspected the problem being me starting with --console
parameter, but trying with and without that didn't help isolate the
Anyway, that patch still doesn't help me get rid of /etc/securetty.
The output of 'tty' is still /dev/pts/0 and unless I remove
/etc/securetty it doesn't start. What is the output of 'tty' and what
ttys do you have in /etc/securetty in your container?
>Can you share your xml?
Sure, mine is almost same as yours except the user namespace
<memory mode='strict' placement='auto'/>
<filesystem type='mount' accessmode='passthrough'>
<target type='lxc' port='0'/>
>This is mine:
> <uid start='0' target='100000' count='998'/>
> <gid start='0' target='100000' count='998'/>
> <uid start='65533' target='100998' count='2'/>
> <gid start='65533' target='100998' count='2'/>
> <console type='pty'/>
> <filesystem type='mount'>
> <source dir='/srv/container/gentoo/'/>
> <target dir='/'/>
> <interface type='bridge'>
> <source bridge='br0'/>
> <mac address='52:54:00:44:55:66'/>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: not available
More information about the libvir-list