I am trying to test LXC container and created Ubuntu 18.04 container. To access these container from Host Network machines I created new bridged interface in host /etc/network/interfaces and wanted to modify /var/lib/lxc/container-name/config to provide lxc.network.link, lxc.network.ipv4/6, lxc.network.ipv4/6, lxc.network.veth.pair etc. but to my surprise I’m not able to find the config file at this location. though, I can see default.config file at /etc/lxc.
If i update default.config with lxc.network.link and allow newly created containers to get the IP from DHCP will it work? for creating new container I am using “lxc launch ubuntu:18.04”
" A basic configuration is generated at container creation time with the default’s recommended for the chosen template as well as extra default keys coming from the default.conf file."
Not sure where this container specific configuration file gets created.
Thanks for any help in Advance!