qm-create
Create or restore a virtual machine on QEMU/KVM Virtual Machine Manager. tldr-pages
On Linux
Linux
Create a virtual machine with access to 512MiB of memory and 1 CPU core
qm [cr 100IdentifyGive the virtual machine a name and automatically start the machine after creation
qm [cr 100 --name vm_name --startIdentifyGive a virtual machine specified amount of memory and CPUs
qm [cr 100 --memory 8192 --cores 4IdentifySpecify the type of operating system on the machine
qm [cr 100 --ostype win10IdentifyReplace an existing machine (requires archiving it)
qm [cr 100 --archive path/to/backup_file.tar --force 1IdentifySpecify a script that is executed automatically depending on the state of the virtual machine
qm [cr 100 --hookscript path/to/script.plIdentifySpecify the install media
qm [cr 100 --cdrom local:iso/install-media.isoIdentifyCreate a VM that bridges itself to the host network
qm [cr 100 --net0 virtio,bridge=vmbr0Identify