| Index: lib/cros_vm_lib.sh
|
| diff --git a/lib/cros_vm_lib.sh b/lib/cros_vm_lib.sh
|
| index 61d575bfff6bd4b9197f230d8e07163e30547670..c47d11de33bb01c4375dbbab6a0a02b0559f6ac8 100644
|
| --- a/lib/cros_vm_lib.sh
|
| +++ b/lib/cros_vm_lib.sh
|
| @@ -4,6 +4,8 @@
|
| #
|
| # Common vm functions for use in crosutils.
|
|
|
| +. "$(dirname "$0")/cros_vm_constants.sh"
|
| +
|
| DEFINE_string kvm_pid "" \
|
| "Use this pid file. If it exists and is set, use the vm specified by pid."
|
| DEFINE_boolean no_graphics ${FLAGS_FALSE} "Runs the KVM instance silently."
|
| @@ -11,7 +13,6 @@ DEFINE_boolean persist "${FLAGS_FALSE}" "Persist vm."
|
| DEFINE_boolean snapshot ${FLAGS_FALSE} "Don't commit changes to image."
|
| DEFINE_integer ssh_port 9222 "Port to tunnel ssh traffic over."
|
|
|
| -
|
| KVM_PID_FILE=/tmp/kvm.$$.pid
|
|
|
| function get_pid() {
|
| @@ -47,7 +48,7 @@ function start_kvm() {
|
| snapshot="-snapshot"
|
| fi
|
|
|
| - sudo kvm -m 1024 \
|
| + sudo kvm -m ${DEFAULT_MEM} \
|
| -vga std \
|
| -pidfile "${KVM_PID_FILE}" \
|
| -daemonize \
|
|
|