Run Home Assistant Supervised supported as Virtual Machine (VM) on VMware ESXi

I’m running Home Assistant Supervised on Ubuntu for a long time, but that is not supported anymore. Home Assistant Supervised provides the full Home Assistant experience on a regular operating system. The Supervisor is not just an application but it is a full appliance that manages the whole system. Home Assistant supervised is only supported on Debian Operating System. Below are the steps described on how to install Home Assistant Supervised as Debian 10 (Buster) VM on VMware ESXi 7.0.2.

Configure the Virtual Machine hardware specifications

  • Download the debian-10.10.0-amd64-netinst.iso, link
  • Make a connection to the ESXi host: https://<ip-address>/ui
  • Upload the Debian ISO to a datastore
  • Create a new virtual machine with the following specifications:
    • Name: <Name of the VM>
    • Compatibility: Default (ESXi 7.0 U2 and later)
    • Guest OS family: Linux
    • Guest OS version: Debian GNU/Linux 10 (64-bit)
    • Storage: datastore with 30 GB free space
    • CPUs: 2
    • Memory: 2048 MB
    • Hard disk 1: 30 GB
      • Disk Provisioning: Thin provisioned
    • SCSI Controller 0: VMware Paravirtual
    • USB controller 1: USB 2.0 or 3.0 depending on the ESXi hardware
    • Network adapter 1: Select the port group
      • Adapter type: VMXNET 3
    • CD/DVD Drive 1: Datastore ISO file
      • Browse to the Debian ISO
      • Connect at Power: checked
    • Video Card: Default settings
    • Next
    • Finish
    • Power on the VM
    • Open a console session

The VM is now configured with a paravirtualized SCSI controller (PVSCSI) and VMXNET3 Virtual NIC.

Install Debian 10 (Buster) on VMware ESXi

  • Installer Menu: Select Install
  • Language: English
  • Location:  Other, Europe, Netherlands
  • Locales:  United States
  • Keymap:  American English
  • Enter the hostname: ha-05
  • Domain name: <domain name>
  • Root password: <Enter the root password>
  • Full Name for the user:<Full name>
  • User name: <username>
  • Choose Password for the new user: <Enter the root password>
  • Partition Disks: Guided – Use the entire disk and set up LVM
    • Select disk to partition: SCSI1 (0,0,0) – 32,2 GB VMware Virtual Disk
    • Partition scheme: All files in one partition (recommended for new users)
    • Write the changes to disk and configure LVM: Yes
    • Amount of volume group to use for guided partitioning: 31.7 GB
    • Select: Continue
    • Write changes to disks: Yes
  • Scan another CD or DVD: No
  • Debian archive mirror country: Select the archive mirror country nearby. I select The Netherlands
  • Debian archive mirror: deb.debian.org
  • HTTP Proxy: Leave empty and select continue
  • Participate in the package usage survey: No
  • Software selection:
    • Check: SSH server and standard system utilities
    • Uncheck: Debian desktop environment, print server
  • Install the GRUB boot loader to the master boot record? Yes
  • Device for boot loader installation? /dev/sda
  • Installation is complete.
    • Finish the installation: Continue

The Debian VM will be rebooted and is ready for use. After the installation open a console session and log in.

  • Install the sudo command
su
apt install sudo
nano /etc/sudoers

Under the “User privilege specification” add the user account created during the Debain installation

username ALL=(ALL:ALL) ALL

Press CTRL + X to save the file. Now it is possible to use the sudo account under your username

exit
sudo -i
  • Update all Debian packages
apt update && apt upgrade -y
  • Install the Open Virtual Machine Tools
apt install open-vm-tools -y

After installing the Open VM Tools the IP address of the VM is visible.

  • Create a SSH session to the IP address of the Debian VM by using Putty for example.
sudo -i
  • Install the required packages
apt install software-properties-common apparmor-utils apt-transport-https ca-certificates curl dbus jq network-manager -y
systemctl disable ModemManager
systemctl stop ModemManager
reboot
  • Reconnect using an SSH session
sudo -i
curl -fsSL https://get.docker.com | sh
curl -Lo installer.sh https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh
bash installer.sh --machine qemux86-64
  • Press “y” to accept the network adjustments

  • After the installation check if there are two containers running using the following command:
docker ps

  • Connect to Hass.io: http://<IP address>:8123

Home Assistant Suspervised is now installed and running as a Virtual Machine on VMware ESXi.

More information:

GitHub – home-assistant/supervised-installer: Installer for a generic Linux system

 

Quick Tip: Download the latest Windows 10 ISO file

Today on May 18, 2021, Windows 10 21H1 is released (May 2021 Update). This 21H1 version is a minor release version and the 21H2 version (later this year) will be a major release version. I use the latest Windows 10 versions in my lab environment for creating and testing golden images for VDI environments.

To download the latest Windows 10 ISO file I use the Windows 10 Media Creation Tool. This is a Windows-based tool. When starting the Windows 10 Media Creation Tool it opens a Graphical User Interface and you are able to download Windows 10 Home (N), Education (N) and the Pro (N) ISO. To download the Enterprise version you need to enter the command line. Here are the steps explained to download a Windows 10 Enterprise ISO:

  • Download the Media Creation Tool (MediaCreationTool21H1.exe), link
  • Select: “Download Tool now”
  • Open the command line
  • Use the following command to download the English 64-bits Windows 10 Enterprise ISO:
MediaCreationTool21H1.exe /Eula Accept /Retail /MediaArch x64 /MediaLangCode en-US /MediaEdition Enterprise
  • To download the Dutch 64-bits Windows 10 Enterprise ISO use the following command:
MediaCreationTool21H1.exe /Eula Accept /Retail /MediaArch x64 /MediaLangCode nl-NL /MediaEdition Enterprise
  • Enter the product key “NPPR9-FWDCX-D2C8J-H872K-2YT43”.  The KMS client keys can be found here: link

  • Select: Create installation media (USB flash drive, DVD, or ISO file) for another PC

  • Select “Iso file” and browse to a location to store the ISO. You need at least 8GB free on the C-drive and the ISO size is between 4 and 5 GB.

  • The download of the Windows 10 ISO starts.

Once the downloading of the ISO is completed it’s ready for use.

Resources to prepare for the AZ-140 Azure Virtual Desktop (AVD) exam

I’m preparing for the AZ-140 Azure Virtual Desktop (AVD) exam.

Update: June 10, 2021, the exam is out of beta and Generally Available (Link).

The following resources I’m using for studying for the exam:

Create a free Azure account to get some hands-on lab experience

The Azure Academy did a great job and created  a series of AZ-140 study guides on YouTube:

Travis Roberts has created a training course and a set of exam questions for the AZ-140 exam on Udemy:

Pluralsight is free this month (April 2021). So take your change

Exam tips:

I hope that these resources will help you pass the AZ-104 exam. Let me know in a comment below about your experience with the AZ-104 exam.