For the working solution I created a share called 'NFS_Ubuntu' and specified Read Only for the NFS Access Control and in this share I mounted the Ubuntu LiveCD image by adding a line into the "/etc/fstab".
The PXE boot files I put in "/Filestorage/PXE/TFTPRoot/pxelinux.cfg/" and the contents of my 'default' file is as follows...
- Code: Select all
DEFAULT /pxelinux.cfg/menu.c32
LABEL Ubuntu Livecd 11.04
MENU DEFAULT
KERNEL Ubuntu/casper/vmlinuz
APPEND root=/dev/nfs boot=casper netboot=nfs nfsroot=192.168.1.100:/share/MD0_DATA/NFS_Ubuntu/ initrd=Ubuntu/casper/initrd.lz
..."nfsroot=192.168.1.100:/share/MD0_DATA/NFS_Ubuntu/"
With all the above as specified my client booted off the network and successfully gets into Ubuntu which is great!
However my original attempt was to mount the Ubuntu LiveCD into "/Filestorage/PXE/TFTPRoot/Ubuntu/", specify Read Only NFS Access Controls with a 'default' file of...
- Code: Select all
DEFAULT /pxelinux.cfg/menu.c32
LABEL Ubuntu Livecd 11.04
MENU DEFAULT
KERNEL Ubuntu/casper/vmlinuz
APPEND root=/dev/nfs boot=casper netboot=nfs nfsroot=192.168.1.100:/share/MD0_DATA/Filestorage/PXE/TFTPRoot/Ubuntu/ initrd=Ubuntu/casper/initrd.lz
..."nfsroot=192.168.1.100:/share/MD0_DATA/Filestorage/PXE/TFTPRoot/Ubuntu/"
This just generated errors during the boot sequence which eventually droped in to an initramfs prompt as it was unable to locate the 'filesystem.squashfs' which was because the boot was unable to mount my nfsroot share with the error "Server denied permission". I then looked at "/etc/exports" and I believe I found the cause...the share is only listed in the exports file up to the 'Filestorage' folder...
- Code: Select all
"/share/NFS/Filestorage" *(ro,nohide,async,no_root_squash)
"/share/MD0_DATA/Filestorage" *(ro,nohide,async,no_root_squash)
Am I doing something wrong? Is there a way to specify the nfsroot share further down the directory structure as per my original attempt? Reading some of the various guides found such as https://wiki.ubuntu.com/LiveCDNetboot it would seem a full Ubuntu Desktop install can achieve what I'm trying to do so is this something specific about the QNap?
Thanks in advance,
K
News