All pages
Powered by GitBook
1 of 25

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

1. Working with VM

Overview

A Virtual Machine (VM) is a software computer that, like a physical computer, runs an operating system and applications. The virtual machine consists of a set of specification and configuration files and is backed by the physical resources of a host. Every virtual machine has devices that provide the same functionality as physical hardware but are more portable, secure, and easier to manage.

Please refer to the VM usage guide in the list below.

  • Create a New Virtual Machine from ISO

  • Create a Virtual Machine from a Template

  • Install VMware Tools in a Virtual Machine

  • P

COMPUTE

This technical manual provides a comprehensive guide to understanding and handling COMPUTE. It includes detailed descriptions, step-by-step instructions, and necessary resources for effective utilization. Please follow the procedures and recommendations outlined in this manual to ensure the smooth functioning of IT infrastructure.

HI GIO CLOUD is the first full-scale public cloud service in Vietnam and the unique product of a powerful collaboration between two leading technology companies, FPT Telecom and Internet Initiative Japan (IIJ). This platform offers high-performance computing resources, enabling businesses to seamlessly deploy, manage, and scale applications.

View VM
erforming Power Operations on Virtual Machines
Editing the properties of a new VM
Create VM's Template
Force change root/administrator's password
Safely remove Disk in Windows OS
Create a New Virtual Machine from ISO
  • Create a Virtual Machine from a Template

  • Install VMware Tools in a Virtual Machine

  • View VM

  • Performing Power Operations on Virtual Machines

  • Editing the properties of a new VM

  • Create VM's Template

  • Force change root/administrator's password

  • Safely remove Disk in Windows OS

  • Working with vAPP

    • Create a vApp

    • Start and Stop Order of Virtual Machines in a vApp

  • HI GIO Auto Scale

  • HI GIO API

    • API creates VM from Template

    • API reconfigures VM's Disk

    • API reconfigures VM's Networks

  • HI GIO KMS Service

  • Encryption Management Service

  • Introduction

    Overview

    Guideline

    Working with VM
    API token login
    API reconfigures VM's Memory
    API reconfigures VM's CPU
    API power on/off VM

    Force change root/administrator's password

    Overview

    • You can reset the root/administrator’s account password via Guest OS Customization in the vCD portal.

    • This password is used for root (Linux) or Administrator (Windows).

    Procedure

    1

    Step 1: Log in to vCD portal > Data Centers > Virtual Machines > Guest OS Customization > EDIT.

    2

    Step 2: Verify guest customization is enabled and Specify password > SAVE.

    3

    Step 3: Power off and Power on, Force Recustomization.

    View VM

    • You can view virtual machines that are standalone or part of a vApp.

    • You can view virtual machines in a grid view or a card view.

    1

    Step 1: On the Virtual Data Center

    Install VMware Tools in a Virtual Machine

    VMware Tools improves the management and performance of the virtual machine by replacing generic operating system drivers with VMware drivers tuned for virtual hardware such as storage, network, and display. You install VMware Tools into the guest operating system. Although the guest operating system can run without VMware Tools, you lose important features and convenience.

    1

    Step 1: On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore, and from the left panel, select Virtual Machines.

    2

    5. HI GIO KMS Service

    HI GIO KMS is powered by the HashiCorp Vault solution, which is fully managed by HI GIO teams. Thus, the customer can focus on key management itself.

    HI GIO KMS has two kinds of deployment models.

    • Internet mode

    • Private mode (Only can access from customer’s HI GIO VPC system)

    API token login

    In this manual, you will find detailed information on preparing information, creating a Token on the vCD portal, and creating a Bearer token.

    1

    * Login IAM portal -> vCD portal: collect the information

    • {{vcd_url}}

    Start and Stop Order of Virtual Machines in a vApp

    • You can configure virtual machines' start and stop orders within your vApp. Configure the start and stop order if you have applications installed in the virtual machines that must start and stop in a particular order.

    • These settings are helpful if you need to start and stop your virtual machines in a particular order.

    1

    4. HI GIO API

    This guide is designed to help developers and technical users integrate and interact with the HI GIO Cloud services through our powerful API.

    This manual provides detailed information on authenticating, making API calls, and handling responses effectively. It also covers best practices, code examples, and troubleshooting tips to ensure a smooth integration process.

    Please refer to the VM usage guide in the list below.

    2. Working with vAPP

    vApp consists of one or more virtual machines communicating over a network and using resources and services in a deployed environment. vApp can contain multiple virtual machines.

    Please refer to the vAPP usage guide in the list below.

    Overview

    Create a vApp
    Start and Stop Order of Virtual Machines in a vApp
  • API reconfigures VM's Networks

  • API token login

  • API reconfigures VM's Memory

  • API reconfigures VM's CPU

  • API power on/off VM

  • Overview

    API creates VM from Template
    API reconfigures VM's Disk
    dashboard screen, click the card of the virtual data center you want to explore, and from the left panel, select
    Virtual Machines
    .
    2

    Step 2: You can select grid view or card view by selecting:

    • To view the virtual machines in a grid view, click

    • To view the virtual machines in a card view, click

    The list of virtual machines is displayed in a grid view or as a list of card views.

    3

    Step 2.1: From the grid view, click the three vertical dots on the left of a virtual machine to display the actions you can take for the selected virtual machine.

    4

    Step 2.2: To access the console for the guest operating system of the virtual machine, click on VM Console.

    5

    Step 2.3: To view and edit the details for a virtual machine, click the VM’s name.

    6

    Step 2.4: From the grid view, click the three vertical dots on the left of a virtual machine to display the actions you can take for the selected virtual machine.

    7

    Step 2.5: To access the console for the guest operating system of the virtual machine, click on VM Console.

    8

    Step 2.6: To view and edit the details for a virtual machine, click the VM’s name.

    View VM in Card view:

    9

    Step 3.1 : From the card view, click the Action to display your actions for the selected virtual machine.

    10

    Step 3.2: To access the console for the guest operating system of the virtual machine, click on VM Console.

    11

    Step 3.3: To view and edit the details for a virtual machine, click Details.

    Overview

    Procedure

    Step 2: Click Card View

    3

    Step 3: On the card of the virtual machine that you want to start, click ACTIONS > Install VMware Tools.

    Click Install in a Pop-up prompt.

    4

    Step 4: Log in to the operating system and follow the wizard to install the tools with OS types: https://kb.vmware.com/s/article/1014294.

    Overview

    TIP: All VM templates provided by HI GIO have VMware tools updated to be the best compatible.

    Procedure

    Reference:

    Tutorials | Vault | HashiCorp Developer

    Overview

    HashiCorp Vault is an identity-based secrets and encryption management system. A secret is anything you want to control access to tightly, such as API encryption keys, passwords, and certificates. Vault provides encryption services that are gated by authentication and authorization methods. Access to secrets and other sensitive data can be securely stored and managed, tightly controlled (restricted), and auditable using Vault's UI, CLI, or HTTP API.

    {{tenant_name}}

    Ex: https://iaas-hcmc02.higiocloud.vn/tenant/”tenant_name”/vdcs/dashboard

    2

    Step 2: Create Token on vCD portal

    • Login IAM portal -> vCD portal -> User preferences

    • API tokens -> New

    Copy token ({{api-token-generated}})

    3

    Step 3: Creating a Bearer token

    • POST https://{{vcd_url}}/oauth/tenant/{{tenant_name}}/token

    • Authorization: No Auth

    • Headers:

    - 'Accept: application/json'

    - 'Content-Type: application/x-www-form-urlencoded'

    • Body:

    raw: 'grant_type=refresh_token&refresh_token={{api-token-generated}}'

    • SEND request.

    Response body: "access_token" (Bearer token)

    Overview

    Procedure

    Step 1: Prepare Information

    Step 1:
    On the
    Virtual Data Cnter
    dashboard screen, click the card of the virtual data center you want to explore, and from the left panel, select
    vApps
    .
    2

    Step 2: In the vApps page, select card view.

    3

    Step 3: On the vApp card, click Details.

    4

    Step 4: Click the Start and Stop Order tab and click Edit.

    5

    Step 5: Edit each virtual machine's start and stop order properties and click OK.

    • Start Order: Enter the order (0, 1, 2, 3 ...) where you want the virtual machine to start.

    • Start Action: Select Power On (default) or None.

    • Start Wait: The start wait time is the time (in seconds) you want to wait before VMware Cloud Director starts the next machine in the sequence.

    • Stop Action: Select Power Off; the VM powers off without performing shutdown. Otherwise, select Shut Down (required VMware tool installed), which ensures stability upon shutting down.

    • Stop Wait: The stop wait time is the time (in seconds) you want to wait before VMware Cloud Director shuts down the next virtual machine in the sequence.

    So we can power off the vApp. It will automatically start the VMs based on the startup order (The reverse order is used to power them off).

    Overview

    Attention: Verify that the vApp is powered off.

    Procedure

    Create a New Virtual Machine from ISO

    Overview

    As well as deploying pre-built VMs from a template, you can build your VMs from scratch, as you would do on a physical machine, using an ISO image instead of a physical CD or DVD.

    Procedure

    1

    Step 1: On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore, and from the left panel, select Virtual Machines.

    2

    Step 2: Select Card View\Grid View to view the virtual machines

    3

    Step 3: Click New VM.

    4

    Step 4: In the New VM dialog box, enter a Name, Computer Name, and Description for your VM.

    5

    Step 5: Type: Select New

    6

    Step 6: Select the Power on check-box. If you want the VM to power on right after its creation

    7

    Step 7: Operating System: Select an OS family, Operating System, and Boot image.

    8

    Step 8: Compute: Enter Virtual CPUs, Core per socket, and Memory.

    9

    Step 9: Storage: Select Storage Policy & Size of disk.

    • Add more disk for VM if needed.

    10

    Step 10: Networking:

    • Network: Select the Organization VDC Networks that you want to use for VM

    • Network adapter Type: Select VMXNET3

    11

    Step 11: Click OK to save the virtual machine's settings and start the creation process. Once the virtual machine is created, it is a VM without OS. We must Insert Media (ISO) into the VM and install OS.

    12

    Step 12: Click the three vertical dots > Media > Insert Media

    13

    Step 13: Select the ISO image you want to mount from a catalog in the Insert CD dialog box, then click Insert.

    14

    Step 14: Click the three vertical dots >> Power >> Power On

    15

    Step 15: Open VM Console to install guest OS for VM

    VM has boot from ISO file and start the installation.

    Performing Power Operations on Virtual Machines

    Overview

    You can perform power operations on virtual machines, such as powering on or off a virtual machine, suspending or resetting a virtual machine, or shutting down the guest operating system of a virtual machine.

    Procedure

    Step 1: On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore, and from the left panel, select Virtual Machines.

    Step 2: Click card view

    Step 3: On the card of the virtual machine that you want to start, click ACTIONS > Power > Power On.

    A powered-on virtual machine displays a Powered-on status in green.

    • The Shut Down Guest OS for VM action shuts down the guest operating system and powers off the virtual machine. VMware Tools must be installed and running on the VM.

    • Powering off a virtual machine is the equivalent of powering off a physical machine.

    • Resetting a virtual machine clears the state (memory, cache, and so on), but the virtual machine continues to run. Resetting a virtual machine is the equivalent of pushing the reset button of a physical machine. It initiates a hard reset of the operating system without changing the virtual machine's power state.

    • Suspending a virtual machine preserves its current state by writing the memory (RAM) to disk.

    • The suspend and resume feature is useful when you want to save your virtual machine's current state (RAM) and continue work later from the same state.

    Step 1: On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore, and from the left panel, select Virtual Machines.

    If a virtual machine is in a suspended state and you no longer need to resume the use of the machine, you can discard the suspended state. Discarding the suspended state removes the saved memory and returns the machine to a powered-off state.

    Step 1: On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore, and from the left panel, select Virtual Machines.

    Step 2: Click card view

    Step 3: In the card of the virtual machine that you want to start, click ACTIONS > Power > Discard the suspended state.

    API reconfigures VM's Memory

    Overview

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

    Procedure

    1

    Step 1: Prepare Information

    * Login IAM portal -> vCD portal: collect the information

    • {{vcd_url}}

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

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

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

    • Authorization: {{Bearer Token}}

    • Headers:

    3

    Step 3: Reconfig VM’s memory

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

    • Authorization: {{Bearer Token }}

    4
    • Get VM’s memory information

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

    • Check on vCD portal

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

    Safely remove Disk in Windows OS

    Overview

    • Bring disk to Offline in Windows OS.

    • Confirm that the disk’s status = is offline in Windows OS and provide disk information to the support team (they will support the infrastructure side).

    • Validate again on Windows OS.

    Procedure

    1

    Step 1: Log on to Windows and open Disk Management.

    Right-click on the Windows menu > Run.

    2

    Step 2: On Disk Management:

    Right-click the disk name > Offline

    3

    Step 3: Validate disk status:

    Disk status = Offline, and it will disappear on the volume table.

    Please provide disk information:

    • Disk size:

    API power on/off VM

    Overview

    In this manual, you will find detailed information on how to prepare information, get VM status, and change status VM.

    Procedure

    1

    Step 1: Prepare information

    Login IAM portal -> vCD portal: collect the information

    • {{vcd_url}}

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

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

    2

    Step 2: Get VM status

    • GET https://{{vcd_url}}/api/vApp/{{vm_uuid}}

    • Authorization: {{Bearer Token }}

    3

    Step 3: Change the status VM

    • POST https://{{vcd_url}}/api/vApp/{{vm_uuid}}/power/action/{{powerOn/powerOff}}

    • Authorization: {{Bearer Token}}

    4
    • Get VM’s status information

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

    • Check on vCD portal

    Login IAM -> vCD portal-> select VM

    Create VM's Template

    • HI GIO provides virtual machine (VM) template sizes and operating systems.

    • The HI GIO template is a good place to start when you first deploy VMs into the HI GIO. However, you may want to create a template containing specific applications that you can use to deploy VMs quickly.

    • Assume your VM has already installed OS and VMware tools and is preconfigured.

    API reconfigures VM's Networks

    In this manual, you will find detailed information on how to prepare information, get VM’s network information, and reconfigure VM’s networks.

    1

    Login IAM portal -> vCD portal: collect the information

    {{vcd_url}}

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

    6. Encryption Management Service

    VMware Cloud Director Encryption Management is a solution that grants in-transit encryption for disk I/O and vMotion for a customer's Virtual Machine using vTPM and VM Encryption technology.

    Please refer to the Encryption Management service usage guide below.

    1

    Step 1: Customer login to Portal vCD

    2

    API reconfigures VM's Disk

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

    1

    Log in to IAM portal -> vCD portal: collect the information

    {{vcd_url}}

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

    View VM in grid view:

    IP mode: Select DHCP\Static – IP Pool or Static – Manual We need active DHCP (via Network\Gateway or relay DHCP server) or create 01 IP Pool in Organization VCD Networks If we use DHCP or Static-IP Pool mode.

    Attention:

    • Name is a name to identify the VM, Computer Name is the host name of the VM.

    • The Computer Name is copied from the Name field but can contain only alphanumeric characters and hyphens, so you may need to edit it if your VM Name contains spaces or special characters.

    Attention: We recommend using the VMXNET3 network adapter where possible. The VMXNET virtual network adapter has no physical counterpart and is optimized for VM performance. Because operating system vendors don't provide built-in drivers for this card, you must install VMware Tools to have a driver available for the VMXNET network adapter.

    Step 1: On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore, and from the left panel, select Virtual Machines.

    Step 2: Click card view

    Step 3: In the card of the virtual machine that you want to power off, click ACTIONS > Power > Power Off\Shut Down Guest OS\Reset

    Step 2: Click card view

    Step 3: In the card of the virtual machine that you want to start, click ACTIONS > Power > Suspend.

    The virtual machine is suspended, but its state is preserved.

    Attention: From the VM Suspended state, just power on if you need the VM to run with the current memory.

    The state is discarded, and the virtual machine is powered off.
    - ‘Accept’: */*;version=37.2

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

    • SEND request.

    Copy Response Body

    Headers:

    -'Accept: /;version=37.2

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

    Body: {{select raw -> copy and paste response body from Get VM’s memory information }}

    Ex:

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

    Find line “<rasd:VirtualQuantity>2048</rasd:VirtualQuantity>” and edit the value, it’s the VM’s memory (MB).Please note that Value must be a multiple of 4 MB

    • SEND request.

    Step 2: Get VM’s memory information

    Step 4: Verify

    
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <ns4:Item xmlns: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" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf"
    ………………………………………………………….
    ……………………………………………………………
        <rasd:ResourceType>4</rasd:ResourceType>
        <rasdraidtualQuantity>2048</rasd:VirtualQuantity>
        <rasd:VirtualQuantityUnits xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
    type="application/vnd.vmware.vcloud.rasdItem+json"/>
    </ns4:Item>

    Disk ID (follow as below):

    *** Check Disk ID via Disk Management:

    Right-click the disk name > Properties

    • Once the support team has completed the infrastructure side.

    • Please log on to Windows OS and confirm that the disk has been removed. No disk offline status is shown on Disk Management.

    Confirm that the disk’s status = offline in Windows OS and provide disk information to the support team (they will support on the infrastructure side).

    Headers:

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

    • SEND request.

    Check the VM status on line 3 of Response Body. If Link rel="power:powerOff", VM is Power ON else VM is Power Off.

    Headers:

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

    • SEND request.

    Step 4: Verify

    Prerequisites: VMware Tools must be installed & VM is powered off.

    Step 1: On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore, and from the left panel, select Virtual Machines.

    Step 2: Click card view

    Step 3: On the card of the virtual machine that you want to start, click DETAILS.

    Step 4: To enable\disable Hot-add for CPU\Memory, Click Compute > Edit (CPU section or Memory section)

    Step 5: Enable toggle and click Save

    1. VMware has set a maximum value for hot-add memory. By default, this value is 16 times the memory assigned to the virtual machine. (https://kb.vmware.com/s/article/2020846)

    2. If you are running WM with Linux OS having less than 3GB RAM, you can change the memory to only 3GB RAM in total if you need more. You must power off the VM, increase memory to, for example, 4 GB RAM, and power it on again. (https://kb.vmware.com/s/article/2008405).

    Step 6: To customize Guest OS, Click Guest OS Customization > EDIT

    TIP: Guest OS Customization will help you prepare the logon, change the password, \ Join the Domain (just for Windows) in the first boot after deploying.

    Step 7: On Edit Guest Properties

    Depends on the guest OS – Linux or Windows. The view of this page has some differences:

    • The Enable guest customization check box is selected.

    • Change the SID option (for Windows OS)

    • Select Allow local administrator password

    • Select Require administrator to change the password on the first login to require all administrators to change the password upon initial login (Administrators must know the old password)

    • Select Auto Generate password or Specify password (if you want to define it yourself).

    • Join Domain (this session is for Windows OS)

    Step 8: Click Save

    Step 1: On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore, and from the left panel, select Virtual Machines.

    Step 2: Click card view

    Step 3: On the card of the virtual machine that you want to start, click ACTIONS.

    Step 4: Click Create Template

    On the Add to Catalog page

    Step 5: Select the catalog that will store this template

    Step 6: Enter the Name of the template

    Step 7: Select Customize VM setting and click OK to process

    Overview

    Procedure

    Attention: VM’s state must be powered off.

    Attention: vSphere restriction attention: vSphere restriction

    {{network_name}}
    : Select Networking -> Networks -> Copy the Network name

    {{Bearer Token}}: Please follow the “API token login” document

    2

    Step 2: Get VM’s network information

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

    • Authorization: {{Bearer Token}}

    • Headers:

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

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

    • SEND request.

    Copy Response Body

    3

    Step 3: Reconfig VM’s networks

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

    • Authorization: {{Bearer Token }}

    • Headers:

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

    - ‘Content-type’: application/vnd.vmware.vcloud.rasdItemsList+xml; charset=ISO-8859-1

    Body: {{select raw -> copy and paste response body from Get VM’s networks information }}

    Ex:

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

    Find word :

    ns10:ipAddressingMode and edit the value in “ ” (network mode: “DHCP”, “Pool”, “Manual”)

    + DHCP: Please setup DHCP pool on your network -> The P Management

    + Pool: Please setup Static IP pools on yoursetork -> IP Management

    ns10:ipAddress and edit the value in “” (“VM ipv4 address”) – no need if using DHCP or Pool

    ns10:primaryNetworkConnection and edit the value in “” (paste network name {{netwok_name}} )

    • SEND request.

    4

    Step 4: Verify

    • Get VM’s network information.

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

    • Check on the vCD portal

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

    Overview

    Procedure

    Step 1: Prepare Information

    Step 2: Verify Encryption Policy is available

    3

    Step 3: Choose the VM you want to encrypt. Note: this VM must be powered off before encryption

    4

    Step 4: Change Default Storage Policy

    • VM -> General -> EDIT Wait for this VM encryption process to complete (It will take time depending on the size of the VM's hard drive)

    • Optional: Enable Security Devices – Trusted Platform Module (vTPM)

      • Choose Security Devices -> Edit -> Enable -> SAVE

      NOTED: VM must meet the following requirements to add Trusted Platform Module:

      • VM is powered off

      • OS is compatible with Trusted Platform Module

      • VM doesn’t have any snapshots

      • Hardware version 14 or late

    5

    Step 5: Powered on the encrypted VM:

    • VM configuration files, including swap files, core dump files, and more, are encrypted.

    • All Hard disks are encrypted.

    • vTPM is present (Optional: if it was enabled in step 5)

    Overview

    Procedure

    {{Bearer Token}}:
    Please follow the
    “API token login”
    documen
    2

    Step 2: Getting VM’s Disk information

    • GET https://{{vcd_url}}APIi/vApp/{{vm-uuid}}/virtualHardwareSection/disks

    • Authorization: {{Bearer Token}}

    • Headers:

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

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

    3

    Step 3: Reconfig VM’s disk

    • PUT https//{{vcd_url}}APIi/vApp/{{vm-uuid}}/virtualHardwareSection/disks

    • Authorization: {{Bearer Token }}

    • Headers:

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

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

    • Body: {{select raw -> copy and paste response body from Get VM’s disk information }}

    Ex:

    • Find word ns10:capacity and edit the value in ,”, it’s the VM’s disk (MB)

    • SEND request.

    4

    Step 4: Verify

    • Get VM’s disk information

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

    • Check on vCD portal

    Login IAM -> vCD portal-> select VM-> Hard disk

    Overview

    Procedure

    Step 1: Prepare Information

    API creates VM from Template

    Overview

    • In this manual, you will find detailed information on how to prepare & create a VM from the template.

    • This API creates a VM with the default name (VM name of template), default network "VM Network," and default compute and storage.

    Procedure

    1

    Step 1: Preparation

    Log in to IAM portal -> vCD portal: collect the information

    {{vcd_url}}

    {{vdc_uuid}}: Login vCD portal -> select VDC-> take a look and note vdc_uuid on the URL

    {{network_uuid}}: On the vCD portal -> Networking -> Networks -> New

    Select the “VM Network” -> take a look and note the network uuid on the url

    {{vappTemplate_uuid}}: On the vCD portal -> Content Hub -> Catalogs ->HIGIO Shared Catalogs

    -> vApp Templates -> select the template that you want to create VM -> take a look the vappTemplate_uuid on the url

    {{Bearer Token}}: Please follow “” document

    2

    Step 2: Create VM from template

    Postman:

    POST https://{{vcd_url}}/api/vdc

    /{{vdc_uuid}}/action/instantiateVAppTemplate

    Authorization: {{Bearer Token }}

    Headers:

    - 'Accept: */*;version=37.2

    - ‘Content-type’: application/vnd.vmware.vcloud.instantiateVAppTemplateParams+xml; charset=ISO-8859-1

    3

    On the vCD -> Data Center -> select your Virtual Data Center ->vApps -> check your vApp and VM.

    Create a Virtual Machine from a Template

    Overview

    To simplify creating a virtual machine (VM), you can use a pre-built VM template from a catalog.

    Procedure

    1

    Step 1: On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore, and from the left panel, select Virtual Machines.

    2

    Step 2: Select Card View\Grid View to view the virtual machines

    3

    Step 3: Click New VM.

    4

    Step 4: In the New VM dialog box, enter a Name, Computer Name, and Description for your VM.

    5

    Step 5: From the Type radio buttons, select From Template.

    6

    Step 6: Select the Power on check-box. If you want the VM to power on right after its creation,

    7

    Step 7: In the Templates section, select the template you want to use for your VM, depending on your requirement (OS type and VM size).

    8

    Step 8: Select Storage Policy

    9

    Step 9: Select Network, Network adapter Type, IP mode for VM

    Attention: If using the Linux template, you can change the default password or SSH public key (optional)

    10

    Step 10: Click OK to save the virtual machine's settings and start the creation process.

    Attention:

    • After the creation is completed using a Windows template, you will see this screen in the first boot.

    • Remember:

    Editing the properties of a new VM

    Overview

    You can edit the properties of a virtual machine, including the virtual machine name and description, hardware and network settings, guest OS settings, and so on.

    Procedure

    You can review and change a virtual machine's name, description, and other general properties.

    Step 1: On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore and from the left panel, select Virtual Machines.

    Step 2: Click card view

    Step 3: In the virtual machine card you want to edit, click Details.

    Step 4: Under General expands by default > Edit to list of properties

    Step 5: Click Save once you complete making your changes.

    Step 1: On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore, and from the left panel, select Virtual Machines.

    Step 2: Click card view

    Step 3: In the card of the virtual machine that you want to edit, click Details.

    Step 4: To view the available removable media, such as attached CD/DVD and floppy drives, under Hardware, select the Removable Media tab.

    API reconfigures VM's CPU

    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

    1

    Step 1: Prepare Information

    Login IAM portal -> vCD portal: collect the information

    • {{vcd_url}}

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

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

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

    • Authorization: {{Bearer Token }}

    • Headers:

    3

    Step 3: Reconfigure VM’s CPU

    Postman:

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

    • Authorization: {{Bearer Token }}

    4
    • 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

    Validate again in Windows OS:

    The other way to create the template by upload your template to HI GIO

    The maximum import size is 50 GB. Large image files or templates might take a long time to upload. For assistance with files larger than 50 GB, request the support team.

    Boot firmware is EFI

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <RasdItemsList xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1"
    …………………………………………….
    ………………………………………
            <rasd:HostResource xmlns:ns10="http://www.vmware.com/vcloud/v1.5" ns10:storageProfileHref="https://iaas-hcmc02.higiocloud.vn/api/vdcStorageProfile/a7c6c2f7-3c2211e6e7b0" ns10:busType="6" ns10:busSubType="VirtualSCSI" ns10:capacity="15240" ns10:iops="4000" ns10:storageProfileOverrideVmDefault="false"></rasd:HostResource>
            <rasd:InstanceID>2000</rasd:InstanceID>
            <rasd:Limit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
            <rasd:MappingBehavior xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
            <rasd:OtherResourceType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
            <rasd:Parent>2</rasd:Parent>
        </Item>
    </RasdItemsList>
    

    Body: {{select raw, copy, paste and edit the code below}}

    SEND request.

    Note that the network name must be “VM Network”

    Step 3: Verify

    Api token login
    <?xml version="1.0" encoding="UTF-8"?>
    
    <vcloud:InstantiateVAppTemplateParams
    
        xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1"
    
        xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
    
        deploy="false"
    
        name="your vapp name"
    
        powerOn="false">
    
        <vcloud:Description>VApp Description</vcloud:Description>
    
        <vcloud:InstantiationParams>
    
            <vcloud:NetworkConfigSection>
    
                <ovf:Info>NetInfo</ovf:Info>
    
                <vcloud:NetworkConfig networkName="VM Network">
    
                    <vcloud:Configuration>
    
                        <vcloud:ParentNetwork
    
                            href="https:// {{vcd_url}}/api/network/{{network_uuid}}"
    
                            name="VM Network"
    
                            type="application/vnd.vmware.vcloud.network+xml"/>
    
                        <vcloud:FenceMode>bridged</vcloud:FenceMode>
    
                    </vcloud:Configuration>
    
                </vcloud:NetworkConfig>
    
            </vcloud:NetworkConfigSection>
    
        </vcloud:InstantiationParams>
    
        <vcloud:Source
    
            href="https://{{vcd_url}}/api/vAppTemplate/{{vappTemplate_uuid}}"
    
            name="HIGIO"
    
            type="application/vnd.vmware.vcloud.vAppTemplate+xml"/>
    
    </vcloud:InstantiateVAppTemplateParams>
    DO NOT TOUCH
    on
    anything. Let it be completed by itself.

    Attention:

    • Just wait for it to restart (about 3 minutes) to apply your specific configuration (IP, hostname,…).

    • When you see the Login screen, you can get control from now.

    Attention:

    • Name is a name to identify the VM, Computer Name is the host name of the VM.

    • The Computer Name is copied from the Name field but can contain only alphanumeric characters and hyphens, so you may need to edit it if your VM Name contains spaces or special characters.

    Step 5: To edit the hard disk settings or add hard disks, select Hard Disks and click Edit. Click Save once done

    Step 6: To edit the computing settings, select Compute > Edit the relevant section.

    1. VMware has set a maximum value for hot-add memory. By default, this value is 16 times the memory assigned to the virtual machine. (https://kb.vmware.com/s/article/2020846)

    2. If you are running WM with Linux OS having less than 3GB RAM, you can change the memory to only 3GB RAM in total if you need more. You must power off the VM, increase memory to, for example, 4 GB RAM, and power it on again. (https://kb.vmware.com/s/article/2008405).

    Step 7: To edit the NICs settings or add NICs, click NICs > Edit. Save once Done.

    Attention: You can increase the size of an existing hard disk if the virtual machine is not a linked clone and has no snapshots.

    Attention: vSphere restriction

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

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

    • SEND request.

    Copy Response Body

    Headers:

    - 'Accept: */*;version=37.2

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

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

    Ex:

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

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

    • SEND request.

    Step 2: Get VM’s CPU information

    Step 4: Verify

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <ns4:Item xmlns: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:ResourceSubType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
        <rasd:ResourceType>3</rasd:ResourceType>
    …………………………………………………………………………..
    ………………………………………………………………………….
        <rasd:VirtualQuantity>8</rasd:VirtualQuantity>
        <rasd:VirtualQuantityUnits xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
        <rasd:Weight>0</rasd:Weight>
        <vmw:CoresPerSocket ovf:required="false">2</vmw:CoresPerSocket>
    type="application/vnd.vmware.vcloud.rasdItem+json"/>
    </ns4:Item>
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <RasdItemsList xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData"
    …………………………………..
    ………………………………….
        <Link rel="edit" href="https://iaas-hcmc02.higiocloud.vn/api/vApp/vm-6cc0d2ef-6823-421a-bed5-8bb0f92a7bca/virtualHardwareSection/networkCards" type="application/vnd.vmware.vcloud.rasdItemsList+json"/>
        <Item>
            <rasd:Address>00:50:56:02:10:2c</rasd:Address>
            <rasd:AddressOnParent>0</rasd:AddressOnParent>
            <rasd:AllocationUnits xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
            <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
            <rasd:AutomaticDeallocation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
            <rasd:ConfigurationName xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
            <rasd:Connection xmlns:ns10="http://www.vmware.com/vcloud/v1.5" ns10:ipAddressingMode="Manual" ns10:ipAddress="10.10.11.20" ns10:primaryNetworkConnection="true">10.10.11.0/24</rasd:Connection>
            <rasd:ConsumerVisibility xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
            …………………………………………………………………….
            <rasd:ResourceSubType>VMXNET3</rasd:ResourceSubType>
            <rasd:ResourceType>10</rasd:ResourceType>
            <rasd:VirtualQuantity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
            <rasd:Weight xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
        </Item>
    </RasdItemsList>

    Create a vAPP

    Overview

    • vApp consists of one or more virtual machines communicating over a network and using resources and services in a deployed environment. vApp can contain multiple virtual machines.

    • Instead of creating a vApp based on a vApp template, you can make a vApp using virtual machines from catalogs, new virtual machines, or a combination of both.

    • Building a vApp requires you to provide a name and, optionally, a description of the vApp. You can go back and add the virtual machines to the vApp later.

    Attention: vApp can contain multiple VMs, so Shut down\Stop vApp, it will affect all VMs inside vApp.

    Procedure

    Step 1: On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore, and from the left panel, select vApps.

    Step 2: In the vApps page, click New, then select New vApp.

    Step 3: Enter a Name and a Description (optionally) for the vApp.

    Step 4:

    #Optional: If you want the vApp to power on upon deployment, select the Power on the check box.

    You can add a network to a vApp to make the network available to the virtual machines in the vApp. You can add a virtual data center network to a vApp.

    Step 1: On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore, and from the left panel, select vApps.

    Step 2: On vApps page, select Card View to view vApp in card view.

    Step 3: Click Actions menu of the vApp to which you want to add a network, select Add > Add Network.

    Step 4: On the Add Network page:

    Step 1: On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore, and from the left panel, select Virtual Machines.

    Step 2: Select Card View to view Virtual Machine in Card View on Virtual Machines Windows.

    Step 3: Click Actions menu of the Virtual Machine which you want to Move, select Move

    Step 4: Select Destination vApp, then click Next

    Step 5: Click Add Virtual Machine.

    Step 6: In the New VM dialog box, select:

    • New to create a VM from scratch Create a New Standalone Virtual Machine

    • From Template to create a VM from an existing template Create a Virtual Machine from a Template

    Step 7:

    #Optional: Repeat Step 5 for each additional virtual machine you want to create within the vApp.

    Step 8: To complete the creation of the vApp, click Create.

    Check type: Direct and select the network that you want to add.

    Step 5: Click ADD

    Step 5: On Configure Resource:

    Enter & validate the information: Name, Computer Name, Target VM storage Policy, Network, IP Mode for Virtual Machine, then click Next

    Step 6: Validate and click Done

    Attention: The vApp can power on only if virtual machines exist.

    Attention: You can click Create at this point to create an empty vApp and add VMs to it later.

    3. HI GIO Auto Scale

    This document guides using the Auto Scale function on HI GIO CLOUD.

    • The network has IP addresses on a static IP Pool (used for applications without HI GIO Load Balancing).

    • Load Balancer Pool and Virtual Service (used for applications with HI GIO Load Balancing).

    The vApp template of the VM needs to be scaled.

    Step 1: Log in to HI GIO Portal > Applications > Scale Groups > NEW SCALE GROUP

    Step 2: In the General Settings:

    • Pick an owner of the Scale Group.

    • Pick an Organisation VDC.

    • Enter Group Name.

    • Number of Min VMs.

    • Number of Max VMs.

    Step 3: In the Application Settings:

    • Select the vApp template of the previously prepared application.

    • Pick a Storage Policy.

      Step 4: Select a network for the scale group in the Network Settings section.

    Step 1: Select Scale Group > Rules > ADD RULE.

    Step 2: In the General tab:

    • Name: enter rule name.

    • Number of VMs: The number of VMs will scale.

    Auto Scale Groups

    Overview

    Procedure

    Reference document

    If you want to manage the load balancer on your own or if there is no need for a load balancer, select I have a fully set-up network:
    • Pick a Network.

    • Click CREATE GROUP AND ADD RULES.

    • If your applications use HI GIO Load Balancing, select I have set-up a Load Balancer option.

      • Enter Network CIDR.

      • Pick Edge Gateway.

      • Pick Server Pool

      • Click CREATE GROUP AND ADD RULES.

    Step 5: Set up Firewall rules depending on the application’s requirements.

    Behavior: Select whether the scale group must expand or shrink when the rule takes effect.

    • Grow: scale out.

    • Shink: scale in.

  • Cool down: Enter a cooldown period in minutes after each auto scale in the group.

  • Step 3: In the Conditions tab, Add a condition that triggers the rule.

    • Avg. Utilization:

      • CPU usage.

      • memory usage.

    • Condition:

      • greater or equal to.

      • lower or equal to.

    • Amount: in percent.

    • Duration: The period when the condition must be valid to trigger the rule.

    Make sure the network has available Static IP Pools.

    Attention: The conditions cannot trigger another scaling until the cooldown period expires. The cooldown period resets when any of the rules of the scale group takes effect.

    Attenstion: An AND operator groups conditions in a rule.

    After a condition is met, it might be executed with a delay of up to 5 minutes.