summaryrefslogtreecommitdiffstats
path: root/qemu/launch.sh
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-02-01 16:57:26 -0600
committerLouis Burda <quent.burda@gmail.com>2023-02-01 16:58:04 -0600
commitdf90539b9e7ee75c206d5b77d4f1b94882d090c7 (patch)
tree8ec23f1671f61577a4b6c03b3794edf69a321e6f /qemu/launch.sh
parent039144b8e7f7fb4074883e8037787d420e86f70c (diff)
downloadcachepc-df90539b9e7ee75c206d5b77d4f1b94882d090c7.tar.gz
cachepc-df90539b9e7ee75c206d5b77d4f1b94882d090c7.zip
Add guest provisioning scripts and instructions
Diffstat (limited to 'qemu/launch.sh')
-rwxr-xr-xqemu/launch.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/qemu/launch.sh b/qemu/launch.sh
new file mode 100755
index 0000000..c99e54e
--- /dev/null
+++ b/qemu/launch.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+set -ex
+
+gitroot=$(git rev-parse --show-toplevel)
+cd "$gitroot/qemu"
+
+sudo LIBVIRT_DEBUG=1 virsh net-start default 2>&1 | grep -i warning || true
+
+sudo PREFIX=$gitroot/AMDSEV $gitroot/AMDSEV/launch-qemu.sh \
+ -hda debian11.qcow2 \
+ -console serial \
+ -vnc 1 \
+ -mem 2024 \
+ -smp 1,cores=4,threads=2 \
+ -allow-debug
+