Skip to content

Commit

Permalink
Add How To add a disk page
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Nov 6, 2023
1 parent 4743207 commit 07d5bab
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
19 changes: 19 additions & 0 deletions how-to/add-a-disk.md
Original file line number Diff line number Diff line change
@@ -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 <VMID> -virtio<ID> /dev/disk/by-id/ata-<ID>
```

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
```
5 changes: 5 additions & 0 deletions how-to/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "How-to"
listing:
type: "table"
---

0 comments on commit 07d5bab

Please sign in to comment.