churchers / vm-bhyve

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

virtio-9p does not work in FreeBSD 13 and 14 guests. #552

Open vukitoso opened 2 months ago

vukitoso commented 2 months ago

Hello. I wanted to forward a directory to a FreeBSD 13.2 guest and was surprised that freebsd 13.2 cannot mount virtio-9p. It's the same on FreeBSD 14.1.

Only recently Jun 19 2024 support for virtio_p9fs appeared on FreeBSD 15 CURRENT To do this, add virtio_p9fs_load=YES to loader.conf. Mounting looks like this mount -t p9fs sharename /mnt

The documentation https://github.com/churchers/vm-bhyve/wiki/Virtual-Disks says

On a FreeBSD guest, the 9p share can be mounted with the following command:
# mount -t 9p -o trans=virtio sharename /local/mount/point/of/share

How did you manage to mount the directory via 9p?