home lab

vSAN Lab on VMware Workstation: Step-by-Step

vSAN Lab on VMware Workstation: Step-by-Step. A look at how to setup your vSAN lab with networking (physical and virtual) and disk groups

Home labs comes in many shapes and sizes. One of the first types of labs that many are able to invest in is running VMware Workstation on top of a workstation PC or even a laptop. VMware Workstation is a great tool for home labs as it allows you to have a multi-purpose set of hardware that can be used, not only for a lab environment, but also for your management workstation for business productivity or other purposes. You can then spin up the lab whenever or wherever you want (in the case of a laptop). This post will cover vSAN lab on VMware Workstation: step-by-step and see what you need to do to get this up and running.

VMware Workstation for home lab

VMware Workstation is a great platform as mentioned in the outset. For this vsan lab on VMware workstation walkthrough, I am using VMware Workstation 16. Where can you get VMware Workstation? You can simply buy VMware Workstation for yourself if you want. However, a much better deal than buying VMware Workstation, especially if you are serious about your home lab environment is a VMUG Eval Exeperience license. I have written about this many times and the value this offers. Check out some of my posts here:

For just a bit more than you would pay for a single VMware Workstation license, you can get yourself access to VMware Workstation and the whole suite of VMware products and solutions for a whole year of testing and labbing!

VMware Workstation again provides a multi-purpose platform that can share a daily driver workstation or even dedicated resources if you choose that route. For most though, if you are going the VMware Workstation route for a lab instead of ESXi, you are most likely wanting to share resources for other purposes.

Why learn VMware vSAN?

VMware vSAN is the premiere software-defined storage solution on the market. Learning VMware vSAN is a great way to learn the underlying storage technology that underpins many of the advanced VMware solutions such as VMware Cloud on AWS and VMware Cloud Foundation.

It allows aggregating local storage on each VMware ESXi host and pooling this storage together to form one logical shared storage space that all hosts have access to for virtual machine and persistent containerized storage.

vSAN Lab on VMware Workstation: Step-by-Step

So, now, let’s get down to the business of creating a vSAN lab on VMware Workstation. For the vsan lab on VMware Workstation, I have the following:

  • VMware Workstation 16 running on a workstation class machine
  • (3) ESXi appliances serving as a vSAN hosts
  • (1) VMware vCenter Server appliance – In this post, I won’t really detail the configuration of vCenter. You just need to deploy the VCSA either in your VMware Workstation environment or elsewhere that can communicate with the ESXi hosts you will provision in VMware Workstation.
  • Networking:
    • VMware Workstation networking: (2) networks configured, (1) for management traffic/VM traffic, and (1) for vSAN traffic
    • Nested ESXi network – (2) distributed switches (vDS) configured, (1) for management traffic, and (1) for vSAN

Deploying ESXi

As I have used this as a great resource for nested ESXi on top of vSphere, I wanted to make use of the same thing on VMware Workstation. William Lam provides nested ESXi appliances that can be used to easily deploy ESXi easily for nested lab environments. You can download the appliances here:

Also, I created a vSAN network in VMware Workstation to handle the vSAN traffic. I will attach the ESXi hosts’ second network adapter to this network in VMware Workstation. Notice I have DHCP enabled on the vSAN network. This will make things easier when it comes to adding the vSAN VMkernel ports later. We won’t have to worry about statically assigning these in the vSAN lab on VMware Workstation.

Creating a vSAN network in VMware Workstation
Creating a vSAN network in VMware Workstation

To deploy the OVAs provided, in VMware Workstation, just navigate to the File > Open menu and point to the downloaded OVA appliance. It will launch a wizard to configure the appliance.

Opening the ESXi nested appliance in VMware Workstation
Opening the ESXi nested appliance in VMware Workstation
Configure the name and where it will be stored
Configure the name and where it will be stored
Configuring the network and configuration using the template configuration
Configuring the network and configuration using the template configuration
ESXi template deployed and booting in VMware Workstation
ESXi template deployed and booting in VMware Workstation

