|
|
|
@ -61,6 +61,10 @@ QEMU_CREATE_SCHEMA = {
|
|
|
|
|
"description": "QEMU hda disk image path",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hda_disk_interface": {
|
|
|
|
|
"description": "QEMU hda interface",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hda_disk_image_md5sum": {
|
|
|
|
|
"description": "QEMU hda disk image checksum",
|
|
|
|
|
"type": ["string", "null"]
|
|
|
|
@ -69,6 +73,10 @@ QEMU_CREATE_SCHEMA = {
|
|
|
|
|
"description": "QEMU hdb disk image path",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdb_disk_interface": {
|
|
|
|
|
"description": "QEMU hdb interface",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdb_disk_image_md5sum": {
|
|
|
|
|
"description": "QEMU hdb disk image checksum",
|
|
|
|
|
"type": ["string", "null"],
|
|
|
|
@ -77,6 +85,10 @@ QEMU_CREATE_SCHEMA = {
|
|
|
|
|
"description": "QEMU hdc disk image path",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdc_disk_interface": {
|
|
|
|
|
"description": "QEMU hdc interface",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdc_disk_image_md5sum": {
|
|
|
|
|
"description": "QEMU hdc disk image checksum",
|
|
|
|
|
"type": ["string", "null"],
|
|
|
|
@ -85,10 +97,26 @@ QEMU_CREATE_SCHEMA = {
|
|
|
|
|
"description": "QEMU hdd disk image path",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdd_disk_interface": {
|
|
|
|
|
"description": "QEMU hdd interface",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdd_disk_image_md5sum": {
|
|
|
|
|
"description": "QEMU hdd disk image checksum",
|
|
|
|
|
"type": ["string", "null"],
|
|
|
|
|
},
|
|
|
|
|
"cdrom_image": {
|
|
|
|
|
"description": "QEMU cdrom image path",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"cdrom_image_md5sum": {
|
|
|
|
|
"description": "QEMU cdrom image checksum",
|
|
|
|
|
"type": ["string", "null"],
|
|
|
|
|
},
|
|
|
|
|
"boot_priority": {
|
|
|
|
|
"description": "QEMU boot priority",
|
|
|
|
|
"enum": ["c", "d"]
|
|
|
|
|
},
|
|
|
|
|
"ram": {
|
|
|
|
|
"description": "amount of RAM in MB",
|
|
|
|
|
"type": ["integer", "null"]
|
|
|
|
@ -196,6 +224,10 @@ QEMU_UPDATE_SCHEMA = {
|
|
|
|
|
"description": "QEMU hda disk image path",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hda_disk_interface": {
|
|
|
|
|
"description": "QEMU hda interface",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hda_disk_image_md5sum": {
|
|
|
|
|
"description": "QEMU hda disk image checksum",
|
|
|
|
|
"type": ["string", "null"]
|
|
|
|
@ -204,6 +236,10 @@ QEMU_UPDATE_SCHEMA = {
|
|
|
|
|
"description": "QEMU hdb disk image path",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdb_disk_interface": {
|
|
|
|
|
"description": "QEMU hdb interface",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdb_disk_image_md5sum": {
|
|
|
|
|
"description": "QEMU hdb disk image checksum",
|
|
|
|
|
"type": ["string", "null"],
|
|
|
|
@ -212,6 +248,10 @@ QEMU_UPDATE_SCHEMA = {
|
|
|
|
|
"description": "QEMU hdc disk image path",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdc_disk_interface": {
|
|
|
|
|
"description": "QEMU hdc interface",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdc_disk_image_md5sum": {
|
|
|
|
|
"description": "QEMU hdc disk image checksum",
|
|
|
|
|
"type": ["string", "null"],
|
|
|
|
@ -220,10 +260,26 @@ QEMU_UPDATE_SCHEMA = {
|
|
|
|
|
"description": "QEMU hdd disk image path",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdd_disk_interface": {
|
|
|
|
|
"description": "QEMU hdd interface",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdd_disk_image_md5sum": {
|
|
|
|
|
"description": "QEMU hdd disk image checksum",
|
|
|
|
|
"type": ["string", "null"],
|
|
|
|
|
},
|
|
|
|
|
"cdrom_image": {
|
|
|
|
|
"description": "QEMU cdrom image path",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"cdrom_image_md5sum": {
|
|
|
|
|
"description": "QEMU cdrom image checksum",
|
|
|
|
|
"type": ["string", "null"],
|
|
|
|
|
},
|
|
|
|
|
"boot_priority": {
|
|
|
|
|
"description": "QEMU boot priority",
|
|
|
|
|
"enum": ["c", "d"]
|
|
|
|
|
},
|
|
|
|
|
"ram": {
|
|
|
|
|
"description": "amount of RAM in MB",
|
|
|
|
|
"type": ["integer", "null"]
|
|
|
|
@ -330,6 +386,10 @@ QEMU_OBJECT_SCHEMA = {
|
|
|
|
|
"description": "QEMU hda disk image path",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hda_disk_interface": {
|
|
|
|
|
"description": "QEMU hda interface",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hda_disk_image_md5sum": {
|
|
|
|
|
"description": "QEMU hda disk image checksum",
|
|
|
|
|
"type": ["string", "null"]
|
|
|
|
@ -338,6 +398,10 @@ QEMU_OBJECT_SCHEMA = {
|
|
|
|
|
"description": "QEMU hdb disk image path",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdb_disk_interface": {
|
|
|
|
|
"description": "QEMU hdb interface",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdb_disk_image_md5sum": {
|
|
|
|
|
"description": "QEMU hdb disk image checksum",
|
|
|
|
|
"type": ["string", "null"],
|
|
|
|
@ -346,6 +410,10 @@ QEMU_OBJECT_SCHEMA = {
|
|
|
|
|
"description": "QEMU hdc disk image path",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdc_disk_interface": {
|
|
|
|
|
"description": "QEMU hdc interface",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdc_disk_image_md5sum": {
|
|
|
|
|
"description": "QEMU hdc disk image checksum",
|
|
|
|
|
"type": ["string", "null"],
|
|
|
|
@ -354,10 +422,26 @@ QEMU_OBJECT_SCHEMA = {
|
|
|
|
|
"description": "QEMU hdd disk image path",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdd_disk_interface": {
|
|
|
|
|
"description": "QEMU hdd interface",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"hdd_disk_image_md5sum": {
|
|
|
|
|
"description": "QEMU hdd disk image checksum",
|
|
|
|
|
"type": ["string", "null"],
|
|
|
|
|
},
|
|
|
|
|
"cdrom_image": {
|
|
|
|
|
"description": "QEMU cdrom image path",
|
|
|
|
|
"type": "string",
|
|
|
|
|
},
|
|
|
|
|
"cdrom_image_md5sum": {
|
|
|
|
|
"description": "QEMU cdrom image checksum",
|
|
|
|
|
"type": ["string", "null"],
|
|
|
|
|
},
|
|
|
|
|
"boot_priority": {
|
|
|
|
|
"description": "QEMU boot priority",
|
|
|
|
|
"enum": ["c", "d"]
|
|
|
|
|
},
|
|
|
|
|
"vm_directory": {
|
|
|
|
|
"decription": "Path to the VM working directory",
|
|
|
|
|
"type": "string"
|
|
|
|
@ -444,8 +528,9 @@ QEMU_OBJECT_SCHEMA = {
|
|
|
|
|
"additionalProperties": False,
|
|
|
|
|
"required": ["vm_id", "project_id", "name", "qemu_path", "platform", "console_type", "hda_disk_image", "hdb_disk_image",
|
|
|
|
|
"hdc_disk_image", "hdd_disk_image", "hda_disk_image_md5sum", "hdb_disk_image_md5sum",
|
|
|
|
|
"hdc_disk_image_md5sum", "hdd_disk_image_md5sum", "ram", "adapters", "adapter_type", "mac_address",
|
|
|
|
|
"console", "initrd", "kernel_image", "initrd_md5sum", "kernel_image_md5sum", "kernel_command_line",
|
|
|
|
|
"hdc_disk_image_md5sum", "hdd_disk_image_md5sum", "hda_disk_interface", "hdb_disk_interface", "hdc_disk_interface",
|
|
|
|
|
"hdd_disk_interface", "cdrom_image", "cdrom_image_md5sum", "boot_priority", "ram", "adapters", "adapter_type",
|
|
|
|
|
"mac_address", "console", "initrd", "kernel_image", "initrd_md5sum", "kernel_image_md5sum", "kernel_command_line",
|
|
|
|
|
"legacy_networking", "acpi_shutdown", "cpu_throttling", "process_priority", "options", "vm_directory"]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -495,7 +580,7 @@ QEMU_LIST_IMAGES_SCHEMA = {
|
|
|
|
|
|
|
|
|
|
QEMU_IMAGE_CREATE_SCHEMA = {
|
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
|
|
|
"description": "Create a new qemu image. Options can be specific to a format. Read qemu-img manual for more informations.",
|
|
|
|
|
"description": "Create a new qemu image. Options can be specific to a format. Read qemu-img manual for more information",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"qemu_img": {
|
|
|
|
|