Re: [Lxc-users] Ubuntu sshd template
On 02/01/2011 12:16 AM, Gary Ballantyne wrote: Hi Would greatly appreciate any help getting the sshd template working on my Ubuntu 9.1 host. I can ssh to and from the container and host when the container is generated by: lxc-execute -n foo2 -f /usr/share/doc/lxc/examples/lxc/lxc-veth-gb.conf /bin/bash Here I have slightly modified the example conf file: # Container with network virtualized using a pre-configured bridge named br0 and # veth pair virtual network devices lxc.utsname = gb1 lxc.network.type = veth lxc.network.flags = up lxc.network.link = br0 lxc.network.ipv4 = 10.89.233.15/24 Also, I can create a sshd template using ./lxc-sshd create (ip = 10.89.233.13/24). What version of lxc are you using ? However, the container doesn't appear to start (or, at least, persist) with the suggested command: # lxc-execute -n sshd /usr/sbin/sshd [1] 7612 # lxc-info -n sshd 'sshd' is STOPPED [1]+ Exit 139lxc-execute -n sshd /usr/sbin/sshd But, I can start the container with: # lxc-start -n sshd [1] 7623 # lxc-info -n sshd 'sshd' is RUNNING And I can ping the container: root@haulashore1:/usr/share/doc/lxc/examples# ping 10.89.233.13 PING 10.89.233.13 (10.89.233.13) 56(84) bytes of data. 64 bytes from 10.89.233.13: icmp_seq=1 ttl=64 time=9.81 ms 64 bytes from 10.89.233.13: icmp_seq=2 ttl=64 time=0.049 ms But, I can't ssh to the container: # ssh 10.89.233.13 ssh: connect to host 10.89.233.13 port 22: Connection refused What is the output of lxc-ps --lxc ? (And, I can't connect with lxc-console) # lxc-console -n sshd lxc-console: failed to connect to the tty service Yeah, with the sshd template you can't because there is only the sshd daemon running inside, no mingetty respawned by an init process and the console configuration is not set for this template. -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
[Lxc-users] release candidate for lxc
Hi All, The lxc-0.7.4 version will be released very soon. I suppose most of you are using the version 0.7.3, not the dev version. Before releasing this new version, I would like to release a pre-version and that will be very nice if you can check this version is ok for you, especially the mount regression we had with the 0.7.3. Thanks in advance -- Daniel -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] release candidate for lxc
On 2/1/2011 5:22 AM, Daniel Lezcano wrote: Hi All, The lxc-0.7.4 version will be released very soon. I suppose most of you are using the version 0.7.3, not the dev version. Before releasing this new version, I would like to release a pre-version and that will be very nice if you can check this version is ok for you, especially the mount regression we had with the 0.7.3. Thanks in advance -- Daniel Works for me. I'm currently on 0.7.2 not 0.7.3 because of the breakage, but I had no problems building/installing/trying 0.7.3 and am just as ready to try a new version any time. Do I just grab the current latest git version now or will you post a specific version to get? -- bkw -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] release candidate for lxc
On 02/01/2011 11:51 AM, Brian K. White wrote: On 2/1/2011 5:22 AM, Daniel Lezcano wrote: Hi All, The lxc-0.7.4 version will be released very soon. I suppose most of you are using the version 0.7.3, not the dev version. Before releasing this new version, I would like to release a pre-version and that will be very nice if you can check this version is ok for you, especially the mount regression we had with the 0.7.3. Thanks in advance -- Daniel Works for me. I'm currently on 0.7.2 not 0.7.3 because of the breakage, but I had no problems building/installing/trying 0.7.3 and am just as ready to try a new version any time. Cool ! Thanks. Do I just grab the current latest git version now or will you post a specific version to get? I will tag and post a specific version lxc-0.7.4-rc1 Thanks -- Daniel -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
[Lxc-users] getting output from lxc-start?
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? Thanks, Dean -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] getting output from lxc-start?
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 -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
[Lxc-users] lxc-0.7.4-rc1
Hi everyone, I uploaded the -rc1 http://sourceforge.net/projects/lxc/files/lxc/lxc-0.7.4/lxc-0.7.4-rc1.tar.gz/download Thanks -- Daniel -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-0.7.4-rc1
On 02/01/2011 03:17 PM, Daniel Lezcano wrote: Hi everyone, I uploaded the -rc1 http://sourceforge.net/projects/lxc/files/lxc/lxc-0.7.4/lxc-0.7.4-rc1.tar.gz/download Due to the sourceforge attack, some services are still down, so I can't upload the files to the place we are used to. https://sourceforge.net/blog/sourceforge-attack-full-report/ That should be fixed soon. -- Daniel -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-0.7.4-rc1
On Tue, Feb 1, 2011 at 8:24 AM, Daniel Lezcano daniel.lezc...@free.fr wrote: Due to the sourceforge attack, incredibly weak; who does that? i blame today's media. anyways seems like it's up now, thanks Daniel. C Anthony -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] getting output from lxc-start?
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.lezc...@free.frwrote: 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 -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] getting output from lxc-start?
On 02/01/2011 07:44 PM, Dean Mao wrote: 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. The first one is generated by the guest while the second one is formatted by a logging framework embedded in lxc. The console output is directly displayed without passing through lxc's logging framework. -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] getting output from lxc-start?
Daniel Lezcano daniel.lezc...@free.fr writes: 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 :) Uh, lxc-start -s lxc.console=/var/log/lxc/foo.console works for me, as at 0.7.3. -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] getting output from lxc-start?
Dean Mao dean...@gmail.com writes: The log file produced by lxc-start doesn't really resemble the output generated from the container boot. The output of container's /dev/console is emitted to stdout by default. You can direct it to a file in your .conf: lxc.console = /var/log/lxc/foo.console If that output doesn't resemble native booting, it might simply be that you aren't seeing output from the kernel, udev, mount -a/mountall, c -- because those systems don't run in the container. Ubuntu, at least, does not log very much to /dev/console by default. In particular, it emits output for sysvinit jobs (e.g. slapd, apache2), but not upstart jobs (e.g. rsyslog, ssh, squid). Or if your container isn't working, that could be the cause :-) -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] getting output from lxc-start?
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: INIT: version 2.88 booting Using makefile-style concurrent boot in runlevel S. Activating swap...done. Cleaning up ifupdown Setting up networking Activating lvm and md swap...done. Checking file systems...fsck from util-linux-ng 2.17.2 done. Mounting local filesystems...done. Activating swapfile swap...done. Cleaning up temporary files Configuring network interfaces...done. Cleaning up temporary files INIT: Entering runlevel: 3 Using makefile-style concurrent boot in runlevel 3. nohup: appending output to `nohup.out' Debian GNU/Linux 6.0 lxc console On Tue, Feb 1, 2011 at 4:15 PM, Trent W. Buck t...@cybersource.com.auwrote: Daniel Lezcano daniel.lezc...@free.fr writes: 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 :) Uh, lxc-start -s lxc.console=/var/log/lxc/foo.console works for me, as at 0.7.3. -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users