Hello, I’ve created two instances for testing purposes, one container and one VM with new storage pool of btrfs, folder /lib/modules is missing from the container instance, also the kernel is nested from the host machine although i’ve launched a different image.
I noticed also that container boots eth0 while VM boots enp5s0
Host:
LXC 4.13
LXD 4.13
Host Kernel:
Linux aurax 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux
Container Kernel:
Linux aurax 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux
VM Kernel:
Linux aurax 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux
Profiles:
VM:
architecture: x86_64
config:
image.architecture: amd64
image.description: Ubuntu impish amd64 (20210501_07:42)
image.os: Ubuntu
image.release: impish
image.serial: "20210501_07:42"
image.type: disk-kvm.img
image.variant: default
limits.cpu: "2"
limits.memory: 2048MB
linux.kernel_modules: overlay
raw.lxc: |-
lxc.apparmor.profile = unconfined
lxc.cgroup.devices.allow = a
lxc.mount.auto = proc:rw sys:rw
lxc.cap.drop=
security.nesting: "true"
security.privileged: "true"
volatile.base_image: 301d8806435b2f7cbc7c8296e264fd9e2e4ac694315371b96363434e6c0fa25e
volatile.eth0.host_name: tap086084d1
volatile.eth0.hwaddr: 00:16:3e:62:72:cc
volatile.last_state.power: RUNNING
volatile.uuid: 0ef99603-26f4-44cd-bcfb-7b9af5896e3d
devices:
eth0:
name: eth0
nictype: bridged
parent: lxdbr0
type: nic
root:
path: /
pool: rancher
type: disk
ephemeral: false
profiles:
- default
- rancher
stateful: false
description: ""
Container:
architecture: x86_64
config:
image.architecture: amd64
image.description: Ubuntu impish amd64 (20210501_07:42)
image.os: Ubuntu
image.release: impish
image.serial: "20210501_07:42"
image.type: squashfs
image.variant: default
limits.cpu: "2"
limits.memory: 2048MB
linux.kernel_modules: overlay
raw.lxc: |-
lxc.apparmor.profile = unconfined
lxc.cgroup.devices.allow = a
lxc.mount.auto = proc:rw sys:rw
lxc.cap.drop=
security.nesting: "true"
security.privileged: "true"
volatile.base_image: 5494af6cc35f1213aef97428006b1f6ee072728a42c243096fff7d6ca0133a51
volatile.eth0.host_name: veth5f73417e
volatile.eth0.hwaddr: 00:16:3e:18:fa:50
volatile.idmap.base: "0"
volatile.idmap.current: '[]'
volatile.idmap.next: '[]'
volatile.last_state.idmap: '[]'
volatile.last_state.power: RUNNING
volatile.uuid: 7d356b72-1d2e-4d09-93ff-3cce7f0d4df6
devices:
eth0:
name: eth0
nictype: bridged
parent: lxdbr0
type: nic
root:
path: /
pool: rancher
type: disk
ephemeral: false
profiles:
- default
- rancher
stateful: false
description: ""
LXD init dump:
config: {}
networks:
- config:
ipv4.address: 10.188.128.1/24
ipv4.nat: "true"
ipv6.address: none
description: ""
name: lxdbr0
type: bridge
project: default
storage_pools:
- config:
size: 30GB
source: /var/snap/lxd/common/lxd/disks/rancher.img
description: ""
name: rancher
driver: btrfs
profiles:
- config:
linux.kernel_modules: bridge,br_netfilter,ip_tables,ip6_tables,ip_vs,netlink_diag,nf_nat,overlay,xt_conntrack
raw.lxc: "lxc.aa_profile = unconfined \nlxc.cgroup.devices.allow
= a \nlxc.mount.auto=proc:rw
sys:rw \nlxc.cap.drop
= "
security.nesting: "true"
security.privileged: "true"
description: Default LXD profile
devices:
eth0:
name: eth0
nictype: bridged
parent: lxdbr0
type: nic
name: default
- config:
limits.cpu: "2"
limits.memory: 2048MB
linux.kernel_modules: overlay
raw.lxc: |-
lxc.apparmor.profile = unconfined
lxc.cgroup.devices.allow = a
lxc.mount.auto = proc:rw sys:rw
lxc.cap.drop=
security.nesting: "true"
security.privileged: "true"
description: ""
devices:
root:
path: /
pool: rancher
type: disk
name: rancher
projects:
- config:
features.images: "true"
features.networks: "true"
features.profiles: "true"
features.storage.volumes: "true"
description: Default LXD project
name: default