diff options
| author | Robert Günzler <r@gnzler.io> | 2021-07-29 23:52:39 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-07-29 23:52:39 +0200 |
| commit | e85d6410af991ec81b847541a48026ae973cde7e (patch) | |
| tree | f286d3cefa8aac03729f1389fad7803e85152674 /.local/share/navi/cheats/robertgzr__cheats/qemu.cheat | |
| parent | 5ffcd34f5649a97a966e3dcaafebf2ac87f7897e (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.cheat | 28 |
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 |