KVM Filesystem Passthrough

parker's picture

I recently starting using the Passthrough filesystem device in KVM as a replacement for NFS.
In order to mount 9p filesystems at system boot, the following changes were needed on the Fedora 17 guests.
/etc/fstab entry:

data-new /data/New 9p trans=virtio 0 0
Modify image used by kernel in order to mount 9p filesystem at system boot:
mkinitrd -f /boot/initramfs-`uname -r`.img `uname -r` --with 9pnet_virtio
Available mount tags can be seen by reading /sys/bus/virtio/drivers/9pnet_virtio/virtio/mount_tag files.
# mkdir /tmp/host_files
# mount -t 9p -o access=any,trans=virtio,version=9p2000.L data2 /mnt/test