<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=""><br class=""><div><blockquote type="cite" class=""><div class="">On 25 May 2018, at 12:25, Fajar A. Nugraha <<a href="mailto:list@fajar.net" class="">list@fajar.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On Fri, May 25, 2018 at 3:25 PM, Michel Jansens<br class=""><<a href="mailto:michel.jansens@ulb.ac.be" class="">michel.jansens@ulb.ac.be</a>> wrote:<br class=""><blockquote type="cite" class="">Thanks Fajar it works!<br class=""><br class="">What I did:<br class=""><br class="">#lets create a new profile<br class="">lxc profile copy default nonet<br class=""><br class="">#remove network from the profile<br class="">lxc profile device remove nonet eth0<br class=""><br class="">#create the ’testip' container<br class="">lxc init ubuntu:18.04 testip --profile nonet<br class=""><br class="">#attach the network device to it, with IP address<br class="">lxc config device add testip eth0 nic nictype=bridged parent=lxdbr0<br class="">host_name=testip ipv4.address=10.0.3.203<br class=""></blockquote><br class=""><br class="">One note from me, you could actually use the default profile and<br class="">override eth0 directly in the config file.<br class="">At least it works with "lxc config edit", didn't try with "lxc config device”.<br class=""></div></div></blockquote><div><br class=""></div><div>With lxc config device add, it looks like it does strange things: in <span style="font-family: Monaco; font-size: 10px; background-color: rgb(255, 255, 255);" class=""> "</span><span style="font-family: Monaco; font-size: 10px; background-color: rgb(255, 255, 255);" class="">lxc network</span><span style="font-family: Monaco; font-size: 10px; background-color: rgb(255, 255, 255);" class=""> </span><span style="background-color: rgb(255, 255, 255);" class=""><font face="Monaco" size="2" class="">list-leases lxdbr0” </font></span>I get 2 entries for the container, with the same Mac address and different IPs (one STATIC and ON DYNAMIC) and the twrong one is listed in lxc list…</div><div><br class=""></div><div>Michel</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class="">-- <br class="">Fajar<br class="">_______________________________________________<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></blockquote></div><br class=""></body></html>