Hi everyone! I want to be able to access a folder inside the guest that corresponds to a cloud drive that is mounted inside the guest for security purposes. I have tried setting up a shared filesystem inside Virt-Manager (KVM) with virtiofs (following this tutorial: https://absprog.com/post/qemu-kvm-shared-folder) but as soon as I mount the folder in order for it to be accessible on the guest host the cloud drive gets unmounted. I guess a folder cannot have two mounts at the same time. Aliasing the folder using bind and then sharing the aliased folder with the host doesn’t work either. The aliased folder is simply empty on the host.

Does anyone have an idea regarding how I might accomplish this? Is KVM the right choice or would something like docker or podman better suited for this job? Thank you.

  • GathererStuffOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 hours ago

    I strongly disagree why this would not be beneficial. Could you expand?

    • Possibly linux@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 hours ago

      You will need to mange the VM separately and the added hop (into the VM and then out again) will slow down performance and create another point of failure.

      Why would running it in a VM benefit security? Couldn’t you just mount it with fuse?