Nested LXD, both installed with Snap?


(Jon Clayton) #1

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.


(Stéphane Graber) #2

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

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


(Jon Clayton) #3

OK will try that cheers!


(Jon Clayton) #4

Worked perfectly, thanks :slight_smile: