<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/">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>