Mounting the shared path You can mount the shared folder using
mount -t 9p -o trans=virtio [mount tag] [mount point] -oversion=9p2000.L
mount tag: As specified in Qemu commandline. mount point: Path to mount point. trans: Transport method (here virtio for using 9P over virtio) version: Protocol version. By default it is 9p2000.u . Other options that can be used include:
msize: Maximum packet size including any headers. By default it is 8KB. access: Following are the access modes access=user : If a user tries to access a file on v9fs filesystem for the first time, v9fs sends an attach command (Tattach) for that user. This is the default mode. access= : It only allows the user with uid= to access the files on the mounted filesystem access=any : v9fs does single attach and performs all operations as one user
Reference: https://wiki.qemu.org/Documentation/9psetup
For fstab: