mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 21:00:32 +01:00
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:
parent
6a5c05e61a
commit
c274725dc3
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue