vSphere Integrated Containers

Upgrade VMware vSphere Integrated Containers VIC Appliance

A look at the pre-update tasks and the process to Upgrade vSphere Integrated Containers VIC Appliance to the latest version

For those who are running the vSphere Integrated Containers appliance in your vSphere environment getting your feet wet with VIC, we saw the release of VIC 1.2 in conjunction with VMWorld 2017 and now just a couple of days ago we saw 1.2.1 released with bug fixes etc. Since I had been running the 1.1.1 VIC appliance in my lab environment, I began stepping through the process to get the VIC appliance updated as part of the overall update process for VIC. Let’s take a look at how to upgrade vSphere Integrated Containers Appliance.

Upgrade VMware vSphere Integrated Containers VIC Appliance

The new 1.2.1 releaseย adds fixes for issues found in 1.2.0, and a newย vic-machine createย option,ย –container-name-convention.ย  To read a full list of issues fixed in this release, check out the official GitHub page here:ย ย https://github.com/vmware/vic/releases/tag/v1.2.1

The first thing we need to do is download the new VIC OVA from VMware.ย  This is a free download, however, you will need an account to login.ย  The OVA is quite hefty even compared to the 1.1.1 OVA.ย  The download is pushing 5 gigs.

Download-the-vSphere-Integrated-Containers-OVA-from-VMware
Download the vSphere Integrated Containers OVA from VMware

vSphere Integrated Containers Tasks to Perform Before Upgrading

There are some pre-upgrade tasks that are documented to be performed before upgrading.ย  One of those tasks is making sure your previous version of the appliance hasย root enabled.ย  This is easily done in theย vApp Options of the previous VIC appliance running in your environment.

Make-sre-root-is-enabled-on-VIC-appliance
Make sre root is enabled on VIC appliance

Another item that is mentioned in the pre-upgrade tasks is making sure you have NTP setup on both your vCenter Server as well as the ESXi hosts in your environment.ย  This is best practice outside of setting up vSphere Integrated Containers so hopefully all will already have this step completed.

Make-sure-vCenter-Server-NTP-is-configured
Make sure vCenter Server NTP is configured
Setup-NTP-on-ESXi
Setup NTP on ESXi

Deploy the new vSphere Integrated Containers OVA Appliance

As mentioned earlier in the post, we download the OVA appliance file and deploy the OVA.ย  We aren’t going to show the entire process here as it is a pretty standard OVA deployment scenario.ย  One thing to note on theย customize template be sure and not miss the checkbox toย permit root login.

Deploy-new-VIC-1.2.1-appliance-allow-root-login
Deploy new VIC 1.2.1 appliance allow root login

After completing the OVA deployment wizard, we will see the task kick off for the deploy of the new VIC 1.2.1 appliance.

vCenter-task-to-deploy-VIC-OVA
vCenter task to deploy VIC OVA

Note – Don’t boot the new appliance at this time as we have some work to do with the hard disks before powering it up.

Copy Over Second Hard Drive from Previous VIC appliance to New Appliance

The process described below is taken straight from the Upgrade the vSphere Integrated Appliance documentation.ย  A high level quick run through of the steps at this point:

  • Shutdown the previous VIC Appliance
  • Remove the 2nd hard drive from the newly deployed VIC 1.2.1 appliance (deleting it from datastore)
  • Remove the 2nd hard drive from the previous VIC appliance (do not delete the drive from the datastore)
  • Copy the 2nd hard drive from the datastore folder of the previous appliance to the folder of the new appliance VM
  • Attach the hard drive to the VM in vSphere

Following the steps outlined that are contained in the Upgrade guide, we shutdown the previous VIC appliance which in our case is 1.1.1.

Shutdown-the-previous-vSphere-Integrated-Containers-appliance
Shutdown the previous vSphere Integrated Containers appliance

Now, we remove the 2nd hard drive from the new VIC appliance andย Delete files from datastore.

Remove-2nd-hard-drive-from-the-new-VIC-appliance
Remove 2nd hard drive from the new VIC appliance

For our previous VIC appliance, we remove the 2nd hard drive.ย ย Note We do not delete files from datastore.

Remove-2nd-hard-drive-from-previous-VIC
Remove 2nd hard drive from previous VIC

Next, we need to move the 2nd hard drive from the folder of the old VIC appliance on the datastore to the folder of the new VIC appliance on the datastore.

Move-the-2nd-hard-drive-to-the-folder-of-the-new-VIC-appliance
Move the 2nd hard drive to the folder of the new VIC appliance

After moving the 2nd hard drive over, we edit the settings of our new VIC appliance and chooseย Add New Device.

Click-Add-New-Device-on-the-new-VIC-appliance
Click Add New Device on the new VIC appliance

Select theย Existing Hard Diskย option.

Add-Existing-Hard-Disk
Add Existing Hard Disk

Choose the Hard Drive that was moved over from the old appliance.

Select-the-Hard-Disk-that-was-moved-over-from-previous-VIC-appliance
Select the Hard Disk that was moved over from previous VIC appliance

After adding, verify the hard disk was added to the appliance.

Confirm-hard-disk-was-added-to-your-new-VIC-appliance
Confirm hard disk was added to your new VIC appliance

Run the vSphere Integrated Containers Upgrade script

Now, we boot up our new VIC appliance.

Boot-the-new-VIC-appliance
Boot the new VIC appliance

The upgrade script is found in theย /etc/vmware/upgrade folder and is calledย upgrade.sh.ย  Change your directory to that folder and run the script:

./upgrade.sh

The upgrade script will ask a series of questions including theย vCenter Server FQDN or IP,ย vCenter Administrator Username,ย vCenter Administrator Password, and will also ask whether or not you are running an externalย PSC.

Start-the-upgrade-process-to-upgrade-your-data-to-new-VIC-appliance-version
Start the upgrade process to upgrade your data to new VIC appliance version

Confirm the version you are upgrading from with aย “y“.

Confirm-the-upgrade-version
Confirm the upgrade version

Now we let the script run and do the upgrading of both Admiral and Harbor.ย  We should see both operations complete successfully.

Upgrade-of-Admiral-and-Harbor-should-complete-and-services-start
Upgrade of Admiral and Harbor should complete and services start

Troubleshooting vSphere Integrated Containers Appliance Upgrade

For the most part, my experience with upgrading the appliance was not too problematic.ย  I do want to mention however, that I did experience issues trying to upgrade from VIC 1.1.1 to VIC 1.2.0.ย  However, after waiting on the VIC 1.2.1 release, the upgrade went through without a single issue.

If you do run into issues with the VIC appliance upgrade, the upgrade log is generated on the vSphere Integrated Containers appliance at:

/var/log/vmware/upgrade.log

The log is fairly detailed and will generally help you find the culprit if you run into issues.

Thoughts

The process toย Upgrade VMware vSphere Integrated Containers VIC Appliance is well documented on the GitHub page as is the rest of the process.ย  Hopefully, this visual walkthrough of the process to upgrade the vSphere Integrated Containers appliance will help others who are upgrading their labs, etc.ย  Stay tuned for additional posts on upgrading the Virtual Container Host.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.