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

ref.
https://superuser.com/questions/628169/how-to-share-a-directory-with-the-host-without-networking-in-qemu

On this day..

Share and Enjoy:
  • Print
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Plurk
Related Posts

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>