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 = true
and restart container, the Internet will down. - After some debuging, I found the container which
nvidia.runtime=true
flag, itsnetworking
andresolvconf
service will not auto start, andeth0
will not get a IPV4 address. - I manually start
networking
andresolvconf
service, and myeth0
can get IPV4 address, but dns seems not working. That is I can ping 8.8.8.8 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