<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Mar 22, 2017 at 6:50 PM, Gabriel Marais <span dir="ltr"><<a href="mailto:gabriel.j.marais@gmail.com" target="_blank">gabriel.j.marais@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Guys<div><br></div><div>I am having an issue assigning a profile to a container. Below my steps:-</div><div><br></div><div>1. List Profiles</div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">[13:43:12] </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(51,187,200)">root</span><span style="font-variant-ligatures:no-common-ligatures">@</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(52,188,38)">vm-server-01:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b>~</b></span><span style="font-variant-ligatures:no-common-ligatures"> # lxc profile list</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+---------+---------+</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">|  NAME   | USED BY |</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+---------+---------+</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">| default | 0       |</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+---------+---------+</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">| docker  | 0       |</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+---------+---------+</span></p></div><div><br></div><div>2. Create a new Profile</div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">[13:43:18] </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(51,187,200)">root</span><span style="font-variant-ligatures:no-common-ligatures">@</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(52,188,38)">vm-server-01:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b>~</b></span><span style="font-variant-ligatures:no-common-ligatures"> # lxc profile create migratetest</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Profile migratetest created</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">[13:46:47] </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(51,187,200)">root</span><span style="font-variant-ligatures:no-common-ligatures">@</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(52,188,38)">vm-server-01:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b>~</b></span><span style="font-variant-ligatures:no-common-ligatures"> # lxc profile list</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+-------------+---------+</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">|    NAME     | USED BY |</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+-------------+---------+</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">| default     | 0       |</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+-------------+---------+</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">| docker      | 0       |</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+-------------+---------+</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">| migratetest | 0       |</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">








</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">+-------------+---------+</span></p><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">[13:48:47] </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(51,187,200)">root</span><span style="font-variant-ligatures:no-common-ligatures">@</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(52,188,38)">vm-server-01:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b>~</b></span><span style="font-variant-ligatures:no-common-ligatures"> # lxc-ls --fancy</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">NAME        STATE   AUTOSTART GROUPS IPV4 IPV6 </span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">paulus-test STOPPED 0         -      -    -    </span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">snappy_1604 STOPPED 0         -      -    -    </span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">ubuntu_1404 STOPPED 0         -      -    -    </span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">




</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">ubuntu_1604 STOPPED 0         -      -    -    </span></p><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p></div></div></blockquote><div><br></div><div>"lxc-ls" belongs to lxc1. "lxc list" is the equivalent lxd command. </div><div><br></div><div>lxc1 and lxd manage totally different containers. You can't apply lxd profile to lxc1 container. Recreate your containers as lxd containers, then try again.</div><div><br></div><div>-- </div><div>Fajar</div></div></div></div>