aboutsummaryrefslogtreecommitdiff
path: root/share/examples/bhyve
diff options
context:
space:
mode:
authorNeel Natu <neel@FreeBSD.org>2013-10-09 03:56:07 +0000
committerNeel Natu <neel@FreeBSD.org>2013-10-09 03:56:07 +0000
commit200758f11496ab1a22a3fcf135a128a960ef9213 (patch)
treeacc9a278b9f141070d676a08d2877d23277d20e2 /share/examples/bhyve
parent490cbcd9cba948ed2aa3eee28e307f9f5d26748f (diff)
downloadsrc-200758f11496ab1a22a3fcf135a128a960ef9213.tar.gz
src-200758f11496ab1a22a3fcf135a128a960ef9213.zip
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)
Notes
Notes: svn path=/head/; revision=256176
Diffstat (limited to 'share/examples/bhyve')
-rwxr-xr-xshare/examples/bhyve/vmrun.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/examples/bhyve/vmrun.sh b/share/examples/bhyve/vmrun.sh
index 73a716298e41..2e1bb38cd9df 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 <gdbport>"
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"