aboutsummaryrefslogtreecommitdiff
path: root/qemu.sh
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-06-09 16:56:54 +0700
committerShulhan <ms@kilabit.info>2025-12-25 14:50:18 +0700
commitcbc720a6c7b686312d1d309157b37c855eab063c (patch)
tree73568ef23589580bcc13e0d623a5276189144e8c /qemu.sh
parent0e203fa35544ac1db582c89c913af9bef6911ade (diff)
downloadcompute-archlinux-image-builder-cbc720a6c7b686312d1d309157b37c855eab063c.tar.xz
all: add task to build image testable with qemu
An image that build for qemu will have user "arch" with predefined SSH keys, so user can access the guest from host either using SSH key or password.
Diffstat (limited to 'qemu.sh')
-rwxr-xr-xqemu.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/qemu.sh b/qemu.sh
index 559313a..a696f2d 100755
--- a/qemu.sh
+++ b/qemu.sh
@@ -4,7 +4,8 @@ image=$1
echo $image
qemu-system-x86_64 -enable-kvm \
-drive format=raw,file=$image,if=virtio \
- -net none \
+ -device virtio-net,netdev=network0 \
+ -netdev user,id=network0 \
-m 512M \
-bios /usr/share/ovmf/x64/OVMF.fd \
-boot menu=on