Thanks for the feature suggestion. That would indeed be useful. If I understand you correctly, the configuration file would still be under /var/lib/lxc/<container>, but only the rootfs would be moved?
Note that you can currently achieve this in a few ways. You can use lvm backing stores with volume groups on several different drives. You can also create the container as usual, lxc-create -t ubuntu -n p1 move the rootfs mv /var/lib/lxc/p1/rootfs /mnt/ and then edit /var/lib/lxc/p1/config to set lxc.rootfs = /mnt/rootfs However, adding support for something like '-B dir --dir /mnt/rootfs' to lxc-create would be doable and avoid the need for hand-editing the container. ** Changed in: lxc (Ubuntu) Importance: Undecided => Low ** Changed in: lxc (Ubuntu) Status: New => Triaged -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1019398 Title: Allow creation of container root filesystem in a user defined location To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1019398/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs