Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-06 00:22:04 +00:00
parent 50d4c83b4e
commit c22ca08b6b
13 changed files with 168 additions and 18 deletions

25
tldr/linux/qm-disk Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# qm disk
> Manage disk images.
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
- Add `n` gigabytes to a virtual disk:
`qm {{[di|disk]}} {{[resi|resize]}} {{vm_id}} {{disk_name}} +{{n}}G`
- Move a virtual disk:
`qm {{[di|disk]}} {{[m|move]}} {{vm_id}} {{destination}} {{index}}`
- Delete the previous copy of the virtual disk:
`qm {{[di|disk]}} {{[m|move]}} --delete {{vm_id}} {{destination}} {{index}}`
- Import a VMDK/qcow2/raw disk image using a specific storage name:
`qm {{[di|disk]}} {{[i|import]}} {{vm_id}} {{path/to/disk}} {{storage_name}} --format {{qcow2|raw|vmdk}}`