From befdf618ed075302a764f359f2ad2c24acd26c6a Mon Sep 17 00:00:00 2001 From: Adam Olech Date: Sat, 25 Nov 2023 01:29:50 +0100 Subject: [PATCH] Add an opinionated startup script --- dropbear-qemu-x86_64.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 dropbear-qemu-x86_64.sh diff --git a/dropbear-qemu-x86_64.sh b/dropbear-qemu-x86_64.sh new file mode 100755 index 0000000..4e7ebc3 --- /dev/null +++ b/dropbear-qemu-x86_64.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +kernel="build/unikraft-dropbear_qemu-x86_64" + +qemu-system-x86_64 \ + -kernel "$kernel" \ + -m 128M \ + -netdev tap,id=en0,ifname=tap0,script=no,downscript=no \ + -device virtio-net-pci,netdev=en0 \ + -append "netdev.ipv4_addr=172.44.0.2 netdev.ipv4_gw_addr=172.44.0.1 netdev.ipv4_subnet_mask=255.255.255.0 -- cool" \ + -cpu max \ + -no-shutdown