[Lxc-users] lxc-start via ssh

Fajar A. Nugraha list at fajar.net
Fri Apr 27 10:56:18 UTC 2012


On Fri, Apr 27, 2012 at 5:36 PM, Matthijs Kooijman <matthijs at stdin.nl> wrote:
> Hi István,
>
>> Somehow I managed to create a shell script that can start it, but for some reason executing the command directly via ssh does not work.
>> lxc-start -n fc14 -o /temp/fc14.log -s lxc.console=/temp/fc14.sys &
>> lxc-start -n fc14 -o /temp/fc14.log -s lxc.console=/temp/fc14.sys >> /temp/fc14.log &
> Not sure if this is the cause of the problem, but you should probably
> be using lxc-start -d instead of backgrounding it using your shells &
> operator.

... or use screen :D
http://wiki.1tux.org/wiki/Lxc/Running#Starting_a_container_in_new_screen_session

It doesn't create a log file of the console output though. Perhaps
using "script -f" and playing with SHELL variable will work.

-- 
Fajar




More information about the lxc-users mailing list