1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-24 01:22:10 +02:00
tldr/pages/linux/qm-create.md
FL 6461f656cd
qm-create: rephrase example to better reflect command (#8806)
* rephrased example to better reflect command

* slight rephrase for better reading
2022-10-09 09:51:27 +05:30

24 lines
661 B
Markdown

# qm create
> Create or restore a virtual machine on QEMU/KVM Virtual Machine Manager.
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
- Create a virtual machine:
`qm create {{100}}`
- Automatically start the machine after creation:
`qm create {{100}} --start 1`
- Specify the type of operating system on the machine:
`qm create {{100}} --ostype {{win10}}`
- Replace an existing machine (requires archiving it):
`qm create {{100}} --archive {{path/to/backup_file.tar}} --force 1`
- Specify a script that is executed automatically depending on the state of the virtual machine:
`qm create {{100}} --hookscript {{path/to/script.pl}}`