[lxc-devel] [PATCH 1/1] lxc-create: add zfs support

Tamas Papp tompos at martos.bme.hu
Tue Apr 23 21:20:15 UTC 2013


On 04/23/2013 10:51 PM, Stéphane Graber wrote:
> If we don't set the block device as lxc.rootfs, then the host has to
> mount the LVM outside of the container's mount namespace, which we
> prefer not to have to do, especially as you get into a chicken and egg
> problem where the LVM path is set in the file that's stored on an
> unmounted LVM partition :)

Yes, that's true. My question is that this setup will be possible? That's new to me, as right now 
AFAIK a rootfs can be only a directory.

> We won't prevent you from putting your container on whatever storage you
> want and setting lxc.rootfs to a standard fs path. That'll still work,

My problem is that creating a 'standard' container with official tools will be pretty complicated.
Standard means here, that lxc-create sets up correct configuration files, the guest OS is fine 
tuned, volume is created...etc. Now it's easy, nice and comfortable, lightweight as the whole project.

> it's just that clone won't detect it's LVM backed and so won't create a
> new LV (instead it'll just create a new entry under /var/lib/lxc and
> rsync the content).

That's correct and clear.

tamas





More information about the lxc-devel mailing list