1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 22:02:09 +02:00
tldr/pages/linux/qm.md
Managor 1c51b3cecd
qm, qmrestore: edit page (#13984)
* qmrestore: minor title edit
* qm: mention subcommands

---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-10-05 16:08:39 +02:00

29 lines
858 B
Markdown

# qm
> QEMU/KVM Virtual Machine Manager.
> Some subcommands such as `list`, `start`, `stop`, `clone`, etc. have their own usage documentation.
> 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`