I used the following profile to create a container called nc
, but there are some network related issues.
- The container cannot connect to Internet. If I use default profile, the networking works. If I attach a gpu device to container after creating, it works. However, after I set the
nvidia.runtime = trueand restart container, the Internet will down.
- After some debuging, I found the container which
resolvconfservice will not auto start, and
eth0will not get a IPV4 address.
- I manually start
resolvconfservice, and my
eth0can get IPV4 address, but dns seems not working. That is I can ping 126.96.36.199 successfully, but I can not ping google.com
config: nvidia.runtime: "true" description: Nvidia card support devices: eth0: name: eth0 nictype: bridged parent: lxdbr0 type: nic gpu0: pci: "0000:01:00.0" type: gpu root: path: / pool: default type: disk name: ncard used_by: - /1.0/containers/nc