diff options
author | Thomas Haller <thaller@redhat.com> | 2014-03-07 13:58:23 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-06-30 17:42:09 +0200 |
commit | c274725dc3f19dc718db87a8b5a6e04d816d8a65 (patch) | |
tree | 4ab1c572888d05e57fc3e5d78b973ac90049ad07 | |
parent | 6a5c05e61a8808c935e71735687e7e88507982e5 (diff) | |
download | NetworkManager-c274725dc3f19dc718db87a8b5a6e04d816d8a65.tar.gz |
contrib/nm-live-vm: start the VM with less memory (1024 mb)
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rwxr-xr-x | contrib/fedora/nm-live-vm/run.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/fedora/nm-live-vm/run.sh b/contrib/fedora/nm-live-vm/run.sh index d0f1ed2f28..189650b84f 100755 --- a/contrib/fedora/nm-live-vm/run.sh +++ b/contrib/fedora/nm-live-vm/run.sh @@ -10,6 +10,7 @@ fi DIR="$(dirname "$(readlink -f "$0")")" SDIR="$DIR/share" +MEMORY=$((3*1024)) mkdir "$SDIR" @@ -21,7 +22,7 @@ if [ "$OS" == "Red Hat Enterprise Linux" ]; then PATH=$PATH:/usr/libexec - qemu-kvm -vnc :0 -m 2048 $NET_OPTIONS -kernel vmlinuz -append "video=1024x768 rootfstype=ramfs" -initrd initramfs.img & + qemu-kvm -vnc :0 -m $MEMORY $NET_OPTIONS -kernel vmlinuz -append "video=1024x768 rootfstype=ramfs" -initrd initramfs.img & sleep 1 vncviewer localhost @@ -36,5 +37,5 @@ else QEMU="qemu-system-$ARCH -enable-kvm" } - $QEMU -m 2048 -net nic $NET_OPTIONS -drive "file=fat:rw:$SDIR,cache=none" -kernel vmlinuz -append "video=1024x768 rootfstype=ramfs" -initrd initramfs.img + $QEMU -m $MEMORY -net nic $NET_OPTIONS -drive "file=fat:rw:$SDIR,cache=none" -kernel vmlinuz -append "video=1024x768 rootfstype=ramfs" -initrd initramfs.img fi |