Comment 45 for bug 537133

Revision history for this message
Ryan Tandy (rtandy) wrote :

This is, in a nutshell, the setup I'm using for testing:

# installing a minimal chroot containing nfs-common
debootstrap --include=nfs-common $RELEASE /srv/nfsroot/$RELEASE
echo "$RELEASE-nfsroot" > /srv/nfsroot/$RELEASE/etc/hostname
echo "iface eth0 inet manual" >> /srv/nfsroot/$RELEASE/etc/network/interfaces
chroot /srv/nfsroot/$RELEASE passwd root

# 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.