<div dir="ltr">Continuing to dig into this..<div><br></div><div>Here is an example of the syslog when I attempt to `lxc-start -n <name>` one of the containers:<br><div><br></div><div><div>Aug 9 19:24:13 ip-10-34-249-56 kernel: [1326297.257700] device vethRVTxKd entered promiscuous mode</div>
<div>Aug 9 19:24:13 ip-10-34-249-56 kernel: [1326297.259693] ADDRCONF(NETDEV_UP): vethRVTxKd: link is not ready</div><div>Aug 9 19:24:13 ip-10-34-249-56 kernel: [1326297.295988] init: Failed to spawn network-interface (vethLoEcZK) pre-start process: unable to change root directory: No such file or directory</div>
<div><b>Aug 9 19:24:13 ip-10-34-249-56 kernel: a he: No toicoess:b etrk-interface (vethRVTxKd) post-ppoes roirecthr c633(vethRV fstate</b></div></div></div><div><br></div><div>It never gets to a login prompt.</div><div>
<br></div><div>Here is the syslog output when I start in daemon mode, `lxc-start -d -n <name>`:</div><div><br></div><div><div>Aug 9 19:25:48 ip-10-34-249-56 kernel: 6>[1326391.843150] device vethkKKsPf entered promiscuous mode</div>
<div>Aug 9 19:25:48 ip-10-34-249-56 kernel: [1326391.844146] ADDRCONF(NETDEV_UP): vethkKKsPf: link is not ready</div><div><b>Aug 9 19:25:48 ip-10-34-249-56 kernel: wrface (vethkKKsPf) pre-start profkinte e]ink becomes ready</b></div>
</div><div><br></div><div>Both times, there is always one line which is crazy and gibberish looking.</div><div><br></div><div>Have any of you seen anything like this before?</div><div><br></div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Aug 9, 2013 at 8:57 AM, Jay Taylor <span dir="ltr"><<a href="mailto:jay@jaytaylor.com" target="_blank">jay@jaytaylor.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Also, here is one of the container configs:<div><br></div><div><div>lxc.mount = /var/lib/lxc/sendhub_web_v7_10146/fstab</div><div>lxc.tty = 4</div><div>lxc.pts = 1024</div><div>lxc.devttydir = lxc</div><div>
lxc.arch = x86_64</div><div>lxc.logfile = /var/log/lxc/sendhub_web_v7_10146.log</div><div>lxc.cgroup.devices.deny = a</div><div>lxc.cgroup.devices.allow = c *:* m</div><div>lxc.cgroup.devices.allow = b *:* m</div><div>lxc.cgroup.devices.allow = c 1:3 rwm</div>
<div>lxc.cgroup.devices.allow = c 1:5 rwm</div><div>lxc.cgroup.devices.allow = c 5:1 rwm</div><div>lxc.cgroup.devices.allow = c 5:0 rwm</div><div>lxc.cgroup.devices.allow = c 1:9 rwm</div><div>lxc.cgroup.devices.allow = c 1:8 rwm</div>
<div>lxc.cgroup.devices.allow = c 136:* rwm</div><div>lxc.cgroup.devices.allow = c 5:2 rwm</div><div>lxc.cgroup.devices.allow = c 254:0 rm</div><div>lxc.cgroup.devices.allow = c 10:229 rwm</div><div>lxc.cgroup.devices.allow = c 10:200 rwm</div>
<div>lxc.cgroup.devices.allow = c 1:7 rwm</div><div>lxc.cgroup.devices.allow = c 10:228 rwm</div><div>lxc.cgroup.devices.allow = c 10:232 rwm</div><div>lxc.utsname = sendhub_web_v7_10146</div><div>lxc.network.type = veth</div>
<div>lxc.network.flags = up</div><div>lxc.network.link = lxcbr0</div><div>lxc.network.hwaddr = 00:16:3e:07:7b:8f</div><div>lxc.cap.drop = sys_module</div><div>lxc.cap.drop = mac_admin</div><div>lxc.cap.drop = mac_override</div>
<div>lxc.cap.drop = sys_time</div><div>lxc.rootfs = /var/lib/lxc/sendhub_web_v7_10146/rootfs</div><div>lxc.pivotdir = lxc_putold</div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Aug 9, 2013 at 8:52 AM, Jay Taylor <span dir="ltr"><<a href="mailto:jay@jaytaylor.com" target="_blank">jay@jaytaylor.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><span style="font-family:arial,sans-serif;font-size:13px">Hi Serge,</span><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">That's the thing..the containers all have unique addresses. They're being created by `lxc-clone -B btrfs -s -o base_container -n <name></div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Now...every container I try to create or stop/start doesn't receive any IP address. And all those duplicates no longer show any ip.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">here is lxc-ls --fancy:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div>
<div style="font-family:arial,sans-serif;font-size:13px">
sendhub STOPPED - - NO<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>sendhub_important_v7_10012 RUNNING - - NO</div><div>sendhub_important_v7_10019 RUNNING - - NO</div>
<div>sendhub_important_v7_10024 RUNNING - - NO</div><div>sendhub_important_v7_10054 RUNNING - - NO</div><div>sendhub_important_v7_10069 RUNNING - - NO</div><div>sendhub_important_v7_10074 RUNNING - - NO</div>
<div>sendhub_important_v7_10089 RUNNING - - NO</div><div>sendhub_important_v7_10094 RUNNING - - NO</div><div>sendhub_important_v7_10104 RUNNING - - NO</div><div>sendhub_important_v7_10129 RUNNING - - NO</div>
<div>sendhub_important_v7_10139 RUNNING - - NO</div><div>sendhub_important_v7_10144 RUNNING - - NO</div><div>sendhub_important_v7_10149 RUNNING - - NO</div><div>sendhub_important_v7_10164 RUNNING - - NO</div>
<div>sendhub_important_v7_10174 RUNNING - - NO</div><div>sendhub_important_v7_10179 RUNNING - - NO</div><div>sendhub_important_v7_10189 RUNNING - - NO</div><div>sendhub_scheduler_v7_10159 RUNNING - - NO</div>
<div>sendhub_web_v7_10029 RUNNING - - NO</div><div>sendhub_web_v7_10034 RUNNING - - NO</div><div>sendhub_web_v7_10039 RUNNING - - NO</div><div>sendhub_web_v7_10059 RUNNING - - NO</div>
<div>sendhub_web_v7_10064 RUNNING - - NO</div><div>sendhub_web_v7_10084 RUNNING - - NO</div><div>sendhub_web_v7_10099 RUNNING - - NO</div><div>sendhub_web_v7_10109 RUNNING - - NO</div>
<div>sendhub_web_v7_10114 RUNNING - - NO</div><div>sendhub_web_v7_10119 RUNNING - - NO</div><div>sendhub_web_v7_10134 RUNNING - - NO</div><div>sendhub_web_v7_10154 RUNNING - - NO</div>
<div>sendhub_web_v7_10169 RUNNING - - NO</div><div>sendhub_web_v7_10184 RUNNING - - NO</div><div>sendhub_worker_v7_10044 RUNNING - - NO</div><div>sendhub_worker_v7_10079 RUNNING - - NO</div>
<div>sendhub_worker_v7_10124 RUNNING - - NO</div><div>sendhub_worker_v7_10194 RUNNING - - NO</div><div>sendhub_worker_v7_10199 RUNNING - - NO</div></div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div></div></div><div style="font-family:arial,sans-serif;font-size:13px">What could have gone wrong here? I have 5/5 nodes, all in this state (meaning this problem has been reproduced across multiple hosts).</div></div>
<div class="gmail_extra">
<br><br><div class="gmail_quote"><div>On Fri, Aug 9, 2013 at 8:02 AM, Serge Hallyn <span dir="ltr"><<a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a>></span> wrote:<br>
</div><div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Quoting Jay Taylor (<a href="mailto:jay@jaytaylor.com" target="_blank">jay@jaytaylor.com</a>):<br>
> Greetings,<br>
><br>
> I am hitting a problem with LXC were it's assigned the same IP address to<br>
> different containers:<br>
<br>
</div>How are you creating the containers? You need to give each container a<br>
unique mac address. lxc-clone should do this for you, as should<br>
lxc-create. If you're manually copying the containers, then you'll<br>
have to do it by hand.<br>
<br>
can you show the lxc.network sections of two of the containers, and<br>
the commands you used to create them?<br>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>