<div dir="ltr">Ok, I find the main error; it was because I tried to modify the first hexa number:<div><a href="http://askubuntu.com/questions/423530/cant-change-my-mac-address-cant-assign-requested-address">http://askubuntu.com/questions/423530/cant-change-my-mac-address-cant-assign-requested-address</a><div><div><br></div><div>However, the "volatile" way still does not work. Anyway, I prefer the first one.</div><div><br></div><div>My LXD version is 2.0.2.</div><div><br></div><div>Cheers</div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-24 10:57 GMT+02:00 Rémy Dernat <span dir="ltr"><<a href="mailto:remy.d1@gmail.com" target="_blank">remy.d1@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>As already said in title, I am trying to set eth0 mac address on my container. My container is bridged from my host.</div><div><br></div><div>I try two differents strategies:</div><div><br></div><div><br></div><div>1/</div><div><br></div><div><div>cat <<EOF | lxc profile edit vlan</div><div>name: vlan</div><div>config: {}</div><div>description: VLAN profile</div><div>devices:</div><div>  eth0:</div><div>    hwaddr: $MAC_ADR_LXD</div><div>    name: eth0</div><div>    nictype: macvlan</div><div>    parent: $ETH_FOR_BRIDGE</div><div>    type: nic</div><div>EOF</div></div><div><br></div><div>lxc profile apply $CONTAINER_NAME vlan</div><div><br></div><div>When I restart ('stop', and then 'start', not 'restart') the container, I get the following error:</div><div><br></div><div><a href="http://paste.debian.net/751317/" target="_blank">http://paste.debian.net/751317/</a><br></div><div><br></div><div>Although, the container is stopped (not running) (checked with 'lxc list').</div><div><br></div><div><br></div><div><br></div><div>2/</div><div><br></div><div>lxc config set $CONTAINER_NAME volatile.eth0.hwaddr $MAC_ADR_LXD<br></div><div><br></div><div>It does not seem to do anything; the MAC adress for eth0 is not modified.</div><div><br></div><div><br></div><div><br></div><div>Any idea ?</div><div><br></div><div>Best,</div><div>Remy</div></div>
</blockquote></div><br></div>