virtio-win / kvm-guest-drivers-windows

Windows paravirtualized drivers for QEMU\KVM
https://www.linux-kvm.org/page/WindowsGuestDrivers
BSD 3-Clause "New" or "Revised" License
1.91k stars 377 forks source link

access host's `rclone mount`'ed directory #1065

Closed Inilien closed 3 months ago

Inilien commented 3 months ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like I would like to see a cloud's directory structure mounted on host inside VM as any other host's directory when I share it using virtiofs.

Describe alternatives you've considered

Additional context I use this configuration to create virtiofs shared folder inside VM (which works on other paths but not with rclone mounts)

<filesystem type="mount" accessmode="passthrough">
  <driver type="virtiofs" queue="1024"/>
  <binary path="/usr/lib/virtiofsd" xattr="on">
    <cache mode="always"/>
    <thread_pool size="64"/>
  </binary>
  <source dir="/path/to/folder/on/host"/>
  <target dir="HostSharedFolder"/>
  <address type="pci" domain="0x0000" bus="0x08" slot="0x00" function="0x0"/>
</filesystem>
Inilien commented 3 months ago

Turned out, root user was not able to see the contents of the mounted directory.
After I did this: rclone mount <src> <dst> --allow-other the files from cloud's storage were visible and accessible from the VM.
Relevant link