[libvirt] [PATCH] vbox: Support shared folders

Eric Blake eblake at redhat.com
Tue Jun 14 15:53:12 UTC 2011


On 06/07/2011 05:38 AM, Matthias Bolte wrote:
> Shared folders are handled as filesystems and can also be hotplugged.
> ---
> 
> Currently this just maps shared folder to a filesystem element with type
> mount. The filesystem element has an accessmode attribute that is not
> useful for VirtualBox. Als the target element only has a dir attribute,
> but VirtualBox shares doen't support that, you can only give them a name.
> 
> <filesystem type='mount' accessmode='passthrough'>
>   <source dir='/tmp'/>
>   <target dir='foobar'/>
>   <readonly/>
> </filesystem>
> 
> I wonder if we should add a shared folder type like this:
> 
> <filesystem type='sharedfolder'>
>   <source dir='/tmp'/>
>   <target name='foobar'/>
>   <readonly/>
> </filesystem>
> 
> Or is this to specific to VirtualBox?

This sounds kind of like the plan9 file system patch; commit a5c646a, so
type='mount' sounds reasonable to me.

> 
> VirtualBox 4.0 added the automount option that automatically mounts a
> shared folder in the guest. On Windows it is mounted to a free drive
> letter on Linux it's mounted to /media/<prefix>_<shared-folder-name>.
> The <prefix> is a global configuration option in VirtualBox. I wonder
> if and how to expose that in libvirt.

I'm not sure I have any better ideas, but I'm happy saving that question
for a subsequent patch.

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110614/0918dfdf/attachment-0001.sig>


More information about the libvir-list mailing list