One thing I will mention, the OVA template provided by William is not configured for VMware Workstation. It does work, however, one thing I noticed is the configuration set initially does not get customized properly after the template deploys. So, you will need to make sure to configure your network accordingly per ESXi host. There may be a workaround for this. I have not really played around with the template to see if I can get the configuration to customize properly. One thing you can do since this is a lab environment, is just make sure your networks are configured for DHCP in VMware Workstation so IPs are handed out. I did do this for the vSAN network but not the management network.

Setting the second network adapter of the ESXi hosts to the vSAN network
Setting the second network adapter of the ESXi hosts to the vSAN network
Network is plumbed in correctly and IP address for management is configured
Network is plumbed in correctly and IP address for management is configured

Creating a new cluster in the vSphere Client

To create a new Cluster, you can right-click your Datacenter and choose New Cluster. This is part of the Quick Start wizard. I went ahead and flagged on vSAN.

Creating a vSAN cluster in the vSphere Client
Creating a vSAN cluster in the vSphere Client

Review the new cluster creation wizard and click Finish.

Review the vSAN cluster configuration
Review the vSAN cluster configuration

You can then add the hosts to the cluster in one fell swoop.

Add the hosts to the vSAN cluster
Add the hosts to the vSAN cluster

Accept the certificate warnings.

Accept the security certificate thumbprints for the ESXi hosts
Accept the security certificate thumbprints for the ESXi hosts

Hosts to be added to your vSphere Cluster. The IPs reflected below are housed in my VMware Workstation environment.

Host summary screen
Host summary screen

Review and finish adding the hosts to the cluster.

Ready to complete the new cluster wizard
Ready to complete the new cluster wizard

The hosts are added to the cluster.

Hosts are brought into the cluster in maintenance mode
Hosts are brought into the cluster in maintenance mode

Now that we have the hosts added to the cluster, we will need to get our networking in place for the hosts to properly communicate, including the vSAN network. For this, I will be using vSphere Distributed Switches.

Creating vSphere Distributed Switches

In VMware Workstation we have two network adapters assigned to the (3) ESXi hosts. To segment the traffic, I am creating (2) vSphere Distributed Switches. I am assigning one adapter from each host to each vDS switch. As you already know, when you install ESXi, it will place the management VMkernel port on the default vSwitch0 standard switch.

Why migrate to vSphere Distributed Switches? Can you configure your vSAN lab on VMware Workstation with vSphere Standard Switches? Yes you can. However, there are lots of cool features with vSphere Distributed Switches such as Network I/O Control that you can play around with using vDS. Also, vDS switches make bulk operations easier.

Let’s quickly create two vDS switches, one for management and the other one for vSAN. Basically, we will run through creating both. I will show the process for one of the switches.

Beginning to create the vDS switch for management
Beginning to create the vDS switch for management
Select the version of vDS switch to create
Select the version of vDS switch to create
Ready to complete the new vDS switch
Ready to complete the new vDS switch

Do the same for the vSAN distributed switch.

Creating a new vSAN vDS switch
Creating a new vSAN vDS switch

Adding hosts to the vSphere Distributed Switches

After you create a vDS, you add it to the ESXi hosts. Right-click your switches and then choose the Add and Manage Hosts option.

Adding hosts to the vDS switches
Adding hosts to the vDS switches

Choose Add hosts.

Add hosts wizard launches
Add hosts wizard launches

Select New hosts.

Select to add hosts
Select to add hosts

Select your hosts running in VMware Workstation.

Select the hosts you want to add to the vDS
Select the hosts you want to add to the vDS

Hosts are now selected.

Hosts added to move forward
Hosts added to move forward

Choose to Assign uplink.

Assign uplinks to the vDS
Assign uplinks to the vDS

Choose Uplink1 and then Apply this uplink assignment to the rest of the hosts.

Assign the uplink and appy to all hosts
Assign the uplink and appy to all hosts

Uplink reassigned.

Uplink assigned to the new vDS
Uplink assigned to the new vDS

