From 06b24ecb0b707034e11b3bad4821cf50c3d9ffc6 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 3 Dec 2009 15:09:12 -0800 Subject: [PATCH] vkernel test - Add a NFS root / boot feature to the vkernel test environment * Add a NFS root / boot feature to the vkernel test environment. By default set IP to 10.0.0.53 and mount the root from 10.0.0.1:/netboot2, using overridable make variables. --- test/vkernel/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/vkernel/Makefile b/test/vkernel/Makefile index 525f94fd5d..6ec426e31e 100644 --- a/test/vkernel/Makefile +++ b/test/vkernel/Makefile @@ -147,6 +147,18 @@ run: check -r root.img -U -v \ -I /var/run/vknet +# When running w/ a NFS root +# +NFS_IP?= 10.0.0.53 +NFS_NETMASK?= 255.255.255.0 +NFS_ROOT_IP?= 10.0.0.1 +NFS_ROOT_PATH?= /netboot2 + +run_nfsroot: check + cd ${VKDIR} && ./vkernel -m ${PHYSMEM} -n ${NCPUS} -U -v \ + -I /var/run/vknet \ + -e 'boot.netif.ip=${NFS_IP}:boot.netif.netmask=${NFS_NETMASK}:boot.netif.name=vke0:boot.nfsroot.server=${NFS_ROOT_IP}:boot.nfsroot.path=${NFS_ROOT_PATH}' + # Make sure we are not mounted and the VN device is unconfigured, # # Find an unused VN device but do not do anything with it yet. -- 2.41.0