1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-10 16:35:43 +02:00
tldr/pages/linux/qm-create.md
Managor 58f014e349
qm-create: add network bridging example (#17553)
Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>
2025-08-08 02:31:16 +03:00

28 lines
827 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 {{[cr|create]}} {{100}}`
- Automatically start the machine after creation:
`qm {{[cr|create]}} {{100}} --start 1`
- Specify the type of operating system on the machine:
`qm {{[cr|create]}} {{100}} --ostype {{win10}}`
- Replace an existing machine (requires archiving it):
`qm {{[cr|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 {{[cr|create]}} {{100}} --hookscript {{path/to/script.pl}}`
- Create a VM that bridges itself to the host network:
`qm {{[cr|create]}} {{100}} --net{{0}} virtio,bridge=vmbr{{0}}`