aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-28 00:17:04 +0700
committerShulhan <ms@kilabit.info>2026-01-28 00:17:04 +0700
commitc79f98d5a1dd8061e933c5a9b261a93c632b7f30 (patch)
tree7480c8e7cde26662fdcf5c195a8104a7118c080b
parent5aafb2bf78ba7e421d75cdef028850a6dc8c286f (diff)
downloadcompute-archlinux-image-builder-main.tar.xz
qemu: update the bios parameter and set the image value directlyHEADmaindev
-rwxr-xr-xqemu.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu.sh b/qemu.sh
index a696f2d..b6fc8fa 100755
--- a/qemu.sh
+++ b/qemu.sh
@@ -1,11 +1,11 @@
#!/bin/sh
-image=$1
+image=disk.raw
echo $image
qemu-system-x86_64 -enable-kvm \
-drive format=raw,file=$image,if=virtio \
-device virtio-net,netdev=network0 \
-netdev user,id=network0 \
-m 512M \
- -bios /usr/share/ovmf/x64/OVMF.fd \
+ -bios /usr/share/ovmf/x64/OVMF.4m.fd \
-boot menu=on