Skip to content

Commit

Permalink
docs: add qemu notes
Browse files Browse the repository at this point in the history
  • Loading branch information
icecreammatt committed Mar 14, 2024
1 parent 39ed1df commit d70a5e8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/reference/qemu.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# qemu

## virtual disk creation

```fish
qemu-img create -f qcow2 example.img 80G
```

## running nixos image
```fish
qemu-system-x86_64 -cdrom ./result/iso/nixos-24.05.20240306.9df3e30-x86_64-linux.iso -drive file=example.img -net nic -net user,hostfwd=tcp::10022-:22 -daemonize -m 8G
```

0 comments on commit d70a5e8

Please sign in to comment.