I am running LXC on Debain Wheezy using BTRFS, and have created a container using lxc-create
using the "debian" template (yesterday).
When starting the container, the root filesystem in the container is read only. I expected the rootfs in the container would be read-write, not read-only. This seems to disrupt the started services and prevents the lxc-shutdown
and other host tools from interacting with the container.
I have been using mount -o remount,rw /
to make the rootfs read-write, but it's much too late in the boot process for the container. I have only installed a few extra packages and haven't done any significant configuration yet.
What do I need to do to get the container to boot with a read-write rootfs?
[EDIT]: it appears that the host's filesystem was marked as readonly. Making it read-write then starting the container means that the container has a read-write rootfs. However, when the container is shutdown, the filesystem is readonly again. Appears the container shutdown marks the FS as readonly. Is there something to do to stop it from doing that?