diff --git a/_quarto.yml b/_quarto.yml index e9f4aed..84c0ee1 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -34,6 +34,9 @@ website: href: "incidents/index.md" - text: "Changes" href: "changes/index.md" + - text: "How to" + href: "how-to/index.md" + contents: "how-to/*.md" format: diff --git a/how-to/add-a-disk.md b/how-to/add-a-disk.md new file mode 100644 index 0000000..11a8ca7 --- /dev/null +++ b/how-to/add-a-disk.md @@ -0,0 +1,19 @@ +--- +title: "How to add a disk" +--- + +## Pass through to VM + +Add a pass-through disk by filling in this template. Look at the existing passed through +disks and increment the `virtio` ID by 1. Always use `by-id` identifiers for disks +instead of e.g. `/dev/sda`, as the latter can change between boots. + +```bash +qm set -virtio /dev/disk/by-id/ata- +``` + +e.g. if I already have `virtio1`-`virtio4` on VMID `100`, I would add `virtio5`: + +```bash +qm set 100 -virtio5 /dev/disk/by-id/ata-HGST_XXXXXXXXXXXXXXX_XXXXXXXX +``` diff --git a/how-to/index.md b/how-to/index.md new file mode 100644 index 0000000..c96370a --- /dev/null +++ b/how-to/index.md @@ -0,0 +1,5 @@ +--- +title: "How-to" +listing: + type: "table" +---