churchers / vm-bhyve

Shell based, minimal dependency bhyve manager
BSD 2-Clause "Simplified" License
838 stars 177 forks source link

VirtIO 9p share doesn't work between ghostbsd host and windows 10 guest #561

Open sanzhang168 opened 2 weeks ago

sanzhang168 commented 2 weeks ago

I have a host running GhostBSD 24.07.3 and guest running Windows 10 22H2. I manage my vm through vm-bhyve. When I tried to share a folder from host to the guest following this Wiki - VirtIO 9p share, it didn't work. I followed exactly the instructions on the host, then I installed WinFsp and virtio guest tool on the Windows 10 guest. After reboot I can only see a scsi controller with yellow mark, for which I couldn't install driver from the virtio-win.iso. I've started virtio-FS service and still no luck. What could I have done wrong, or is it supported at all? Thanks,

GogoFC commented 2 days ago

Hello Yeah it's supported. More than a week ago I follwed 9p instructions and added it to /etc/fstab in my linux VM. I was gonna run vscode server on it. I added a folder with some scripts I wrote. I couldn't write to the folder without using sudo because of permissions. Later I tried editing the fstab file to try to mount the 9p without sudo and that worked etc. Anyway somehow all of the files dissapeared form the folder. I don't need 9p.

Do you have NFS or SMB?