If Guest Support 9P and virtio.
Add this line to QEMU command
-virtfs local,path=/path/to/share,mount_tag=host0,security_model=passthrough,id=host0
and in guest os, edit /etc/fstab and add
host0 /wherever 9p trans=virtio,version=9p2000.L 0 0
ref.
https://superuser.com/questions/628169/how-to-share-a-directory-with-the-host-without-networking-in-qemu
發佈留言