about summary refs log tree commit diff stats
path: root/tools/scripts/system-qemu.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/scripts/system-qemu.sh')
-rw-r--r--tools/scripts/system-qemu.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/scripts/system-qemu.sh b/tools/scripts/system-qemu.sh
new file mode 100644
index 0000000..8c68e70
--- /dev/null
+++ b/tools/scripts/system-qemu.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+ISO=~/crux-3.2.iso
+IMG=~/crux-img.qcow2
+
+TAP=$1
+
+echo "TAP: $TAP"
+
+qemu-system-x86_64 \
+    -enable-kvm \
+    -m 1024 \
+    -boot d \
+    -cdrom ${ISO} \
+    -hda ${IMG} \
+    -net nic,model=virtio -net tap,ifname=${TAP},script=no,downscript=no