Is there a way to add hwaddr to nic created with profile?
for example I got profile macvlan:
devices:
eth0:
nictype: macvlan
parent: enp0s31f6
type: nic
and i cant setup hwaddr for eth0
lxc config device set container eth0 hwaddr 00:50:56:01:32:22
Error: The device doesn’t exist
Yes that is normal, what’s happened there is in overriding the profile device, it will have removed the profile device from the instance (clearing any associated volatile keys) and then added a new instance device (with the profile config plus the overridden hwaddr) to the instance which then doesn’t create a volatile key.