Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to boot Debian Wheezy from NFS v4?

Bootwing with NFS v3 works just fine. NFS v4 not.

This is in my /etc/exports:

/nfs 192.168.100.0/24(ro,sync,insecure,no_root_squash,no_subtree_check,fsid=0)
/nfs/root 192.168.100.0/24(ro,nohide,sync,insecure,no_root_squash,no_subtree_check)

/nfs/root/www contains the root of the webserver.

The commandline is:

rootfstype=nfs4 root=/dev/nfs4 nfsroot=192.168.100.1:/root/www

fails with mount call failed - server replied: Permission denied.

Mounting from the busybox in the initrd fails:

mount -t nfs4 192.168.100.1:/nfs/root/www /root
mounting .. failed: Invalid argument

Do I need to modify the initrd?

share|improve this question
1  
It's not a direct solution, but have you considered using iPXE? You can boot off a webserver or iSCSI target. You can chainload it, so you do not need to modify any NIC firmware, and so you can boot VMs from it too. ipxe.org –  paradroid Apr 14 '12 at 16:28
add comment

1 Answer

I think you have to create a initrd with nfs4 mount utils in it. Or maybe try this: http://packages.debian.org/squeeze/dracut.

share|improve this answer
    
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Scott Pack Oct 23 '12 at 14:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.