9p kernel module?

Technical issues/questions of an intermediate or advanced nature.
simonb
Ronin
Ronin
Posts: 3
Joined: 04 Feb 2017, 19:58
Distribution: Mate
Location: UK

9p kernel module?

Post#1 by simonb » 05 Feb 2017, 17:23

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?

simonb
Ronin
Ronin
Posts: 3
Joined: 04 Feb 2017, 19:58
Distribution: Mate
Location: UK

Re: 9p kernel module?

Post#2 by simonb » 06 Feb 2017, 10:59

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.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: 9p kernel module?

Post#3 by Bogomips » 06 Feb 2017, 11:10

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
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: 9p kernel module?

Post#4 by brokenman » 26 Feb 2017, 15:07

Thanks. Including 9P in the next kernel.
Uploaded the 64bit kernel-4.9.12 to the server.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply