Workstation

VMware Workstation 20H2 Tech Preview VCTL Containers

Overview of VMware Workstation 20H2 Tech Preview provides a brand new command line tool called VCTL that allows easily running containers

Just a day ago, VMware posted news that a new Tech Preview had been released – Workstation 20H2. This release contains major new features and improvements. The biggest new feature with this Tech Preview is containers. That’s right, with this release of VMware Workstation, you can take a look at containers with a new container CLI. VMware had already added a new tool to VMware Fusion called vctl that provides a command line interface to the VMware container platform. It allows users to do things such as build, run, push, pull container images without needing another container runtime installed. This new command line tool is now available to Windows users as of the VMware Workstation 20H2 Tech Preview. Let’s take a look at VMware Workstation 20H2 Tech Preview VCTL containers feature as well as other new features in Workstation 20H2.

VMware Workstation 20H2 Tech Preview Overview of features

The big addition here for Windows is the VCTL command line tool. However, before we take a look at that, what other capabilities are found in the 20H2 release?

  • Monster VM support – includes new increase VM maximums to 32 vCPUs, 128 GB memory, and 8 GB of vRAM per virtual machine
  • USB 3.1 controllers support
  • Vulkan graphics renderer for Workstation for Linux

Running Containers with the VCTL Command Line Utility

Before testing out the new Workstation 20H2 Tech Preview, you need to make sure you uninstall any other versions of VMware Workstation you have running, including other previous tech previews.

Installing-the-VMware-Workstation-20H2-Tech-Preview
Installing the VMware Workstation 20H2 Tech Preview

After installing the new Workstation 20H2 Tech Preview, search for the vctl command line tool in Windows. Launch the command line tool.

Launch-the-VCTL-commandline-tool
Launch the VCTL commandline tool

You will automatically see the command line options available with the vctl tool.

Viewing-the-vctl-command-line-options
Viewing the vctl command line options

You can run the following two commands to get started:

  • vctl system config – to configure the memory, CPU an other parameters
  • vctl system start – to start up the container runtime
Starting-the-container-runtime-with-vctl
Starting the container runtime with vctl

Below, I am pulling the Nginx container image. To do this just type the command:

  • vctl pull nginx

You will see the image downloaded with the progress indicator noting when the image is successfully saved to disk.

Pull-a-test-nginx-container-image
Pull a test nginx container image

After you download the Nginx container image, you can simply run a new container from the container image using the command:

  • vctl run -d -p 8080:80 -v C:builtest:/data nginx

The “C:buildtest” is the local storage mount. Also, once this command is ran, you can view the status and IP address of your newly running container using the command:

  • vctl ps

You will note the IP displayed as well as the image, command, ports, status, and creation time.

Test-nginx-container-image-is-started-and-running-successfully
Test nginx container image is started and running successfully

Let’s run a quick test to see if we can browse to the Nginx web server. Sure enough, we can hit the IP address listed in the “vctl ps” output and get the Nginx splash page. Cool stuff.

Browsing-to-the-container-powered-nginx-instance
Browsing to the container powered nginx instance

Thoughts

The new vctl containers feature built into this latest Workstation 20H2 Tech Preview is a great new addition to the VMware Workstation feature set. While this is only a “tech preview”, it still highlights what is in store with the future releases of VMware Workstation GA releases.

Having the native container runtime and toolset built into Workstation makes running containers extremely easy for testing, POC’ing and many other great use cases including just playing around with containers/learning, etc.

After installing Workstation 20H2, you can have your first container up and running within minutes and hitting the web page that is made possible by the newly running container in no time as you can see above.

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.

Related Articles

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.