Nutanix Technology Champion - Nutanix Solution Architect

Julien DUMUR
Infrastructure in a Nutshell
Deploying a Windows VM on Nutanix AHV

This is a problem many people encounter when first deploying a virtual machine on Microsoft Windows: storage detection.

I’ll show you how to deploy a Windows virtual machine on Nutanix AHV.

Prerequisites

To begin, download the VirtIO ISO image from the Nutanix Support website (registration required): https://portal.nutanix.com/page/downloads?product=ahv

Remember to select “VirtIO” from the drop-down menu at the top of the page, then download the “Nutanix VirtIO for Windows (iso)” version:

Downloading Nutanix VirtIO for Windows from the Nutanix portal

Once the ISO image is downloaded, you need to transfer it to the cluster.

Now let’s move on to deploying the virtual machine.

Creating the virtual machine under Prism Element

Log in to the Prism Element web interface of your Nutanix cluster, then select “VM” from the menu:

VM menu in Prism Element

On the virtual machine management page, click “Create VM” in the top right corner:

Create VM button in Prism Element

In the window that appears, there are a number of fields to fill in:

VM creation fields in Prism Element

In order:

  • Virtual machine name
  • Time zone
  • Amount of vCPUs
  • Amount of RAM

Next, you need to add one or more disks:

Adding a disk to the VM in Prism Element

For each type of disk you want to add, you will need to select the appropriate options:

Disk options in Prism Element

In the case of our VM, we’ll add:

  • 1 40GB disk for the operating system
  • 1 CD-ROM with the Windows ISO
  • 1 CD-ROM with the VirtIO ISO
Adding a CD-ROM with the Nutanix-VirtIO-1.2.3.iso image

You should have 3 disks at this point:

Three disks configured on the VM

Adding a network adapter is the last step before finalizing the creation of the virtual machine:

Adding a network adapter to the VM

If you’re unsure how to add new networks to your cluster, I recommend reading my article on the subject: Nutanix AHV – Add subnet to your cluster

The machine is now created, and you can proceed with its deployment.

Creating the Virtual Machine in Prism Central

To create the VM in Prism Central, go to the “Infrastructure > Compute > VMs” menu:

VMs menu in Prism Central

Then click on “Create VM” to access the VM creation menu:

Create VM button in Prism Central

The fields to be filled in remain generally similar to those you can find under Prism Element, although organized slightly differently:

VM creation form in Prism Central

And spread over several tabs:

VM creation tabs in Prism Central

Since the process is generally identical, I won’t go into detail about all the steps. One notable difference: the ability to assign one or more categories to our VM upon creation:

Assigning categories to the VM in Prism Central

The last tab allows you to check all the information that we have just configured:

VM summary before creation in Prism Central

Deploying the Virtual Machine

To deploy the virtual machine, boot it and launch the console. The first step is to choose the language:

Language selection during Windows setup

Then click on “Install now”:

Windows Install now button

Then select the version you want to install:

Choosing the Windows edition to install

Accept the license agreement:

Windows license agreement

Now click on “Custom…”:

Choosing the Windows custom installation

Damn! The hard drive you configured when creating the virtual machine is not showing up… Click “Load a driver” to fix this problem:

No disk detected and the Load driver button

Click on “Browse”:

Browse button to load a driver

Now navigate to the directory corresponding to the version of Windows you are deploying, in my case Windows Server 2022:

VirtIO driver folder for Windows Server 2022

Select all drivers from the list and click “Next”:

Selecting the VirtIO drivers

Once the driver installation is complete, the disk finally appears:

Disk detected after installing the VirtIO drivers

The installation is launched, all you have to do is wait:

Windows installation in progress

Your virtual machine is deployed!

0 comments

Leave a Reply