contrib/nm-live-vm: start the VM with less memory (1024 mb)

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2014-03-07 13:58:23 +01:00
parent 6a5c05e61a
commit c274725dc3

View file

@ -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