[lxc-users] [lxd] trying to set eth0 mac address fails
Rémy Dernat
remy.d1 at gmail.com
Mon Jun 27 11:40:33 UTC 2016
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 <remy.d1 at gmail.com>:
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160627/f9268903/attachment.html>
More information about the lxc-users
mailing list