summary refs log tree commit diff
path: root/.local/share/navi/cheats/robertgzr__cheats/qemu.cheat
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-07-29 23:52:39 +0200
committerRobert Günzler <r@gnzler.io>2021-07-29 23:52:39 +0200
commite85d6410af991ec81b847541a48026ae973cde7e (patch)
treef286d3cefa8aac03729f1389fad7803e85152674 /.local/share/navi/cheats/robertgzr__cheats/qemu.cheat
parent5ffcd34f5649a97a966e3dcaafebf2ac87f7897e (diff)
add navi cheats
Diffstat (limited to '.local/share/navi/cheats/robertgzr__cheats/qemu.cheat')
-rw-r--r--.local/share/navi/cheats/robertgzr__cheats/qemu.cheat28
1 files changed, 28 insertions, 0 deletions
diff --git a/.local/share/navi/cheats/robertgzr__cheats/qemu.cheat b/.local/share/navi/cheats/robertgzr__cheats/qemu.cheat
new file mode 100644
index 0000000..d92b88b
--- /dev/null
+++ b/.local/share/navi/cheats/robertgzr__cheats/qemu.cheat
@@ -0,0 +1,28 @@
+
+% qemu, balena
+
+# boots a balenaOS vm
+
+qemu-system-x86_64 -name balena0 \
+	-netdev "user,id=net0,hostfwd=tcp::22222-:22222" -device e1000,netdev=net0 \
+	-bios /usr/share/edk2-ovmf/OVMF_CODE.fd \
+	-m 4G -smp 4 \
+	-cpu max \
+	-machine type=pc,accel=kvm \
+	-display none \
+	-drive format=vvfat,file=fat:rw:/tmp/qemu,index=1 \
+	-drive format=raw,cache=none,if=virtio,index=0,file=balena.img
+
+
+% qemu, ubuntu
+
+# boots an ubuntu vm
+
+qemu-system-x86_64 -name ubuntu0 \
+	-netdev "user,id=net0,hostfwd=tcp::2222-:22" -device e1000,netdev=net0 \
+	-m 4G -smp 4 \
+	-cpu max \
+	-machine type=pc,accel=kvm \
+	-display none \
+	-drive format=vvfat,file=fat:rw:/tmp/qemu,index=1 \
+	-drive format=qcow2,cache=none,index=0,file=/home/robert/ubuntu.qcow2