1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-07 22:35:42 +02:00
tldr/pages/linux/qm-create.md

25 lines
706 B
Markdown
Raw Normal View History

2022-10-04 16:58:55 +02:00
# 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:
2025-07-25 19:00:05 +03:00
`qm {{[cr|create]}} {{100}}`
2022-10-04 16:58:55 +02:00
- Automatically start the machine after creation:
2025-07-25 19:00:05 +03:00
`qm {{[cr|create]}} {{100}} --start 1`
2022-10-04 16:58:55 +02:00
- Specify the type of operating system on the machine:
2025-07-25 19:00:05 +03:00
`qm {{[cr|create]}} {{100}} --ostype {{win10}}`
2022-10-04 16:58:55 +02:00
- Replace an existing machine (requires archiving it):
2025-07-25 19:00:05 +03:00
`qm {{[cr|create]}} {{100}} --archive {{path/to/backup_file.tar}} --force 1`
2022-10-04 16:58:55 +02:00
- Specify a script that is executed automatically depending on the state of the virtual machine:
2022-10-04 16:58:55 +02:00
2025-07-25 19:00:05 +03:00
`qm {{[cr|create]}} {{100}} --hookscript {{path/to/script.pl}}`