Mounting shared folder in KVM VM error: mount: unknown filesystem type '9p'

Ion Dulgheru picture Ion Dulgheru · Jul 26, 2013 · Viewed 7.1k times · Source

I'm using Centos 6.4 in a KVM virtual machine, with CentOS 6.4 as host also. I configured shared folders following these instructions: http://www.linux-kvm.org/page/9p_virtio. When I try to mount the shared folder in the guest machine I get

mount: unknown filesystem type '9p'.

The command I used is:

mount -t 9p -o trans=virtio /shared /mnt/shared

I did modprobe -l | grep 9p, and the result is:

kernel/net/9p/9pnet.ko
kernel/net/9p/9pnet_virtio.ko
kernel/net/9p/9pnet_rdma.ko

The kernel module for virtio filesystem seems to be loaded.

lsmod | grep 9p result is:

9pnet_virtio            7350  0 
9pnet                  38652  1 9pnet_virtio
virtio_ring             8301  6 9pnet_virtio,virtio_balloon,virtio_console,virtio_net,virtio_blk,virtio_pci
virtio                  4977  6 9pnet_virtio,virtio_balloon,virtio_console,virtio_net,virtio_blk,virtio_pci

I installed all the packages in connection with qemu-kvm, virtio, 9p ...
The same error.
Any ideas?

Answer