Closed eviweb closed 4 years ago
You're getting confused between the valid values for LXD networks (lxc network edit lxdbr0
) and container devices (lxc config edit alpine
).
The none/auto values are only valid for networks, not for network interfaces. For network interfaces, they must either be set to an address in the network's subnet or not be set at all.
https://linuxcontainers.org/lxd/docs/master/containers#nictype-bridged https://linuxcontainers.org/lxd/docs/master/networks
My bad, thanks for the clarification.
Required information
Issue description
none
orauto
values are no more allowed to IPv4 and IPv6 settings unlike it is described in the network documentation.Steps to reproduce
lxc init images:alpine/3.10 alpine
lxc network attach lxdbr0 alpine eth0
lxc config device set alpine eth0 ipv4.address auto
lxc config show alpine
Error: Invalid devices: Invalid value for device option ipv4.address: Not an IPv4 address: auto
Information to attach
dmesg
)lxc info NAME --show-log
)lxc config show NAME --expanded
)lxc monitor
while reproducing the issue)