<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">It will be the new lxc software, but without the niceness of the lxd interface.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hence all his commands being lxc-command instead of lxc command<o:p></o:p></span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></a></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> lxc-users [mailto:lxc-users-bounces@lists.linuxcontainers.org]
<b>On Behalf Of </b>Ron Kelley<br>
<b>Sent:</b> 20 October 2016 18:51<br>
<b>To:</b> LXC users mailing-list<br>
<b>Subject:</b> Re: [lxc-users] LXC containers w/ static IPs work on some hosts, not on others<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">hmmm, seems you are running the “original” version of lxc and not the new lxc/lxd software.  Please ignore my comments then…<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Oct 20, 2016, at 1:47 PM, Michael Peek <<a href="mailto:peek@nimbios.org">peek@nimbios.org</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal"># lxc profile show<br>
The program 'lxc' is currently not installed. You can install it by typing:<br>
apt install lxd-client<br>
<br>
Maybe that's part of the problem?  Am I missing a package?  Here are the packages I have installed for lxc:<br>
<br>
# dpkg -l | grep lxc | cut -c1-20<br>
ii  liblxc1         <br>
ii  lxc             <br>
ii  lxc-common      <br>
ii  lxc-templates   <br>
ii  lxc1            <br>
ii  lxcfs           <br>
ii  python3-lxc     <br>
<br>
Michael<br>
<br>
On 10/20/2016 01:43 PM, Ron Kelley wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">"lxc profile show”.  Usually, you have a default profile that gets applied to your container unless you have created a new/custom profile.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Oct 20, 2016, at 1:41 PM, Michael Peek <<a href="mailto:peek@nimbios.org">peek@nimbios.org</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">How do I tell?<br>
<br>
Michael<br>
<br>
<br>
<br>
On 10/20/2016 01:35 PM, Ron Kelley wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">What profile(s) are you using for your LXC containers? <o:p>
</o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Oct 20, 2016, at 1:33 PM, Michael Peek <<a href="mailto:peek@nimbios.org">peek@nimbios.org</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi gurus,<br>
<br>
I'm scratching my head again.  I'm using the following commands to create an LXC container with a static IP address:<o:p></o:p></p>
<p class="MsoNormal"># lxc-create -n my-container-1 -t download -- -d ubuntu -r xenial -a amd64<br>
<br>
# vi /var/lib/lxc/my-container-1/config<br>
<br>
Change:<br>
# Network configuration<br>
# lxc.network.type = veth<br>
# lxc.network.link = lxcbr0<br>
# lxc.network.flags = up<br>
# lxc.network.hwaddr = 00:16:3e:0d:ec:13<br>
lxc.network.type = macvlan<br>
lxc.network.link = eno1<br>
<br>
# vi /var/lib/lxc/my-container-1/rootfs/etc/network/interfaces<br>
<br>
Change:<br>
#iface eth0 inet dhcp<br>
iface eth0 inet static<br>
  address xxx.xxx.xxx.4<br>
  netmask 255.255.255.0<br>
  network xxx.xxx.xxx.0<br>
  broadcast xxx.xxx.xxx.255<br>
  gateway xxx.xxx.xxx.1<br>
  dns-nameservers xxx.xxx.0.66 xxx.xxx.128.66 8.8.8.8<br>
  dns-search my.domain<br>
<br>
# lxc-start -n my-container-1 -d<o:p></o:p></p>
<p class="MsoNormal"><br>
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>
<br>
Is there some step that I'm missing?<br>
<br>
Thanks for any help,<br>
<br>
Michael Peek<o:p></o:p></p>
</div>
<p class="MsoNormal">_______________________________________________<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">http://lists.linuxcontainers.org/listinfo/lxc-users</a><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>lxc-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><o:p></o:p></pre>
<pre><a href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">_______________________________________________<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">http://lists.linuxcontainers.org/listinfo/lxc-users</a><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>lxc-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><o:p></o:p></pre>
<pre><a href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">_______________________________________________<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">http://lists.linuxcontainers.org/listinfo/lxc-users</a><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>

<P>
<HR>
<FONT color=#400040><STRONG>Attention: </STRONG><BR></FONT><STRONG><FONT 
color=#ff0000><FONT color=#400040>This e-mail and any attachment is for 
authorised use by the intended recipient(s) only. It may contain proprietary, 
confidential and/or privileged information and should not be copied, disclosed, 
distributed, retained or used by any other party. If you are not an intended 
recipient please notify the sender immediately and delete this e-mail (including 
attachments and copies). <BR>The statements and opinions expressed in this 
e-mail are those of the author and do not necessarily reflect those of the Royal 
Marsden NHS Foundation Trust. The Trust does not take any responsibility for the 
statements and opinions of the author. <BR>Website:</FONT> <A 
href="http://www.royalmarsden.nhs.uk">http://www.royalmarsden.nhs.uk</A><BR></P></FONT></STRONG>
<HR>

<P></P>
<P></P>
</body>
</html>