From cbc720a6c7b686312d1d309157b37c855eab063c Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 9 Jun 2024 16:56:54 +0700 Subject: 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. --- qemu.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qemu.sh') 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 -- cgit v1.3