1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-14 14:15:47 +02:00

qm-disk: add page (#17502)

This commit is contained in:
Managor 2025-08-05 15:30:22 +03:00 committed by GitHub
parent 725b1eefb4
commit a4adee3c4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

20
pages/linux/qm-disk.md Normal file
View file

@ -0,0 +1,20 @@
# 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}}`