Homelab Setup Part 2 – vSAN Configuration

To setup the NUC and install ESXi, follow part one of this guide. The following is the process for bootstrap loading the vCenter Server Appliance onto a vSAN datastore. This process was replaced in vCenter 6.7 which provides this capability natively through the installer. If you are deploying vCenter 6.7, skip through to part three.

vSAN Configuration

To install vCenter you need the datastore in place, which for my environment is vSAN. However to configure vSAN, this is done through vCenter. A classic chicken and egg scenario which thankfully VMware have the solution for. You can bootstrap the vSAN datastore which William Lam has documented over at virtuallyghetto.com and my configuration steps are below. On the first host, enable SSH and SSH into the host. Modify the default vSAN policy to enable force provisioning.

Confirm the changes were made successfully by running the getdefault command below to confirm the vSAN policy

Next step is to work out which disks will be used by the vSAN datastore. Run the below command to get the output

Once you have found the 500GB capacity tier SSD and the 256GB cache tier SSD, record the device name ready to be used later. The value will be in brackets under Display Name. For my environment the values are below

Create a new vSAN cluster with the command below

Confirm the new vSAN cluster has been created successfully

Set the 500GB SSD as a capacity tier drive by running the following command and substituting the device name for your environment as recorded earlier

Finally the vSAN all flash disk group is created with the below command to add the two SSDs into the cluster

To verify the vSAN cluster has been created and the disks have been added, run the below command and check the output

Part 3 of this guide will cover the initial vCenter Server Configuration and is available here.

Note: If you get stuck with vSAN and need to remove all of the partitions, run the commands below to format all of your data and start your homelab from scratch!

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.