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