Hi all, I’m running lxd 3.0.0 on Ubuntu 18.04 and I would like to use NAT/bridge networking for most containers, but with the possibility to fix the IP address myself (to ease some cluster config in Ansible).
I’ve tried many things and read a lot around, but didn’t find anything that works. I tried "lxc config device set mycontainer eth0 ipv4.address 10.25.240.139” it returns: Error: The device doesn't exist (source: https://blog.ubuntu.com/2017/02/14/network-management-with-lxd-2-3 <https://blog.ubuntu.com/2017/02/14/network-management-with-lxd-2-3>) The lxdbr0 bridged network is inherited by the container from the ‘default profile’ and lxdbr0 config is: lxc network show lxdbr0 config: dns.mode: dynamic ipv4.address: 10.115.240.1/24 ipv4.dhcp.ranges: 10.115.240.2-10.115.240.100 ipv4.nat: "true" ipv6.address: fd3f:a1a8:9bb:fb1e::1/64 description: "" name: lxdbr0 type: bridge If I check "lxc network list-leases lxdbr0” all IP adresses are “DYNAMIC” should it be changed to static somewhere? Is there a way to tell lxd’s dhcp server what IP to use for a specific container? Thanks for any help. Cheers, Michel
_______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
