From f9f9a7e61707f80f49be34d2c1af7490549580f9 Mon Sep 17 00:00:00 2001 From: neel Date: Wed, 9 Oct 2013 03:56:07 +0000 Subject: Parse the memory size parameter using expand_number() to allow specifying the memory size more intuitively (e.g. 512M, 4G etc). Submitted by: rodrigc Reviewed by: grehan Approved by: re (blanket) --- share/examples/bhyve/vmrun.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/examples') diff --git a/share/examples/bhyve/vmrun.sh b/share/examples/bhyve/vmrun.sh index 73a7162..2e1bb38 100755 --- a/share/examples/bhyve/vmrun.sh +++ b/share/examples/bhyve/vmrun.sh @@ -31,7 +31,7 @@ LOADER=/usr/sbin/bhyveload BHYVECTL=/usr/sbin/bhyvectl FBSDRUN=/usr/sbin/bhyve -DEFAULT_MEMSIZE=512 +DEFAULT_MEMSIZE=512M DEFAULT_CPUS=2 DEFAULT_TAPDEV=tap0 @@ -47,7 +47,7 @@ usage() { echo " -g: listen for connection from kgdb at " echo " -i: force boot of the Installation CDROM image" echo " -I: Installation CDROM image location (default is ${DEFAULT_ISOFILE})" - echo " -m: memory size in MB (default is ${DEFAULT_MEMSIZE}MB)" + echo " -m: memory size (default is ${DEFAULT_MEMSIZE})" echo " -t: tap device for virtio-net (default is $DEFAULT_TAPDEV)" echo "" echo " This script needs to be executed with superuser privileges" -- cgit v1.1