Nested LXD, both installed with Snap?

Hi

I tried installing LXD inside another container, parent is snap 3.4 and the child was also attempted with snap.

The child version fails

  • Run install hook of “lxd” snap if present (run hook “install”: cannot perform operation: mount --rbind /lib/modules /tmp/snap.rootfs_pSGWXh//lib/modules: No such file or directory)

I’ve tried zfs, btrfs and dir storage all get the same error.

Also I’m setting security.privileged true.

Is this possible?

Cheers,
Jon.

That’s a bug in recent Ubuntu images, /lib/modules is missing.

Just run “mkdir -p /lib/modules” and try installing the snap again.

OK will try that cheers!

Worked perfectly, thanks :slight_smile: