[libvirt-users] tmpfs mounts for lxc container

Daniel P. Berrange berrange at redhat.com
Thu Dec 8 15:36:27 UTC 2011


On Thu, Dec 08, 2011 at 07:30:28AM -0800, Chris Haumesser wrote:
> I intend to share a single read-only filesystem root among a number of
> LXC containers.
> 
> With lxc-tools, I can specify tmpfs bind mounts within the container,
> for directories that need to be writable, like /var/run and /var/lock.
> 
> Is there a simple way to do this with libvirt, or do I need to mount the
> tmpfs in the host first, and specify it as a filesystem in the xml?

At this point in time you need to create the FS in the host and export
it via the XML

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvirt-users mailing list