Ok, I find the main error; it was because I tried to modify the first hexa
number:
http://askubuntu.com/questions/423530/cant-change-my-mac-address-cant-assign-requested-address

However, the "volatile" way still does not work. Anyway, I prefer the first
one.

My LXD version is 2.0.2.

Cheers


2016-06-24 10:57 GMT+02:00 Rémy Dernat <[email protected]>:

> Hi,
>
> As already said in title, I am trying to set eth0 mac address on my
> container. My container is bridged from my host.
>
> I try two differents strategies:
>
>
> 1/
>
> cat <<EOF | lxc profile edit vlan
> name: vlan
> config: {}
> description: VLAN profile
> devices:
>   eth0:
>     hwaddr: $MAC_ADR_LXD
>     name: eth0
>     nictype: macvlan
>     parent: $ETH_FOR_BRIDGE
>     type: nic
> EOF
>
> lxc profile apply $CONTAINER_NAME vlan
>
> When I restart ('stop', and then 'start', not 'restart') the container, I
> get the following error:
>
> http://paste.debian.net/751317/
>
> Although, the container is stopped (not running) (checked with 'lxc list').
>
>
>
> 2/
>
> lxc config set $CONTAINER_NAME volatile.eth0.hwaddr $MAC_ADR_LXD
>
> It does not seem to do anything; the MAC adress for eth0 is not modified.
>
>
>
> Any idea ?
>
> Best,
> Remy
>
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to