LinuxCommandLibrary

qm-create

Create or restore a virtual machine on QEMU/KVM Virtual Machine Manager.

TLDR

Create a virtual machine

$ qm create [100]
copy


Automatically start the machine after creation
$ qm create [100] --start 1
copy


Specify the type of operating system on the machine
$ qm create [100] --ostype [win10]
copy


Replace an existing machine (requires archiving it)
$ qm create [100] --archive [path/to/backup_file.tar] --force 1
copy


Specify a script that is executed automatically depending on the state of the virtual machine
$ qm create [100] --hookscript [path/to/script.pl]
copy

Copied to clipboard