aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2015-10-08 02:28:22 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2015-10-08 02:28:22 +0000
commit8c96dcc16675ac7098124e527fc0d9335931ec79 (patch)
treecc99a3e538993ea68a90ed8393410139031c93a2 /share
parent6cc056de261d6efc8a204a83e3d2d316991e2fd9 (diff)
downloadsrc-8c96dcc16675ac7098124e527fc0d9335931ec79.tar.gz
src-8c96dcc16675ac7098124e527fc0d9335931ec79.zip
Add option -l for specifying which OS loader to dlopen(3). By default
this is /boot/userboot.so. This option allows for the development and use of other OS loaders.
Notes
Notes: svn path=/head/; revision=289001
Diffstat (limited to 'share')
-rwxr-xr-xshare/examples/bhyve/vmrun.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/share/examples/bhyve/vmrun.sh b/share/examples/bhyve/vmrun.sh
index 58bfa4a8f999..b2f2195c0299 100755
--- a/share/examples/bhyve/vmrun.sh
+++ b/share/examples/bhyve/vmrun.sh
@@ -48,8 +48,8 @@ usage() {
echo "Usage: vmrun.sh [-ahi] [-c <CPUs>] [-C <console>] [-d <disk file>]"
echo " [-e <name=value>] [-g <gdbport> ] [-H <directory>]"
- echo " [-I <location of installation iso>] [-m <memsize>]"
- echo " [-t <tapdev>] <vmname>"
+ echo " [-I <location of installation iso>] [-l <loader>]"
+ echo " [-m <memsize>] [-t <tapdev>] <vmname>"
echo ""
echo " -h: display this help message"
echo " -a: force memory mapped local APIC access"
@@ -61,6 +61,7 @@ usage() {
echo " -H: host filesystem to export to the loader"
echo " -i: force boot of the Installation CDROM image"
echo " -I: Installation CDROM image location (default is ${DEFAULT_ISOFILE})"
+ echo " -l: the OS loader to use (default is /boot/userboot.so)"
echo " -m: memory size (default is ${DEFAULT_MEMSIZE})"
echo " -p: pass-through a host PCI device at bus/slot/func (e.g. 10/0/0)"
echo " -t: tap device for virtio-net (default is $DEFAULT_TAPDEV)"
@@ -92,7 +93,7 @@ loader_opt=""
bhyverun_opt="-H -A -P"
pass_total=0
-while getopts ac:C:d:e:g:hH:iI:m:p:t: c ; do
+while getopts ac:C:d:e:g:hH:iI:l:m:p:t: c ; do
case $c in
a)
bhyverun_opt="${bhyverun_opt} -a"
@@ -125,6 +126,9 @@ while getopts ac:C:d:e:g:hH:iI:m:p:t: c ; do
I)
isofile=${OPTARG}
;;
+ l)
+ loader_opt="${loader_opt} -l ${OPTARG}"
+ ;;
m)
memsize=${OPTARG}
;;