VMware

Cloud images are operating system templates. The default user of cloud image is "ubuntu". We need to set password for default user, or else the password is random.

You can install Ubuntu 20.10 cloud image using either of the following methods:

  • Deploy the cloud image with vCenter Server
    1. Choose the ESXi host or DataCenter.
    2. Select ACTIONS --> Deploy OVF Template…
    3. Select an OVF template, you can input the URL of cloud image or upload the local.ova file. Click NEXT.
    4. Input the Virtual machine name and select a location for the virtual machine. Click NEXT.
    5. Choose ESXi host and click NEXT.
    6. Review the details and click NEXT.
    7. Select storage and virtual disk format. The disk format "Thin Provision" is recommend. Click NEXT.
    8. Select networks and click NEXT.
    9. In the "Customize template" stage, Default User's password is required. The default user is "ubuntu" for cloud image.
      You need to input the password or else the random password is created. The other fields are optional. Click NEXT.
    10. Review all the details and click FINISH.
  • Note: Deploying .ova file takes some time to complete. You can check the progress in the "Recent Tasks" window.

  • Deploy cloud image with host WEB UI, if you do not have a vCenter Server.
    1. Prepare ISO within config data: You need to prepare an ISO with the config data about customizing the VM instance. The component "Cloud-init" in ubuntu cloud image is the tool that applies config data to your instance automatically.
      1. Construct file user-data
        cat >user-data << EOF
        #cloud-config
        password: your-password
        chpasswd: { expire: false }
        ssh_pwauth: True
        EOF


        Note: you can add more configuration details, if required.

      2. Construct file meta-data
        echo "instance-id: $(uuidgen || echo i-abcdefg)" > meta-data

      3. Build iso with files user-data and metadata using the following commands:
        cloud-localds seed.iso user-data metadata (Note: cloud-image-utils provides cloud-localds)
        or
        genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data

        The contents of the iso with label cidata are:
        /user-data
        /meta-data
    2. Deploy .ova file without PowerOn
      1. Create VM, choose "Deploy an virtual machine from and OVF and OVA".
      2. Enter a name for virtual machine, and select .ova file.
      3. Select storage.
      4. In stage "Deployment options", select network, format of disk provisioning and uncheck "Power on automatically".
      5. Review the detail and click Finish.
    3. Mount prepared ISO to CD/DVD1, connect CD/DVD1 to VM and Power on VM.
      1. Select the deployed VM and click Edit settings.
      2. In Edit VM setting window, choose "Datastore ISO file" for CD/DVD Drive 1 and then select the prepared ISO file.
        You may need to upload the prepared ISO to datastore of ESXi host. Select checkbox "Connect at poweron".
      3. Power on the VM.
    4. Login to VM as user "ubuntu" and using the password that you set while constructing the file user-data.

 



Copyright (c) 2006-2020 VMware, Inc. All rights reserved.