Skip to main content

Hi Team,

I have created an vm, but when i trying to update VM its failed. Initially created VM without Guest tools NGT using API as we are using DHCP its taking 1-3 minutes to get IP Address assigned. then i have trying to update the VM with Guest tools in my payload, its failing, Error is internal error. Any suggestion pl. here is my payload im trying to update

 

{

    "metadata": {

        "categories_mapping": {

 

        },

        "kind": "vm",

        "use_categories_mapping": true

    },

    "spec": {

        "name": "test-vm",

        "description": "test-vm",

        "resources": {

            "is_agent_vm": false,

            "num_sockets": 1,

            "memory_size_mib": 4096,

            "num_vcpus_per_socket": 1,

            "power_state": "ON",

            "hardware_clock_timezone": "UTC",

            "disk_list":

                {

                    "device_properties": {

                        "device_type": "DISK",

                        "disk_address": {

                            "adapter_type": "SCSI",

                            "device_index": 0

                        }

                    },

                    "disk_size_bytes": 161061273600,

                    "data_source_reference": {

                        "kind": "image",

                        "uuid": "8f933bb8-8830-4422-98b6-b13d9f7748cd",

                        "name": "oracle-test"

                    }

                }

            ],

            "gpu_list":  

 

            ],

            "boot_config": {

                "boot_type": "UEFI"

            },

            "guest_tools": {

                            "nutanix_guest_tools": {

                                "iso_mount_state": "MOUNTED",

                                "state": "ENABLED",

                                "ngt_state": "INSTALLED",

                                "credentials": {

                                    "username": "test",

                                    "password": "test"

                                },

                                "enabled_capability_list":  

                                    "SELF_SERVICE_RESTORE",

                                    "VSS_SNAPSHOT"

                                ]

                            }

                        },

            "nic_list":  

                {

                    "nic_type": "NORMAL_NIC",

                    "is_connected": true,

                    "vlan_mode": "ACCESS",

                    "subnet_reference": {

                        "uuid": "b6343f80-af7b-4d6a-a849-573deb4f59c4",

                        "name": "test",

                        "kind": "subnet"

                    },

                    "uuid": "ceffffca-1eb4-492f-ba68-7eb92a746a06"

                }

            ]

        },

        "cluster_reference": {

            "uuid": "12361c56-dde8-bad2-7dda-043201c7b0c0",

            "kind": "cluster"

        }

    },

    "api_version": "3.1.0"

}

 

Be the first to reply!