2.6.13 Creating Virtual Machines

In this section, we describe how to create a virtual machine. Your virtual machine configuration may vary and you may want to explore other aspects of the API to fit your own requirements. The examples given provide a basic guideline to getting started.

To create a virtual machine using the REST API, submit a POST request to:

https://hostname:port/ovm/core/wsapi/rest/Vm

The body content of the request should contain an XML representation of the virtual machine object, which should also include the server pool id where the virtual machine should be hosted.