QEMU Share Directory with Host Without Networking

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


Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>