[libvirt-users] how to mount /dev/shm on system container

Aarti Sawant aartipsawant10 at gmail.com
Wed Sep 25 10:55:23 UTC 2013


Hello,
thanks a lot it worked..

Thanks
Aarti Sawant
NTTDATA OSS Center Pune


On Tue, Sep 24, 2013 at 3:44 PM, Daniel P. Berrange <berrange at redhat.com>wrote:

> On Tue, Sep 24, 2013 at 03:07:11PM +0530, Aarti Sawant wrote:
> > i have create a system container test1  and trying to mount /dev/shm
> inside
> > a container
> >
> > <domain type='lxc'>
> > <name>test1</name>
> > <memory>102400</memory>
> > <os>
> >   <type>exe</type>
> >   <init>/sbin/init</init>
> > </os>
> > <vcpu>1</vcpu>
> > <devices>
> > <console type='pty'/>
> > <emulator>/usr/libexec/libvirt_lxc</emulator>
> > <filesystem type='mount' accessmode='passthrough'>
> >   <source dir='/lxc/test1/'/>
> >   <target dir='/'/>
> > </filesystem>
> > <interface type='bridge'>
> >   <source bridge='br0'/>
> > </interface>
> > </devices>
> > </domain>
>
> You need to add a RAM filesystem
>
>   http://libvirt.org/formatdomain.html#elementsFilesystems
>
> eg
>
>    <filesystem type='ram'>
>        <source usage='10000'/>
>        <target dir='/dev/shm'/>
>    </filesystem>
>
> usage is in KB
>
> 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:|
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130925/7c8960c2/attachment.htm>


More information about the libvirt-users mailing list