From c274725dc3f19dc718db87a8b5a6e04d816d8a65 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 7 Mar 2014 13:58:23 +0100 Subject: [PATCH] contrib/nm-live-vm: start the VM with less memory (1024 mb) Signed-off-by: Thomas Haller --- contrib/fedora/nm-live-vm/run.sh | 5 +++-- 1 file 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