vm.device.create ================ Create a new device for the VM of id `vm`. If `attributes.dtype` is the `RAW` type and a new raw file is to be created, `attributes.exists` will be passed as false. This means the API handles creating the raw file and raises the appropriate exception if file creation fails. If `attributes.dtype` is of `DISK` type and a new Zvol is to be created, `attributes.create_zvol` will be passed as true with valid `attributes.zvol_name` and `attributes.zvol_volsize` values. .. raw:: html
"CDROM"
Path must not contain "{", "}" characters, and it should start with "/mnt/".
Must match regular expression:^/mnt/[^{}]*$
Must be at least 1
characters long
"DISPLAY"
Value must be greater or equal to 5900
and lesser or equal to 65535
Value must be greater or equal to 5900
and lesser or equal to 65535
Must be at least 1
characters long
Must be at least 1
characters long
"SPICE"
"NIC"
^([0-9A-Fa-f]{2}[:-]?){5}([0-9A-Fa-f]{2})$
"PCI"
Must be at least 1
characters long
"RAW"
Path must not contain "{", "}" characters.
Must match regular expression:^[^{}]*$
Must be at least 1
characters long
Must be at least 1
characters long
"DISK"
Must be at least 1
characters long
Must be at least 1
characters long
"USB"
Vendor id must start with "0x" prefix e.g 0x16a8.
Must match regular expression:^0x.*
Must be at least 1
characters long
Product id must start with "0x" prefix e.g 0x16a8.
Must match regular expression:^0x.*
Must be at least 1
characters long
Must be at least 1
characters long
"CDROM"
Path must not contain "{", "}" characters, and it should start with "/mnt/".
Must match regular expression:^/mnt/[^{}]*$
Must be at least 1
characters long
"DISPLAY"
Value must be greater or equal to 5900
and lesser or equal to 65535
Value must be greater or equal to 5900
and lesser or equal to 65535
Must be at least 1
characters long
Must be at least 1
characters long
"SPICE"
"NIC"
^([0-9A-Fa-f]{2}[:-]?){5}([0-9A-Fa-f]{2})$
"PCI"
Must be at least 1
characters long
"RAW"
Path must not contain "{", "}" characters.
Must match regular expression:^[^{}]*$
Must be at least 1
characters long
Must be at least 1
characters long
"DISK"
Must be at least 1
characters long
Must be at least 1
characters long
"USB"
Vendor id must start with "0x" prefix e.g 0x16a8.
Must match regular expression:^0x.*
Must be at least 1
characters long
Product id must start with "0x" prefix e.g 0x16a8.
Must match regular expression:^0x.*
Must be at least 1
characters long
Must be at least 1
characters long