Bug#501985: linux-image-2.6.26-1-openvz-686: No nfs support in openvz guest
On Sun, Oct 12, 2008 at 03:15:10PM +0200, Yann Rouillard wrote:
> Package: linux-image-2.6.26-1-openvz-686
> Version: 2.6.26-5
> Severity: important
>
>
> I recently tried the openvz linux kernel flavour and has some issue
> with mounting nfs partitions in an openvz guest.
>
> I followed the instructions at http://wiki.openvz.org/NFS
>
> openvz-host# cat /proc/sys/kernel/ve_allow_kthreads
> 1
>
> openvz-host# lsmod | grep -w ^nfs
> nfs 214568 0
>
> openvz-host# grep FEATURE /etc/vz/conf/200.conf
> FEATURES="nfs:on "
>
> When I launch the openvz guest in verbose mode, I see that nfs is
> enabled in the feature mask:
>
> openvz-host# vzctl start 200
> Starting VE ...
> Running: /usr/sbin/vzquota show 200
> Running: /usr/sbin/vzquota on 200 -r 0 -b 1048676 -B 1153124 -i 200100 -I 220100 -e 0 -n 0 -s 0
> Mounting root: /var/lib/vz/root/200 /var/lib/vz/private/200
> VE is mounted
> Set iptables mask 0x000017bf
> Set features mask 0000000000000002/0000000000000002
> Adding IP address(es): 192.168.122.80
> Running: /usr/lib/vzctl/scripts/vps-net_add
> /usr/share/doc/vzctl/README.Debian.
> Running VE script: /etc/vz/dists/scripts/debian-add_ip.sh
> Setting CPU units: 1000
> Configure meminfo: 65536
> Running VE script: /etc/vz/dists/scripts/set_dns.sh
> File resolv.conf was modified
> Running: /usr/sbin/vzquota stat 200 -f
> Running: vzquota setlimit 200 -b 1048576 -B 1153024 -i 200000 -I 220000 -e 0 -n 0
> VE start in progress...
>
> however the nfs filesystem is still unknown in the openvz-guest:
>
> openvz-guest# cat /proc/filesystems
> ext3
> nodev sysfs
> nodev proc
> nodev tmpfs
> nodev devpts
>
> openvz-gest# mount -t nfs nfs_server:/home /home
> mount: unknown filesystem type 'nfs'
>
> I had a look at the openvz patch:
> kernel-patches/all/2.6.26/debian/features/all/openvz/openvz.patch.bz2
>
> and this patch doesn't seem to contain some nfs code that is found in
> linux-patch-openvz.
> For instance, the openvz patch used in linux-image-2.6.26-1-openvz-686 doesn't modify
> the fs/nfs/super.c file although the linux-patch-openvz does.
>
> So I wonder if nfs is enabled in openvz kernel image, and if it's not if
> could be enabled ?
>
> Thanks in advance for your answer.
>
>
> Yann
the upstream nfs fixes are abi breakers and thus can't be integrated
at this point they will be for the first point release were abi
breaking will be allowed again.
Reply to: