astro / microvm.nix

NixOS MicroVMs
https://astro.github.io/microvm.nix/
MIT License
1.25k stars 94 forks source link

Add `securityModel` option to 9P shares for QEMU #206

Closed rmgaray closed 6 months ago

rmgaray commented 6 months ago

Hello! I would like to thank you first for your project, which I find very friendly for a virtualization newbie like myself.

I am trying to set up a VM with a share to be mounted in /home/myuser. But in order to have this share as a usable home folder for myuser, I need to change its permissions. I noticed that all shares are mounted in qemu using the none security model, which automatically mounts all the shares as root (let me know if I am mistaken about this).

I feel for my use-case having mapped would be better.

So I forked the repo and added one :) . I would like to know if I did well or there is perhaps an easier way of doing this.

astro commented 6 months ago

Do you mind opening a Pull Request for review?

rmgaray commented 6 months ago

Not at all.