<div dir="ltr"><div>Thanks a lot for answer :) but it doesn't work:<br><br>root@thouraya-Lenovo-3000-N500:/home/thouraya# lxc-start -F -n u1<br>lxc-start: Permission denied - failed to mount a new instance of '/dev/pts'<br>lxc-start: failed to setup the new pts instance<br>lxc-start: failed to setup the container<br>lxc-start: invalid sequence number 1. expected 2<br>lxc-start: failed to spawn 'u1'<br>lxc-start: The container failed to start.<br>lxc-start: Additional information can be obtained by setting the --logfile and --logpriority options.<br><br></div>Bests.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-29 13:00 GMT+01:00 <span dir="ltr"><<a href="mailto:lxc-users-request@lists.linuxcontainers.org" target="_blank">lxc-users-request@lists.linuxcontainers.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send lxc-users mailing list submissions to<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:lxc-users-request@lists.linuxcontainers.org">lxc-users-request@lists.linuxcontainers.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:lxc-users-owner@lists.linuxcontainers.org">lxc-users-owner@lists.linuxcontainers.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of lxc-users digest..."<br>
<br>Today's Topics:<br>
<br>
1. Unable to get iptables log in container (らふろうと)<br>
2. Re: Unable to get iptables log in container (Tamas Papp)<br>
3. LXC Failed to start (Thouraya TH)<br>
4. Re: LXC Failed to start (Tamas Papp)<br>
<br><br>---------- Message transféré ----------<br>From: "らふろうと" <<a href="mailto:fulhelm.gadgetter@gmail.com">fulhelm.gadgetter@gmail.com</a>><br>To: <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>Cc: <br>Date: Sun, 28 Sep 2014 23:26:03 +0900<br>Subject: [lxc-users] Unable to get iptables log in container<br><div dir="ltr"><div>Hi everyone,</div>I created the lxc container on my server (Ubuntu14.04) and installed iptables for using the container as router.<div>The rules I set for iptables in container work fine, but I'm unable to get iptables log.</div><div><br></div><div>I'm using rsyslog to save log message, and added this line to conf file for iptables log.</div><div> kern.* /var/log/kern.log</div><div>However there is still no iptables log, either in host machine or the container.</div><div><br></div><div>It seems normal kernel log is logged properly, because I can see kernel's error message log in kern.log.</div><div><br></div><div>I heard /dev/kmsg is created as symlink to /dev/console as default in lxc container, so I disabled this option but it doesn't work.</div><div>How can I get iptables log?</div></div>
<br><br>---------- Message transféré ----------<br>From: Tamas Papp <<a href="mailto:tompos@martos.bme.hu">tompos@martos.bme.hu</a>><br>To: LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>><br>Cc: <br>Date: Sun, 28 Sep 2014 16:29:21 +0200<br>Subject: Re: [lxc-users] Unable to get iptables log in container<br><br>
On 09/28/2014 04:26 PM, らふろうと wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi everyone,<br>
I created the lxc container on my server (Ubuntu14.04) and installed iptables for using the container as router.<br>
The rules I set for iptables in container work fine, but I'm unable to get iptables log.<br>
<br>
I'm using rsyslog to save log message, and added this line to conf file for iptables log.<br>
kern.* /var/log/kern.log<br>
However there is still no iptables log, either in host machine or the container.<br>
<br>
It seems normal kernel log is logged properly, because I can see kernel's error message log in kern.log.<br>
<br>
I heard /dev/kmsg is created as symlink to /dev/console as default in lxc container, so I disabled this option but it doesn't work.<br>
How can I get iptables log?<br>
<br>
</blockquote>
<br>
I would use the ULOG target.<br>
<br>
t<br>
<br>
<br><br>---------- Message transféré ----------<br>From: Thouraya TH <<a href="mailto:thouraya87@gmail.com">thouraya87@gmail.com</a>><br>To: <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>Cc: <br>Date: Mon, 29 Sep 2014 12:54:47 +0100<br>Subject: [lxc-users] LXC Failed to start<br><div dir="ltr"><div><div>Hello,<br><br></div><div>Please, i try to test this tutorial: <a href="http://criu.org/LXC" target="_blank">http://criu.org/LXC</a>:<br><br><span lang="en"><span>I followed</span> <span>all instructions</span>, but i have an error message at this command: <br><span>sudo</span> <span>lxc</span><span>-start</span> <span>-n</span> <span>u1</span></span><br><br>root@thouraya-Lenovo-3000-N500:~# lxc-start -n u1<br>lxc-start: The container failed to start.<br>lxc-start: To get more details, run the container in foreground mode.<br>lxc-start: Additional information can be obtained by setting the --logfile and --logpriority options.<br><br></div><div>Ubuntu 12.04<br></div><div><br></div><div>Have you an idea please ?<br></div><div><br></div>Thanks a lot for help.<br></div>Best Regards.</div>
<br><br>---------- Message transféré ----------<br>From: Tamas Papp <<a href="mailto:tompos@martos.bme.hu">tompos@martos.bme.hu</a>><br>To: LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>><br>Cc: <br>Date: Mon, 29 Sep 2014 13:58:04 +0200<br>Subject: Re: [lxc-users] LXC Failed to start<br><br>
On 09/29/2014 01:54 PM, Thouraya TH wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
Please, i try to test this tutorial: <a href="http://criu.org/LXC" target="_blank">http://criu.org/LXC</a>:<br>
<br>
I followed all instructions, but i have an error message at this command:<br>
sudo lxc-start -n u1<br>
<br>
root@thouraya-Lenovo-3000-N500<u></u>:~# lxc-start -n u1<br>
lxc-start: The container failed to start.<br>
lxc-start: To get more details, run the container in foreground mode.<br>
lxc-start: Additional information can be obtained by setting the --logfile and --logpriority options.<br>
<br>
Ubuntu 12.04<br>
<br>
Have you an idea please ?<br>
<br>
</blockquote>
<br>
Run the container is foreground mode.<br>
<br>
tamas<br>
<br>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>