lxc info
says shiftfs: "false"
which presumably means it is off. And yes, host is 18.04.
Will try and run as unprivileged, not sure if Kubernetes requires that though.
I’m using dir
disks as this is a development environment thingy, where developers can try use a local Kubernetes to run software (a bit like Minikube), and the other filesystems seem to require dedicated partitions which is a little much for someone who just knows how to write and compile code. Please do say if I could use btrfs
without major alterations on the host’s disk setups! From all the guides that I’ve seen about running k8s inside LXD people are using dir
.
I am currently running into a problem where I’ve mounted a dir
root FS (-s
flag for lxc launch
), but inside the container Docker somehow sees it as a vfs
FS and is not supported.
Thanks!
EDIT:
I read up a bit on btrfs and learned that you can in fact use a loopback to fake a partition: https://www.excamera.com/sphinx/article-btrfs.html
My question is whether LXD does this automatically when creating storage, or whether I should create this loopback myself first, and then somehow define it when creating a new btrfs storage pool in LXD? The documentation on this is a bit vague.
EDIT2:
Okay it seems they default to being loop backed: Noob question: How to create additional storage? (loop file based, dir, etc.)
Will try running with a btrfs pool and see what happens.
EDIT3:
Okay btrfs works well for LXD+Docker, but it is not officially supported by Kubernetes, so will have to see how this works.