Let’s assign the port group for the Management VMkernel port. During the process of adding the hosts to this management vDS, the management VMkernel port is migrated to the port group defined in the steps below.

Assign portgroup for the management VMkernel port
Assign portgroup for the management VMkernel port

Choose your management port group created on the VDS-Mgmt vDS.

Select the port group and apply the configuration to all hosts
Select the port group and apply the configuration to all hosts

Management VMkernel port reassigned.

VMkernel adapter assigned to the new vDS
VMkernel adapter assigned to the new vDS

Since this is a new cluster, there is no VMs to worry about.

Migrate VM networking
Migrate VM networking

Ready to complete.

Ready to complete adding the hosts to the vDS for management
Ready to complete adding the hosts to the vDS for management

The tasks kick off in vCenter.

Host configuration is updated adding the hosts to the vDS
Host configuration is updated adding the hosts to the vDS

Do the same for your vSAN vDS switch as the process shown above. Note, there will be no existing VMkernel port to reassign. For the vSAN vDS, we just need to add the switch to the ESXi hosts. We will create a VMkernel port for vSAN next. After you have added the hosts to the vDS switch for vSAN, you need to add a VMkernel port. To do that, you right-click each host and choose Add Networking. Choose VMkernel Network Adapter.

Add a VMkernel network port
Add a VMkernel network port

Select the vDS switch added earlier for vSAN.

Choose your existing vSAN VDS created earlier
Choose your existing vSAN VDS created earlier

Make sure to choose vSAN on the Port Properties > Available Services.

Choose vSAN for services enabled
Choose vSAN for services enabled

In VMware Workstation, the network segment that I created for vSAN which is backing the vSAN network is enabled with DHCP. Here, I am just leaving it as DHCP which saves the work of having to configure static IPs for the VMkernel ports on all three hosts.

Configure your IP addressing configuration
Configure your IP addressing configuration

Ready to complete the configuration.

Ready to complete adding the vSAN VMkernel port
Ready to complete adding the vSAN VMkernel port

If you noticed above, I forgot to change the MTU of the vDS for vSAN to 9000. I went back and did this. You can do this either when you initially create it or after the fact.

Changing the MTU size on the vSAN VDS
Changing the MTU size on the vSAN VDS

Creating the vSAN disk group

Now that we have the networking side of the vSAN cluster housed in our VMware Workstation environment, we can work on the storage side. With vSAN, each host has a disk group that contributes to the overall vSAN storage capacity. If you navigate to Configure > vSAN > Disk Management > Claim Unused Disks it will launch the wizard to claim all available disks for vSAN use.

Claim unused disks to create the vSAN disk group
Claim unused disks to create the vSAN disk group

On the Create Disk Group screen, choose the cache disk and capacity disk.

Choose cache and capacity disks
Choose cache and capacity disks

The wizard will claim the disks for all three hosts based on the disks that you select in the previous screen.

Ready to create the disk group
Ready to create the disk group

After clicking Create above, the disk groups will be created on all three hosts.

Disk groups ready and healthy on all three VMware Workstation ESXi hosts
Disk groups ready and healthy on all three VMware Workstation ESXi hosts

Looking at the Skyline Health screen, we see only a few warnings of things that you would expect such as controllers not being VMware certified, etc.

Viewing Skyline Health after creating the vSAN Cluster that exists in VMware Workstation
Viewing Skyline Health after creating the vSAN Cluster that exists in VMware Workstation

Final thoughts on lab setup

All in all, configuring a vSAN lab on VMware Workstation is straightforward. Getting your networking setup on VMware Workstation correctly is extremely important. Make sure you have your networking plumbed in correctly from that side of things to your physical network where you have connectivity to vCenter Server if it doesn’t exist in VMware Workstation also.

Once you have your hosts deployed, the primary steps are getting networking configured in vCenter and the disk groups for each host so your vSAN storage will come online. Hopefully this walkthrough will help anyone who wants to make use of VMware Workstation to deploy a VMware vSAN home lab.

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.