[Lxc-users] getting output from lxc-start?
Dean Mao
deanmao at gmail.com
Tue Feb 1 18:44:35 UTC 2011
Is the log output the same as the console output? The last time I looked,
the information in the debug logs looked different compared to the boot
logs.
I'll check out rc1.
On Tue, Feb 1, 2011 at 5:54 AM, Daniel Lezcano <daniel.lezcano at free.fr>wrote:
> On 02/01/2011 12:04 PM, Dean Mao wrote:
>
>> Hi,
>>
>> I've been messing around with trying to get the output of lxc-start into a
>> file some. I know that lxc-start produces a log file, as well as the
>> ability to fetch the dmesg file directly from the container's log file
>> directory, but I was curious if it was possible to just run lxc-start in a
>> nohup and use some kind of dummy getty instance to pipe the output into a
>> file. The closest thing I could find was using screen's logging
>> capability.
>> The log file produced by lxc-start doesn't really resemble the output
>> generated from the container boot. Is there dummy getty/terminal thing
>> that
>> I could get the actual output of the container boot process?
>>
>
> Ok, I just realize I forget to commit the patch to output the console to a
> file :)
> I did the change right now and will release a 0.7.4-rc1 version in a
> moment.
>
> Please can you check that works for you ?
>
> lxc-start -n <name> -o lxc.log -l DEBUG -c console.log
>
> or
>
> lxc-start -n <name> -o lxc.log -l DEBUG -c /dev/null
>
> or
>
> lxc-start -n <name> -o logs -l DEBUG -c logs
>
> Thanks for reporting the problem
>
> -- Daniel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110201/29fa1100/attachment.html>
More information about the lxc-users
mailing list