upping VM default memory

This commit is contained in:
Andreas Grapentin 2019-03-16 12:47:12 +01:00
parent 2fe6f0a131
commit 01052d0363
No known key found for this signature in database
GPG Key ID: 7171986E4B745536

@ -117,23 +117,25 @@ pvm_guess_qemu_args() {
# otherwise, decide by target arch # otherwise, decide by target arch
case "$2" in case "$2" in
i386|x86_64|ppc64) i386|x86_64|ppc64)
qemu_args+=(-m 1G "$1") qemu_args+=(-m 2G "$1")
# unmount the unneeded virtual drive early # unmount the unneeded virtual drive early
pvm_umount ;; pvm_umount ;;
arm) arm)
qemu_args+=( qemu_args+=(
-machine vexpress-a9 -machine virt
-cpu cortex-a9 -m 2G
-m 1G -kernel "$workdir"/zImage
-kernel "$workdir"/vmlinuz-linux-libre -initrd "$workdir"/initramfs-linux.img
-dtb "$workdir"/dtbs/linux-libre/vexpress-v2p-ca9.dtb -append "console=tty0 console=ttyAMA0 rw root=/dev/vda3"
-initrd "$workdir"/initramfs-linux-libre.img -drive "if=none,file=$1,format=raw,id=hd"
-append "console=tty0 console=ttyAMA0 rw root=/dev/mmcblk0p3" -device "virtio-blk-device,drive=hd"
-drive "if=sd,driver=raw,cache=writeback,file=$1") ;; -device virtio-gpu-device
-netdev "user,id=mynet"
-device "virtio-net-device,netdev=mynet") ;;
riscv64) riscv64)
qemu_args+=( qemu_args+=(
-machine virt -machine virt
-m 1G -m 2G
-kernel "$workdir"/bbl -kernel "$workdir"/bbl
-append "rw root=/dev/vda" -append "rw root=/dev/vda"
-drive "file=${loopdev}p3,format=raw,id=hd0" -drive "file=${loopdev}p3,format=raw,id=hd0"