qm, qmrestore: add page (#7157)

beep
Ein Verne 2021-10-30 21:23:13 +08:00 committed by GitHub
parent c39d4cb29f
commit 17c1e31309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

28
pages/linux/qm.md Normal file
View File

@ -0,0 +1,28 @@
# qm
> Qemu/KVM Virtual Machine Manager.
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
- List all virtual machines:
`qm list`
- Using an ISO file uploaded on the local storage, create a virtual machine with a 4 GB IDE disk on the `local-lvm` storage and an ID of 100:
`qm create {{100}} -ide0 {{local-lvm:4}} -net0 {{e1000}} -cdrom {{local:iso/proxmox-mailgateway_2.1.iso}}`
- Show the configuration of a virtual machine, specifying its ID:
`qm config {{100}}`
- Start a specific virtual machine:
`qm start {{100}}`
- Send a shutdown request, then wait until the virtual machine is stopped:
`qm shutdown {{100}} && qm wait {{100}}`
- Destroy a virtual machine and remove all related resources:
`qm destroy {{100}} --purge`

8
pages/linux/qmrestore.md Normal file
View File

@ -0,0 +1,8 @@
# qmrestore
> Restore QemuServer vzdump Backups.
> More information: <https://pve.proxmox.com/pve-docs/qmrestore.1.html>.
- Restore KVM-based virtual machine to local storage:
`qmrestore {{/var/lib/vz/dump/backup_file.vma.lzo}} {{vm_id}} --storage {{local}}`