Filesystem passthrough: Directory vs Physical

Got couple of primary use cases:

  • Windows games
  • Music syncing with iTunes (I use an iPhone)

Is there a performance downside if I were to do just directory vs the entire physical drive?

Also, I just tried to passthrough my Music directory, but I got permission denied:

Error starting domain: internal error: qemu unexpectedly closed the monitor: 2022-01-16T19:56:10.323650Z qemu-system-x86_64: -device virtio-9p-pci,id=fs0,fsdev=fsdev-fs0,mount_tag=Music,bus=pci.4,addr=0x0: cannot initialize fsdev 'fsdev-fs0': failed to open '/home/DATA/SGBC2T/yamiyuki/Music': Permission denied

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 101, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1329, in startup
    self._backend.create()
  File "/usr/lib/python3/dist-packages/libvirt.py", line 1353, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: 2022-01-16T19:56:10.323650Z qemu-system-x86_64: -device virtio-9p-pci,id=fs0,fsdev=fsdev-fs0,mount_tag=Music,bus=pci.4,addr=0x0: cannot initialize fsdev 'fsdev-fs0': failed to open '/home/DATA/SGBC2T/yamiyuki/Music': Permission denied

More than likely no, but it depends.

You may be getting a permissions issues due to who owns the mount or is doing the mount.

1 Like