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 Server Team, which is subscribed to lxc in 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-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs