Page tree

Contents

Increasing disk size for OVA On-Prem Host has the following steps. Steps mentioned in increasing disk size using YML/YAML content is common for vCenter as well as ovftool.

Increase disk size to use YML/YAML content

Use the following YML/YAML content to increase the disk size:

#cloud-config
bootcmd:
   - growpart /dev/sda 1
   - pvresize /dev/sda1
   - lvextend -l +80%FREE /dev/bloxone-infoblox-vg/overlay
   - resize2fs /dev/mapper/bloxone--infoblox--vg-overlay

Steps to increase disk space when using vCenter

Complete the following steps to increase disk space when using vCenter:

  1. Follow the steps Data Connector ESXi OVA Deployment Using vCenter till point 12.
  2. Don't power on the VM.
  3. Create a YML/YAML file (userdata.yml) with the content as specified in the previous section. 
  4. Encode the above-created file (userdata.yml), copy the output:
    For Linux systems:
    $ cat userdata.yml | base64 -w0
    For Mac systems:
    $ cat userdata.yml | base64
  5. Right-click the VM and go to Edit Settings -> VM Options -> Advanced -> Edit Configuration.
  6. At the bottom of the configuration editor, enter name as guestinfo.cloudinit.userdata and value as output of step 4.
  7. Click Add and OK on the configuration editor.
  8. Increase the disk size of the VMs by selecting the deployed VM -> Edit Settings -> Hardware.
  9. Power on the VM.
  10. Continue the remaining steps from point 13 on  Data Connector ESXi OVA Deployment Using vCenter.

Steps to increase the disk space when using ovftool

Complete the following steps to increase the disk space when using ovftool:

  1. Follow the steps Data Connector ESXi OVA Deployment Using ovftool till point 3
  2. Append the content from the YML/YAML file into the downloaded userdata.yml file
  3. After updating the YML and JSON templates or creating new files, open any Linux terminal and use the VMware OVF tool to execute the following commands to encode the cloud configuration for user data in base64 format:
    For Linux systems:
    userdata=$(cat userdata_file | base64 -w0)
    metadata=$(cat metadata_file)

    For Mac systems:
    userdata=$(cat userdata_file | base64)
    metadata=$(cat metadata_file)

    Where userdata_file and metadata_file are the actual file names.

  4. Execute the following commands to deploy the Data Connector (without --poweron flag):
    ovftool --acceptAllEulas --skipManifestCheck --allowAllExtraConfig --sourceType=OVA 
    --datastore="<datastore name>" --name="<name for the Data Connector>" 
    --net:"lan"="<standard switch ID>" --extraConfig:guestinfo.cloudinit.userdata="${userdata}" 
    --extraConfig:guestinfo.cloudinit.metadata="${metadata}" 
    ngp_onprem_vx.x.xx.ova vi://<username>:<password>@<ESXi server IP> 

    Where datastore name = The name of your datastore on which you want to deploy the Data Connector.
    name for the Data Connector = The name of the Data Connector.
    standard switch ID = The name of the vSphere standard switch that provides connectivity between the Data Connector and external networks.
    ngp_onprem_vx.x.xx.ova = The name of the Data Connector OVA file; x.x.xx is the version number of this file.
    username password = This is the username and password for logging in to the ESXi server.
    ESXi server IP = The IP address of the ESXi server on which you have configured the VM for deploying the Data Connector.
  5. Increase the disk size of the VM's, by selecting the deployed VM  -> Edit Settings -> Hardware.
  6. Power On the VM which has been deployed as part of the above steps.
  7. Continue the remaining steps from point 6 in Data Connector ESXi OVA Deployment Using ovftool.










  • No labels

This page has no comments.