If you're installing a Windows server on TrueNAS

If you are trying to set up a Windows Server 2019 as a Truenas Virtual Machine, you may be facing a few hard to explain issues during the installation.

For me was related to disk. If I understood correctly, Virtual machines running on Freenas are para-virtualized, which means that in opposition to virtualization, the guest doesn't know that it runs as a virtualized environment. Para-virtualized guests are fully aware of that situation and work in cooperation with the host.

The difference is that in virtualized environments, the host needs to trap the guest's request to emulate the hardware. In contrast, in para-virtualized environments, hosts and guests communicate through a layer, the "Para-drivers". The idea is to improve performance by replacing the expenses of trapping by collaboration.

And here is where VirtIO comes to play. To get a Windows server running into a Freenas virtual machine, we need to use a second image apart of the Windows.iso during the installation.

But there's a second catch. When the time to select VirtIO drivers comes, the ones automatically listed crashes the installation process. I have tried every single one of them, and one after the other fail, you have to look somewhere else. So this is pretty much a step by step of what worked for me:

Select VM wizard
Virtual Machine (VM) Wizard type: Virtual Machine (VM)

Operating System
Guest Operating System: Windows
Boot Method: UEFI
[x] Start on Boot
[x] Enable VNC
[X] Delay VM Boot until VNC connects - You can disable this after the installation

CPU and Memory
Virtual CPUs: <I have used 1>
Memory Size: <I have used 8GiB>

Hard disk
[x] Create new disk image
Select Disk Type: AHCI
Size: <I have used 60 GiB>

Network interface
Adapter Type: VirtIO
Mac Address: xx:xx:xx:xx:xx:xx
Attach NIC: xxx0

Installation Media

Confirm Options

To load the VirtIO driver during the installation, you need to add a second CDROM.
Edit Devices of the VM, add a 2nd CDROM and mount virtio-win-.iso

Power ON the VM
Connect the VNC web console
Press any key to boot from CD or DVD...

Move on with the installation until the tricky part, when you need to load the VirtIO driver.

Which type of installation do you want?
Custom: Install Windows only (advanced)

Where do you want to install windows?
Load driver
Browse E:\NetKVM\2k16\amd64

The trick was this option E:\NetKVM\2k16\amd6 to get to the end of the installation.

Show Comments

Get the latest posts delivered right to your inbox.