# exporting the nfsroot from the server
echo "/srv/nfsroot/$RELEASE *(rw,no_subtree_check,no_root_squash)" >> /etc/exports
service nfs-kernel-server reload
For testing in a VM, you can set it up in virt-manager to do a direct kernel boot using the host's kernel and initramfs, and kernel args along the lines of "ro boot=nfs root=/dev/nfs nfsroot=<server IP>:/srv/nfsroot/$RELEASE".
I'm tarpman in #ubuntu-devel if you want to talk about this with lower latency, for example if I made some error above.
This is, in a nutshell, the setup I'm using for testing:
# installing a minimal chroot containing nfs-common nfs-common $RELEASE /srv/nfsroot/ $RELEASE $RELEASE/ etc/hostname $RELEASE/ etc/network/ interfaces $RELEASE passwd root
debootstrap --include=
echo "$RELEASE-nfsroot" > /srv/nfsroot/
echo "iface eth0 inet manual" >> /srv/nfsroot/
chroot /srv/nfsroot/
# exporting the nfsroot from the server $RELEASE *(rw,no_ subtree_ check,no_ root_squash) " >> /etc/exports
echo "/srv/nfsroot/
service nfs-kernel-server reload
For testing in a VM, you can set it up in virt-manager to do a direct kernel boot using the host's kernel and initramfs, and kernel args along the lines of "ro boot=nfs root=/dev/nfs nfsroot=<server IP>:/srv/ nfsroot/ $RELEASE" .
I'm tarpman in #ubuntu-devel if you want to talk about this with lower latency, for example if I made some error above.