2016-03-07 16:57:12 +00:00
|
|
|
/v2/hypervisor/projects/{project_id}/qemu/vms/{vm_id}/start
|
2016-03-07 14:01:35 +00:00
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------
|
2015-02-20 13:39:13 +00:00
|
|
|
|
|
|
|
.. contents::
|
|
|
|
|
2016-03-07 16:57:12 +00:00
|
|
|
POST /v2/hypervisor/projects/**{project_id}**/qemu/vms/**{vm_id}**/start
|
2016-03-07 14:01:35 +00:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-03-04 16:50:17 +00:00
|
|
|
Start a Qemu VM instance
|
2015-02-20 13:39:13 +00:00
|
|
|
|
|
|
|
Parameters
|
|
|
|
**********
|
2016-03-11 14:21:21 +00:00
|
|
|
- **vm_id**: UUID for the instance
|
2016-03-11 14:28:45 +00:00
|
|
|
- **project_id**: UUID for the project
|
2015-02-20 13:39:13 +00:00
|
|
|
|
|
|
|
Response status codes
|
|
|
|
**********************
|
2016-03-04 16:50:17 +00:00
|
|
|
- **200**: Instance started
|
2015-02-20 13:39:13 +00:00
|
|
|
- **400**: Invalid request
|
2016-03-04 16:50:17 +00:00
|
|
|
- **404**: Instance doesn't exist
|
2015-02-20 13:39:13 +00:00
|
|
|
|
|
|
|
Output
|
|
|
|
*******
|
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
|
2015-06-10 12:35:53 +00:00
|
|
|
<tr><td>acpi_shutdown</td> <td>✔</td> <td>boolean</td> <td>ACPI shutdown support</td> </tr>
|
2015-02-20 13:39:13 +00:00
|
|
|
<tr><td>adapter_type</td> <td>✔</td> <td>string</td> <td>QEMU adapter type</td> </tr>
|
|
|
|
<tr><td>adapters</td> <td>✔</td> <td>integer</td> <td>number of adapters</td> </tr>
|
2016-03-04 16:50:17 +00:00
|
|
|
<tr><td>boot_priority</td> <td>✔</td> <td>enum</td> <td>Possible values: c, d, n, cn, cd</td> </tr>
|
2015-10-16 17:05:29 +00:00
|
|
|
<tr><td>cdrom_image</td> <td>✔</td> <td>string</td> <td>QEMU cdrom image path</td> </tr>
|
|
|
|
<tr><td>cdrom_image_md5sum</td> <td>✔</td> <td>['string', 'null']</td> <td>QEMU cdrom image checksum</td> </tr>
|
2016-03-04 16:50:17 +00:00
|
|
|
<tr><td>command_line</td> <td>✔</td> <td>string</td> <td>Last command line used by GNS3 to start QEMU</td> </tr>
|
2015-02-20 13:39:13 +00:00
|
|
|
<tr><td>console</td> <td>✔</td> <td>integer</td> <td>console TCP port</td> </tr>
|
2015-07-09 14:16:43 +00:00
|
|
|
<tr><td>console_type</td> <td>✔</td> <td>enum</td> <td>Possible values: telnet, vnc</td> </tr>
|
2015-02-20 13:39:13 +00:00
|
|
|
<tr><td>cpu_throttling</td> <td>✔</td> <td>integer</td> <td>Percentage of CPU allowed for QEMU</td> </tr>
|
2015-10-16 17:05:29 +00:00
|
|
|
<tr><td>cpus</td> <td>✔</td> <td>['integer', 'null']</td> <td>number of vCPUs</td> </tr>
|
2015-02-20 13:39:13 +00:00
|
|
|
<tr><td>hda_disk_image</td> <td>✔</td> <td>string</td> <td>QEMU hda disk image path</td> </tr>
|
2015-07-09 14:16:43 +00:00
|
|
|
<tr><td>hda_disk_image_md5sum</td> <td>✔</td> <td>['string', 'null']</td> <td>QEMU hda disk image checksum</td> </tr>
|
2015-10-16 17:05:29 +00:00
|
|
|
<tr><td>hda_disk_interface</td> <td>✔</td> <td>string</td> <td>QEMU hda interface</td> </tr>
|
2015-02-20 13:39:13 +00:00
|
|
|
<tr><td>hdb_disk_image</td> <td>✔</td> <td>string</td> <td>QEMU hdb disk image path</td> </tr>
|
2015-07-09 14:16:43 +00:00
|
|
|
<tr><td>hdb_disk_image_md5sum</td> <td>✔</td> <td>['string', 'null']</td> <td>QEMU hdb disk image checksum</td> </tr>
|
2015-10-16 17:05:29 +00:00
|
|
|
<tr><td>hdb_disk_interface</td> <td>✔</td> <td>string</td> <td>QEMU hdb interface</td> </tr>
|
2015-03-30 09:05:54 +00:00
|
|
|
<tr><td>hdc_disk_image</td> <td>✔</td> <td>string</td> <td>QEMU hdc disk image path</td> </tr>
|
2015-07-09 14:16:43 +00:00
|
|
|
<tr><td>hdc_disk_image_md5sum</td> <td>✔</td> <td>['string', 'null']</td> <td>QEMU hdc disk image checksum</td> </tr>
|
2015-10-16 17:05:29 +00:00
|
|
|
<tr><td>hdc_disk_interface</td> <td>✔</td> <td>string</td> <td>QEMU hdc interface</td> </tr>
|
2015-03-30 09:05:54 +00:00
|
|
|
<tr><td>hdd_disk_image</td> <td>✔</td> <td>string</td> <td>QEMU hdd disk image path</td> </tr>
|
2015-07-09 14:16:43 +00:00
|
|
|
<tr><td>hdd_disk_image_md5sum</td> <td>✔</td> <td>['string', 'null']</td> <td>QEMU hdd disk image checksum</td> </tr>
|
2015-10-16 17:05:29 +00:00
|
|
|
<tr><td>hdd_disk_interface</td> <td>✔</td> <td>string</td> <td>QEMU hdd interface</td> </tr>
|
2015-02-20 13:39:13 +00:00
|
|
|
<tr><td>initrd</td> <td>✔</td> <td>string</td> <td>QEMU initrd path</td> </tr>
|
2015-07-09 14:16:43 +00:00
|
|
|
<tr><td>initrd_md5sum</td> <td>✔</td> <td>['string', 'null']</td> <td>QEMU initrd path</td> </tr>
|
2015-02-20 13:39:13 +00:00
|
|
|
<tr><td>kernel_command_line</td> <td>✔</td> <td>string</td> <td>QEMU kernel command line</td> </tr>
|
|
|
|
<tr><td>kernel_image</td> <td>✔</td> <td>string</td> <td>QEMU kernel image path</td> </tr>
|
2015-07-09 14:16:43 +00:00
|
|
|
<tr><td>kernel_image_md5sum</td> <td>✔</td> <td>['string', 'null']</td> <td>QEMU kernel image checksum</td> </tr>
|
2015-02-20 13:39:13 +00:00
|
|
|
<tr><td>legacy_networking</td> <td>✔</td> <td>boolean</td> <td>Use QEMU legagy networking commands (-net syntax)</td> </tr>
|
2015-06-10 12:35:53 +00:00
|
|
|
<tr><td>mac_address</td> <td>✔</td> <td>string</td> <td>QEMU MAC address</td> </tr>
|
2015-02-20 13:39:13 +00:00
|
|
|
<tr><td>name</td> <td>✔</td> <td>string</td> <td>QEMU VM instance name</td> </tr>
|
|
|
|
<tr><td>options</td> <td>✔</td> <td>string</td> <td>Additional QEMU options</td> </tr>
|
2015-07-09 14:16:43 +00:00
|
|
|
<tr><td>platform</td> <td>✔</td> <td>enum</td> <td>Possible values: aarch64, alpha, arm, cris, i386, lm32, m68k, microblaze, microblazeel, mips, mips64, mips64el, mipsel, moxie, or32, ppc, ppc64, ppcemb, s390x, sh4, sh4eb, sparc, sparc64, tricore, unicore32, x86_64, xtensa, xtensaeb</td> </tr>
|
2015-02-20 13:39:13 +00:00
|
|
|
<tr><td>process_priority</td> <td>✔</td> <td>enum</td> <td>Possible values: realtime, very high, high, normal, low, very low</td> </tr>
|
|
|
|
<tr><td>project_id</td> <td>✔</td> <td>string</td> <td>Project uuid</td> </tr>
|
|
|
|
<tr><td>qemu_path</td> <td>✔</td> <td>string</td> <td>path to QEMU</td> </tr>
|
|
|
|
<tr><td>ram</td> <td>✔</td> <td>integer</td> <td>amount of RAM in MB</td> </tr>
|
2016-01-04 16:04:15 +00:00
|
|
|
<tr><td>usage</td> <td>✔</td> <td>string</td> <td>How to use the qemu VM</td> </tr>
|
2015-07-09 14:16:43 +00:00
|
|
|
<tr><td>vm_directory</td> <td>✔</td> <td>string</td> <td></td> </tr>
|
2015-02-20 13:39:13 +00:00
|
|
|
<tr><td>vm_id</td> <td>✔</td> <td>string</td> <td>QEMU VM uuid</td> </tr>
|
|
|
|
</table>
|
|
|
|
|
2015-02-24 10:38:57 +00:00
|
|
|
Sample session
|
|
|
|
***************
|
|
|
|
|
|
|
|
|
2016-03-07 14:01:35 +00:00
|
|
|
.. literalinclude:: ../../../examples/hypervisor_post_projectsprojectidqemuvmsvmidstart.txt
|
2015-02-24 10:38:57 +00:00
|
|
|
|