virt.instance.create¶
Create a new virtualized instance.
This method is a job.
No Additional Items
Tuple Validation
Parameter 1: virt_instance_create
virt_instance_create
Type: objectVirtInstanceCreateArgs parameters.
No Additional PropertiesName
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: const Default: "IMAGE"Specific value:
"IMAGE"
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
Type: stringMust be at least 1 characters long
Must be at most 200 characters long
Remote
Type: const Default: "LINUX_CONTAINERS"Specific value:
"LINUX_CONTAINERS"
Instance Type
Type: const Default: "CONTAINER"Specific value:
"CONTAINER"
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: constSpecific value:
"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: constSpecific value:
"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: constSpecific value:
"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: constSpecific value:
"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: constSpecific value:
"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: constSpecific value:
"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
PCI
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: constSpecific value:
"PCI"
Address
Type: stringMust be at least 1 characters long
Memory
Default: nullVirtInstanceEntry
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
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