virt.instance.create¶
Create a new virtualized instance.
No Additional Items
Tuple Validation
Parameter 1: virt_instance_create
virt_instance_create
Type: objectNo Additional Properties
Name
Type: stringMust be at least 1
characters long
Must be at most 200
characters long
Iso Volume
Default: nullMust be at least 1
characters long
Source Type
Type: enum (of null or string) Default: "IMAGE"Must be one of:
- null
- "IMAGE"
- "ISO"
- "VOLUME"
Storage Pool
Default: nullStorage pool under which to allocate root filesystem. Must be one of the pools
listed in virt.global.config output under "storage_pools". If None (default) then the pool
specified in the global configuration will be used.
Must be at least 1
characters long
Image
Default: nullMust be at least 1
characters long
Must be at most 200
characters long
Root Disk Size
Type: integer Default: 10This can be specified when creating VMs so the root device's size can be configured. Root device for VMs
is a sparse zvol and the field specifies space in GBs and defaults to 10 GBs.
Value must be greater or equal to 5
Root Disk Io Bus
Type: enum (of string) Default: "NVME"Must be one of:
- "NVME"
- "VIRTIO-BLK"
- "VIRTIO-SCSI"
Remote
Type: const Default: "LINUX_CONTAINERS"Must be one of:
- "LINUX_CONTAINERS"
"LINUX_CONTAINERS"
Instance Type
Type: enum (of string) Default: "CONTAINER"Must be one of:
- "CONTAINER"
- "VM"
Environment
Default: nullEach additional property must conform to the following schema
Type: stringAutostart
Default: trueCpu
Default: nullDevices
Default: nullNo Additional Items
Each item of this array must be:
Disk
Type: objectNo Additional Properties
Name
Default: nullMust be at least 1
characters long
Description
Default: nullMust be at least 1
characters long
Readonly
Type: boolean Default: falseDev Type
Type: constMust be one of:
- "DISK"
"DISK"
Source
Default: nullFor CONTAINER instances, this would be a valid pool path. For VM instances, it
can be a valid zvol path or an incus storage volume name
Must be at least 1
characters long
Destination
Default: nullBoot Priority
Default: nullValue must be greater or equal to 0
Io Bus
Type: enum (of null or string) Default: nullMust be one of:
- "NVME"
- "VIRTIO-BLK"
- "VIRTIO-SCSI"
- null
Storage Pool
Default: nullStorage pool in which the device is located. This must be one
of the storage pools listed in virt.global.config output.
If this is set to None during device creation, then the default storage
pool defined in virt.global.config will be used.
Must be at least 1
characters long
GPU
Type: objectNo Additional Properties
Name
Default: nullMust be at least 1
characters long
Description
Default: nullMust be at least 1
characters long
Readonly
Type: boolean Default: falseDev Type
Type: constMust be one of:
- "GPU"
"GPU"
Gpu Type
Type: enum (of string)Must be one of:
- "PHYSICAL"
- "MDEV"
- "MIG"
- "SRIOV"
Id
Default: nullGid
Default: nullValue must be greater or equal to 0
and lesser or equal to 90000000
Uid
Default: nullValue must be greater or equal to 0
and lesser or equal to 90000000
Mode
Default: nullMdev
Default: nullMust be at least 1
characters long
Mig Uuid
Default: nullMust be at least 1
characters long
Pci
Default: nullMust be at least 1
characters long
Productid
Default: nullMust be at least 1
characters long
Vendorid
Default: nullMust be at least 1
characters long
Proxy
Type: objectNo Additional Properties
Name
Default: nullMust be at least 1
characters long
Description
Default: nullMust be at least 1
characters long
Readonly
Type: boolean Default: falseDev Type
Type: constMust be one of:
- "PROXY"
"PROXY"
Source Proto
Type: enum (of string)Must be one of:
- "UDP"
- "TCP"
Source Port
Type: integerValue must be greater or equal to 1
and lesser or equal to 65535
Dest Proto
Type: enum (of string)Must be one of:
- "UDP"
- "TCP"
Dest Port
Type: integerValue must be greater or equal to 1
and lesser or equal to 65535
TPM
Type: objectNo Additional Properties
Name
Default: nullMust be at least 1
characters long
Description
Default: nullMust be at least 1
characters long
Readonly
Type: boolean Default: falseDev Type
Type: constMust be one of:
- "TPM"
"TPM"
Path
Default: nullPathrm
Default: nullUSB
Type: objectNo Additional Properties
Name
Default: nullMust be at least 1
characters long
Description
Default: nullMust be at least 1
characters long
Readonly
Type: boolean Default: falseDev Type
Type: constMust be one of:
- "USB"
"USB"
Bus
Default: nullDev
Default: nullProduct Id
Default: nullVendor Id
Default: nullNIC
Type: objectNo Additional Properties
Name
Default: nullMust be at least 1
characters long
Description
Default: nullMust be at least 1
characters long
Readonly
Type: boolean Default: falseDev Type
Type: constMust be one of:
- "NIC"
"NIC"
Network
Default: nullMust be at least 1
characters long
Nic Type
Default: nullMust be one of:
- "BRIDGED"
- "MACVLAN"
Parent
Default: nullMust be at least 1
characters long
Mac
Default: nullPCI
Type: objectNo Additional Properties
Name
Default: nullMust be at least 1
characters long
Description
Default: nullMust be at least 1
characters long
Readonly
Type: boolean Default: falseDev Type
Type: constMust be one of:
- "PCI"
"PCI"
Address
Type: stringMust be at least 1
characters long
CDROM
Type: objectNo Additional Properties
Name
Default: nullMust be at least 1
characters long
Description
Default: nullMust be at least 1
characters long
Readonly
Type: boolean Default: falseDev Type
Type: constMust be one of:
- "CDROM"
"CDROM"
Source
Type: stringMust be at least 1
characters long
Boot Priority
Default: nullValue must be greater or equal to 0
Memory
Default: nullSecure Boot
Type: boolean Default: falseEnable Vnc
Type: boolean Default: falseVnc Port
Default: nullValue must be greater or equal to 5900
and lesser or equal to 65535
Volume
Default: nullThis should be set when source type is "VOLUME" and should be the name of the virt volume which should
be used to boot the VM instance.
Must be at least 1
characters long
Vnc Password
Default: nullMust be at least 1
characters long
Image Os
Default: nullMust be one of:
- "LINUX"
- "FREEBSD"
- "WINDOWS"
- "ARCHLINUX"
- null
Privileged Mode
Type: boolean Default: falseThis is only valid for containers and should only be set when container instance which is to be deployed is to
run in a privileged mode.
VirtInstanceEntry
Type: objectNo Additional Properties
Id
Type: stringName
Type: stringMust be at least 1
characters long
Must be at most 200
characters long
Type
Type: enum (of string) Default: "CONTAINER"Must be one of:
- "CONTAINER"
- "VM"
Status
Type: enum (of string)Must be one of:
- "RUNNING"
- "STOPPED"
- "UNKNOWN"
- "ERROR"
- "FROZEN"
- "STARTING"
- "STOPPING"
- "FREEZING"
- "THAWED"
- "ABORTING"
Cpu
Memory
Autostart
Type: booleanEnvironment
Type: objectEach additional property must conform to the following schema
Type: stringAliases
Type: array of objectNo Additional Items
Each item of this array must be:
VirtInstanceAlias
Type: objectNo Additional Properties
Type
Type: enum (of string)Must be one of:
- "INET"
- "INET6"
Address
Type: stringMust be at least 1
characters long
Netmask
Image
Type: objectNo Additional Properties
Architecture
Description
Os
Release
Serial
Type
Variant
Secureboot
UserNsIdmap
Type: objectNo Additional Properties
IdmapUserNsEntry
Type: objectNo Additional Properties
Hostid
Type: integerMaprange
Type: integerNsid
Type: integerIdmapUserNsEntry
Type: objectNo Additional Properties
Hostid
Type: integerMaprange
Type: integerNsid
Type: integerRaw
Vnc Enabled
Type: booleanVnc Port
Vnc Password
Must be at least 1
characters long
Secure Boot
Privileged Mode
Root Disk Size
Root Disk Io Bus
Type: enum (of null or string)Must be one of:
- "NVME"
- "VIRTIO-BLK"
- "VIRTIO-SCSI"
- null
Storage Pool
Type: stringStorage pool in which the root of the instance is located.
Must be at least 1
characters long
Required roles: VIRT_INSTANCE_WRITE