Page 1 of 1

9p kernel module?

Posted: 05 Feb 2017, 17:23
by simonb
Porteus is running as a KVM guest on an Ubuntu 16.04 host.

When I do

Code: Select all

mount -t 9p -o trans=virtio,version=9p2000.L /hostshare /hostshare
I get

Code: Select all

mount: unknown filesystem type '9p'
Obviously I am missing the 9p kernel module.

Is this available in a package or is there another recommended way of sharing folders with the host?

Re: 9p kernel module?

Posted: 06 Feb 2017, 10:59
by simonb
OK. Answering my own post.

I re-compiled the kernel, using 4.9.8 as the kernel source and the corresponding aufs patch for that kernel version, with the following options included in .config:

Code: Select all

CONFIG_NET_9P=m
CONFIG_NET_9P_VIRTIO=m
# CONFIG_NET_9P_DEBUG is not set
CONFIG_9P_FS=m
CONFIG_9P_FSCACHE=y
CONFIG_9P_FS_POSIX_ACL=y
CONFIG_9P_FS_SECURITY=y
I was then able to mount a P9 share.

One thing I found on the way was that it isn't obvious where the 05-devel.xzm comes from. I couldn't find it in USM. I finally downloaded it manually from an FTP source. Maybe I missed something.

Re: 9p kernel module?

Posted: 06 Feb 2017, 11:10
by Bogomips
simonb wrote:One thing I found on the way was that it isn't obvious where the 05-devel.xzm comes from.
Thanks for info. Added it here: http://forum.porteus.org/viewtopic.php?f=81&t=6552

Re: 9p kernel module?

Posted: 26 Feb 2017, 15:07
by brokenman
Thanks. Including 9P in the next kernel.
Uploaded the 64bit kernel-4.9.12 to the server.