[Bug 986956] Re: document that lxc-execute with separate rootfs does not work with commands
lxc-execute now works correctly without a rootfs in LXC 2.*.*. So closing this. ** Changed in: lxc (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/986956 Title: document that lxc-execute with separate rootfs does not work with commands To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/986956/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 986956] Re: document that lxc-execute with separate rootfs does not work with commands
Adding -s lxc.tty=1 -s lxc.console=/dev/console for interactive processes works for me: sudo lxc-execute -n test /bin/bash -s lxc.rootfs=/ -s lxc.tty=1 -s lxc.console=/dev/console -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/986956 Title: document that lxc-execute with separate rootfs does not work with commands To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/986956/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 986956] Re: document that lxc-execute with separate rootfs does not work with commands
I am seeing this behavior too on 12.04. I must specify lxc.aa_profile = unconfined, and I must omit a rootfs setting, for lxc-execute to work with anything interactive like bash or python. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/986956 Title: document that lxc-execute with separate rootfs does not work with commands To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/986956/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 986956] Re: document that lxc-execute with separate rootfs does not work with commands
Quoting B Clausius (ba...@gmx.de): > The last comments make me think that lxc-execute works with application > containers. Does it work? > > The simplest usage would be (without a created container test): > $ sudo lxc-execute -n test /bin/bash > But due to bug 981955 this does not work. With the workaround there: > $ sudo lxc-execute -n test /bin/bash -s lxc.rootfs=/ -s > lxc.aa_profile=unconfined > Now Daniel suggests not to specify lxc.rootfs? Right, that being the case, that bug's priority needs to be raised. I will get fixes proposed for SRU for that bug today. > What config makes the bash work with lxc-execute? Just lxc.aa_profile = unconfined will work, once bug 981955 is fixed. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/986956 Title: document that lxc-execute with separate rootfs does not work with commands To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/986956/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 986956] Re: document that lxc-execute with separate rootfs does not work with commands
The last comments make me think that lxc-execute works with application containers. Does it work? The simplest usage would be (without a created container test): $ sudo lxc-execute -n test /bin/bash But due to bug 981955 this does not work. With the workaround there: $ sudo lxc-execute -n test /bin/bash -s lxc.rootfs=/ -s lxc.aa_profile=unconfined Now Daniel suggests not to specify lxc.rootfs? What config makes the bash work with lxc-execute? Or are interactive commands not intended to work with lxc-execute? The man-page says it should. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/986956 Title: document that lxc-execute with separate rootfs does not work with commands To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/986956/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs