Hello! I've been converting my home network infrastructure over to FreeBSD and have been really enjoying it so far. Unfortunately, I'm running into an issue with mounting a virtio-9p disk into an Alpine linux VM. The disk itself mounts fine but I'm unable to access the underlying files with any user other than root. I have a user with a matching uid/gid (10001,10001) on the host and guest and have confirmed the host user has access with an NFSv4 ACL. I'd greatly appreciate any help you folks can provide with this. While the simple answer here is NFS, I'd like to use 9p if at all possible.
vm-bhyve config:
ACL on the folder:
Mount command on the guest:
vm-bhyve config:
Code:
loader="uefi"
cpu=4
memory=8G
network0_type="virtio-net"
network0_switch="public"
disk0_type="nvme"
disk0_name="disk0.img"
disk1_type="virtio-9p"
disk1_name="media=/main/media"
disk1_dev="custom"
ACL on the folder:
Code:
# file: /main/media
# owner: root
# group: wheel
user:plex:rwxpDdaARWcCos:fd-----:allow
group:media-ro:r-----a-R-c---:fd-----:allow
owner@:rwxp--aARWcCos:-------:allow
group@:rwxp--a-R-c--s:-------:allow
everyone@:------a-R-c--s:-------:allow
Mount command on the guest:
doas mount -t 9p -o trans=virtio,version=9p2000.L media /media9p