[libvirt] [PATCH] lxc: Bind mount container TTYs
mkletzan at redhat.com
Wed Jul 1 09:47:11 UTC 2015
On Wed, Jul 01, 2015 at 11:40:38AM +0200, Martin Kletzander wrote:
>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.
Definitely not related to your patches as Michal has the same problem
and it's reproducible :-)
>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 unit='KiB'>1048576</memory>
> <currentMemory unit='KiB'>1048576</currentMemory>
> <vcpu placement='auto'>1</vcpu>
> <memory mode='strict' placement='auto'/>
> <type arch='x86_64'>exe</type>
> <clock offset='utc'/>
> <filesystem type='mount' accessmode='passthrough'>
> <source dir='/mnt/lxc_gentoo'/>
> <target dir='/'/>
> <interface type='bridge'>
> <mac address='52:54:00:ae:8b:47'/>
> <source bridge='virbr0'/>
> <target dev='viftestmaster'/>
> <guest dev='eth0'/>
> <console type='pty'>
> <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