Skip to main content
1 of 3
Lioobayoyo
  • 123
  • 1
  • 2
  • 5

Enable 9p filesystem type in Centos 6 virtual guest?

My question is linked to this one : http://stackoverflow.com/questions/17880460/mounting-shared-folder-in-kvm-vm-error-mount-unknown-filesystem-type-9p

(but can't comment it)

I have apparently same settings. Here is my problem :

I want to create a shared folder between host and guest using 9p virtio. I'm following http://www.linux-kvm.org/page/9p_virtio :

# mount -t 9p [...]

mount: unknown filesystem type '9p'

Here is what I see a problem, according to http://wiki.qemu.org/Documentation/9psetup this line in my /boot/confg-$(uname -r) are not correct :

`

# egrep 'CONFIG_(NET_)?_9P' /boot/config-$(uname -r)

CONFIG_NET_9P=m 
CONFIG_NET_9P_VIRTIO=m
CONFIG_NET_9P_RDMA=m
# CONFIG_NET_9P_DEBUG is not set
# CONFIG_9P is not set      <------------

`

the doc tells me to enable it, ok, but how ? I'm not at ease with those kind of linux kernel settings...

at the beginning of the config file there is a

automaticaly generated make config - do not modify

meaning I can't just add the line.

Should I recompile the kernel ? Can't I enable that on boot by changing something in grub settings ? Can I automaticaly enable that on CentOS installation ? (since this will be some kind of template that should be repeatedly done)

Lioobayoyo
  • 123
  • 1
  • 2
  • 5