Deploy servers

Use the OpenStack deploy servers API to deploy virtual machines. Your environment must be set up to deploy virtual machines before running the API. Because PowerVC does not support changing the disk capacity during deploy of virtual machines on PowerVM®, the value disk property must be set to the image capacity.

This example is sufficient for deploying a server. See Flavors extra-specs for more advanced options, which can be specified with flavor extra-specs. The flavor extra-specs can be specified in the create server request by using PowerVC automatic flavors. See: Automatic flavors. Here is a simplified example:

{
    "server": {
        "flavorRef": "2",
        "name": "myVM",
        "imageRef": "7bec3b4d-5823-4c17-8e30-bf856abff4ec",
        "networks": [
            {
                "fixed_ip": "10.10.4.2",
                "uuid": "025e776e-9e25-461c-a312-e88a56fa7832"
            }
        ]
    }
}