Host file-system branches as virtual file systems
A special type of virtio device can give a KVM guest access to a branch of the host file system.
The virtio device specifications in the virtual server
configuration include the path to the host branch and a
mount tag that identifies the file system. You use this tag to mount the branch on your KVM guest with a command of this
form:
# mount --types virtiofs <mount_tag> <mount point>
Example: The following command mounts the branch of the file system that is
configured with a tag my_shared_fs at /mnt/shared/ on the guest.
# mount --types virtiofs my_shared_fs /mnt/shared/
You can persistently mount the file system branch through the following entry in
/etc/fstab.
my_shared_fs /mnt/shared defaults 0 0