Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

* Main steps

- Prepare information

- Get VM’s CPU information

- Reconfig VM’s CPU

1. Preparation

...

Overview

In this manual, you will find detailed information on how to prepare information, get the VM’s CPU information, and Reconfigure the VM’s CPU.

Procedure

Expand

Step 1: Prepare Information

Login IAM portal -> vCD portal: collect the information

...

  • {{vcd_url}}

...

Image Added

    ...

    • {{vm-uuid}}: select VM -> take a look vm uuid on url

    ...

    Image Added

      ...

      • {{Bearer Token}}: Please follow “Api token login” document

      Step 2

      ...

      : Get VM’s CPU information

      ...

      • GET https://{{vcd_url}}/api/vApp/{{vm-uuid}}/virtualHardwareSection/cpu

      • Authorization: {{Bearer Token }}

      • Headers:

      - ‘Accept’: */*;version=37.2

      - ‘Content-type’: application/vnd.vmware.vcloud.rasdItem+xml

      ...

      Image Added
      • SEND request.

      ...

      Copy Response Body

      Step 3

      ...

      : Reconfigure VM’s CPU

      Postman:

      • PUT https://{{vcd_url}}/api/vApp/{{vm-uuid}}/virtualHardwareSection/cpu

      • Authorization: {{Bearer Token }}

      • Headers:

      - 'Accept: */*;version=37.2

      - ‘Content-type’: application/vnd.vmware.vcloud.rasdItem+xml

      Body: {{select raw -> copy and pasteresponse body from Get VM’s CPU information }}

      Ex:

      <?xmlversion="1.0"encoding="UTF-8"standalone="yes"?>

      <ns4:Itemxmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1"xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData"xmlns:common="http://schemas.dmtf.org/wbem/wscim/1/common"xmlns:ns4="http://www.vmware.com/vcloud/v1.5"

          <rasd:Reservation>0</rasd:Reservation>

          <rasd:ResourceSubTypexmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:nil="true"/>

          <rasd:ResourceType>3</rasd:ResourceType>

      …………………………………………………………………………..

      ………………………………………………………………………….

          <rasd:VirtualQuantity>8</rasd:VirtualQuantity>

          <rasd:VirtualQuantityUnitsxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:nil="true"/>

          <rasd:Weight>0</rasd:Weight>

          <vmw:CoresPerSocketovf:required="false">2</vmw:CoresPerSocket>

      type="application/vnd.vmware.vcloud.rasdItem+json"/>

      </ns4:Item>

      ==============================================================================

      Find line “<rasd:VirtualQuantity>8</rasd:VirtualQuantity>” and edit the number, it’s the CPU number.

      ...

      Image Added
      • SEND request.

      Step 4

      ...

      : Verify

      ...

      • Get VM’s CPU information

      GET https://{{vcd_url}}/api/vApp/{{vm-uuid}}/virtualHardwareSection/cpu

      ...

      • Check on vCD portal

      Login IAM -> vCD portal-> select VM-> Compute

      End.