[virt-tools-list] QEMU/VirtFS user permission on files in shares

Cole Robinson crobinso at redhat.com
Fri May 20 16:58:52 UTC 2016


Please don't respond to a digest message, the mail content is 90% irrelevant

On 05/20/2016 12:46 PM, Sorrillo, Lawrence wrote:
> All,
> I have been using VirtFS in QEMU for filesystem  passthrough.
> 
> I would like files/dirs  created on the VirtFS share in the VM to have the 
> UID/GID of the user logged into the VM and not the process that started the 
> QEMU VM. 
> 
> Does anyone know how to accomplish this without running QEMU in privileged mode
> or starting QEMU as the user that is going to be login to the VM  and write to the VirtFS share?
> 

You need to use the virtfs-proxy-helper with qemu, but it's never been wired
up in libvirt so you'll need to call qemu manually, or use libvirt qemu
commandline passthrough

- Cole




More information about the virt-tools-list mailing list