<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">"lxc profile show”. Usually, you have a default profile that gets applied to your container unless you have created a new/custom profile.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><div class="">On Oct 20, 2016, at 1:41 PM, Michael Peek <<a href="mailto:peek@nimbios.org" class="">peek@nimbios.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" class="">
<div bgcolor="#FFFFFF" text="#000000" class="">
<div class="moz-cite-prefix">How do I tell?<br class="">
<br class="">
Michael<br class="">
<br class="">
<br class="">
<br class="">
On 10/20/2016 01:35 PM, Ron Kelley wrote:<br class="">
</div>
<blockquote cite="mid:76715034-4AFD-4679-9EDB-A1FD08C3AA29@gmail.com" type="cite" class="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
What profile(s) are you using for your LXC containers?
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class="">
<div class="">On Oct 20, 2016, at 1:33 PM, Michael Peek <<a moz-do-not-send="true" href="mailto:peek@nimbios.org" class="">peek@nimbios.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<meta http-equiv="content-type" content="text/html;
charset=utf-8" class="">
<div bgcolor="#FFFFFF" text="#000000" class=""> Hi gurus,<br class="">
<br class="">
I'm scratching my head again. I'm using the following
commands to create an LXC container with a static IP
address:<br class="">
<br class="">
<blockquote class=""># lxc-create -n my-container-1 -t
download -- -d ubuntu -r xenial -a amd64<br class="">
<br class="">
# vi /var/lib/lxc/my-container-1/config<br class="">
<br class="">
Change:<br class="">
# Network configuration<br class="">
# lxc.network.type = veth<br class="">
# lxc.network.link = lxcbr0<br class="">
# lxc.network.flags = up<br class="">
# lxc.network.hwaddr = 00:16:3e:0d:ec:13<br class="">
lxc.network.type = macvlan<br class="">
lxc.network.link = eno1<br class="">
<br class="">
# vi
/var/lib/lxc/my-container-1/rootfs/etc/network/interfaces<br class="">
<br class="">
Change:<br class="">
#iface eth0 inet dhcp<br class="">
iface eth0 inet static<br class="">
address xxx.xxx.xxx.4<br class="">
netmask 255.255.255.0<br class="">
network xxx.xxx.xxx.0<br class="">
broadcast xxx.xxx.xxx.255<br class="">
gateway xxx.xxx.xxx.1<br class="">
dns-nameservers xxx.xxx.0.66 xxx.xxx.128.66 8.8.8.8<br class="">
dns-search my.domain<br class="">
<br class="">
# lxc-start -n my-container-1 -d<br class="">
</blockquote>
<br class="">
It failed to work. I reviewed my notes from past posts to
the list but found no discrepancies. So I deleted the
container and tried it on another host -- and it worked.
Next I deleted that container and went back to the first
host, and it failed. Lastly, I tried the above steps on
multiple hosts and found that it works fine on some hosts,
but not on others, and I have no idea why. On hosts where
this fails there are no error messages, but the container
can't access the network, and nothing on the network can
access the container.<br class="">
<br class="">
Is there some step that I'm missing?<br class="">
<br class="">
Thanks for any help,<br class="">
<br class="">
Michael Peek<br class="">
</div>
_______________________________________________<br class="">
lxc-users mailing list<br class="">
<a moz-do-not-send="true" href="mailto:lxc-users@lists.linuxcontainers.org" class="">lxc-users@lists.linuxcontainers.org</a><br class="">
<a class="moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></div>
</div>
<br class="">
</div>
<br class="">
<fieldset class="mimeAttachmentHeader"></fieldset>
<br class="">
<pre wrap="" class="">_______________________________________________
lxc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre>
</blockquote>
<br class="">
</div>
_______________________________________________<br class="">lxc-users mailing list<br class=""><a href="mailto:lxc-users@lists.linuxcontainers.org" class="">lxc-users@lists.linuxcontainers.org</a><br class="">http://lists.linuxcontainers.org/listinfo/lxc-users</div></div><br class=""></div></body></html>