Dear Serge,

>I don't know of a generic way this could be done in lxc.

But it is desirable, right?

> However, for your specific containers, you could redirect console to a file 
> and have a script watch for a login prompt there?

One can think about a whole bunch of ways to reach the aim in a proprietary way 
winthin minutes. But I don't have to tell you why this is not a lasting 
solution.


Said that, it seem that your answer already includes an idea for a generic 
approach: The virtual console feature! If I try to attach using lxc-console, it 
will fail or block until the containers console becomes ready. 

I may try to set up a helper script  "lxc-wait_until_booted"  for this purpose.


But as a build-in, the lxc-start process may watch after start if the virtual 
console becomes available and then either set a new container status or another 
"flag", what might be made available via the  lxc-info  command.


Guido

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lxc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to