Oh cool, I didn't know about lxc.console. I just tested it now, and it looks like it worked. Here's my output in /tmp/console.log:<div><br></div><div><div><br></div><div>INIT: version 2.88 booting</div><div>Using makefile-style concurrent boot in runlevel S.</div>
<div>Activating swap...done.</div><div>Cleaning up ifupdown....</div><div>Setting up networking....</div><div>Activating lvm and md swap...done.</div><div>Checking file systems...fsck from util-linux-ng 2.17.2</div><div>done.</div>
<div>Mounting local filesystems...done.</div><div>Activating swapfile swap...done.</div><div>Cleaning up temporary files....</div><div>Configuring network interfaces...done.</div><div>Cleaning up temporary files....</div>
<div>INIT: Entering runlevel: 3</div><div>Using makefile-style concurrent boot in runlevel 3.</div><div>nohup: appending output to `nohup.out'</div><div><br></div><div>Debian GNU/Linux 6.0 lxc console</div><div><br></div>
<br><div class="gmail_quote">On Tue, Feb 1, 2011 at 4:15 PM, Trent W. Buck <span dir="ltr"><<a href="mailto:twb@cybersource.com.au">twb@cybersource.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Daniel Lezcano <<a href="mailto:daniel.lezcano@free.fr">daniel.lezcano@free.fr</a>> writes:<br>
<br>
> On 02/01/2011 12:04 PM, Dean Mao wrote:<br>
>> Hi,<br>
>><br>
>> I've been messing around with trying to get the output of lxc-start into a<br>
>> file some. I know that lxc-start produces a log file, as well as the<br>
>> ability to fetch the dmesg file directly from the container's log file<br>
>> directory, but I was curious if it was possible to just run lxc-start in a<br>
>> nohup and use some kind of dummy getty instance to pipe the output into a<br>
>> file. The closest thing I could find was using screen's logging capability.<br>
>> The log file produced by lxc-start doesn't really resemble the output<br>
>> generated from the container boot. Is there dummy getty/terminal thing that<br>
>> I could get the actual output of the container boot process?<br>
><br>
> Ok, I just realize I forget to commit the patch to output the console to<br>
> a file :)<br>
<br>
</div>Uh, lxc-start -s lxc.console=/var/log/lxc/foo.console works for me, as<br>
at 0.7.3.<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!<br>
Finally, a world-class log management solution at an even better price-free!<br>
Download using promo code Free_Logger_4_Dev2Dev. Offer expires<br>
February 28th, so secure your free ArcSight Logger TODAY!<br>
<a href="http://p.sf.net/sfu/arcsight-sfd2d" target="_blank">http://p.sf.net/sfu/arcsight-sfd2d</a><br>
_______________________________________________<br>
Lxc-users mailing list<br>
<a href="mailto:Lxc-users@lists.sourceforge.net">Lxc-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/lxc-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/lxc-users</a><br>
</blockquote></div><br></div>