this post was submitted on 03 Nov 2024
14 points (93.8% liked)

Selfhosted

40347 readers
329 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] Appoxo@lemmy.dbzer0.com 7 points 3 weeks ago (8 children)

Maybe NFS share the drive from guest to host?

[–] GathererStuff@lemmy.ml 1 points 2 weeks ago (2 children)

What would be the performance implications? Isn't virtiofs theoretically faster?

[–] Appoxo@lemmy.dbzer0.com 2 points 2 weeks ago (1 children)

Not an expert.
Assuming it's internal I'd assume it's probably as fast as the guest nic allows?

[–] GathererStuff@lemmy.ml 1 points 2 weeks ago

Fair. I will try NFS if anything else fails. Thanks :)

load more comments (5 replies)