Virtualize unRAID Server in VMWare ESXi 7.0

Image not Found

After some intensive research and consideration, I found out that virtualizing unRIAD Server in VMWare ESXi 7.0 seems like a possibility. Due to the fact that the licensing model Lime Technology uses is NOT straightforward. UnRAID requires to be installed on a USB Flash drive with a GUID. Not very virtualization-friendly in other words.

Luckily in VMware ESXi 7.0, it is possible to boot VMs directly from a USB drive (It has earlier just been possible through third-party tools like Plop Boot Manager )

Refrence:


Prerequisite

  • A server already has VMWare ESXi 7.0 installed
  • A cup of coffee (It’s a must xD!)

Install unRAID on USB-Flash Drive

Download unRAID USB Flash Creator

Download the Latest USB Flash Creator from UNRAID Official Website , and then go through the installation guide.

Do NOT select the UEFI boot method as it will not be booted from the ESXi VM.

After the installation, you should be able to find the boot content from your USB Flash Drive.

Download PlopKexec Bootloader

Download the latest PlopKexec-bin-tar from Plop Official Website

Extract the tar file and find the files named bootx64.efi (bootloader) and plopkexec64 (Disc Image File)

Upload the plopkexec64 ISO file to the datastore in ESXi

Copy the bootx64.efi (bootloader) to your USB Flash Drive with unRAID installed in the previous steps


Toggle PCI-Passthrough (Optional)

You may skip this step if you do NOT want to passthrough physical drives to the unRAID VM.

* In the ESXi Console GUI got to Host > Manage > PCI Devices

* Select your PCI/PCI Express SATA/SAS Controller Card and select Toggle Passthrough

A message like this will show if the passthrough is successful:

“Successfully toggled passthrough for device Broadcom / LSI SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon].”

Create unRAID VM

* Go to Virtual Machine in the left menu.

* Select Create / Register VM

* Select Create a new virtual machine, and Next.

* Give the VM a recognizable name and select as follows:

  • Compatibility: ESXi 7.0(U2) virtual machine
  • Guest OS family: Linux
  • Guest OS version: Ubuntu Linux (64-bit)

* Click Next

* Select a datastore and click Next

* Configure CPU, Memory and Hard disk.

  • Change the Hard disk Controller location from the default SCSI Controller to SATA Controller as unRAID can ONLY recognize SATA drives

Configure the VM

Add PCIE Devices (Optional)

* Click on Add other device, then PCI device

Add PlopKexec ISO to the VM

* Select CD/DVD Drive 1, and select Datastore ISO file. Pick the PlopKexec ISO file from the datastore

Add USB Flash Drive

* Select Add other device and choose USB controller, find your USB Flash Drive with unRAID installed in it

* Modify the USB controller type to fit your USB Flash Drive type. By default it is set to 2.0

Add Extra Boot Parameters

According to https://forums.unraid.net/topic/90886-unraid-on-esxi-70-confimed-working/?do=findComment&comment=849079, someone mentioned that we may need to pass a specific parameter, monitor.allowLegacyCPU = True to the VM to make this fully funtional.

To do so, follow the steps below:

* Edit VM Settings, under VM Options > Advanced > Edit Configuration

* Press Add parameter and add monitor.allowLegacyCPU parameter and set its value to TRUE

VM Configuration

My unRAID VM Configuration

 1CONFIG:
 2Name	UnRAID
 3Guest OS name	Ubuntu Linux (64-bit)
 4Compatibility	ESXi 7.0U2 virtual machine
 5vCPUs	12
 6Memory	8 GB
 7Network adapter 1 network	LAN-server
 8Network adapter 1 type	VMXNET 3
 9SCSI controller 0	LSI Logic Parallel
10SATA controller 0	New SATA controller
11Hard disk 1
12Capacity	200GB
13Provisioning	Thick provisioned, lazily zeroed
14Controller	SCSI controller 0 : 0
15Connected	Yes
16USB controller 1	USB 3.1
17USB device 1	Kingston DataTraveler 3.0
18...

Boot unRAID

Double check if everything has been set up correctly, especially the USB Controller, which has to match your USB Flash Drive USB type

If everything is good, then we can proceed to boot the unRAID VM

Press the Up and Down arrow key on your keyboard to change the boot option, you should see the Unraid OS boot option in the menu


Install VMware Tools

After unRAID is up and running you should install VMware Tools.

* Assuming you have already installed the Community Applications Plug-In in UnRAID, open the UnRAID GUI and go to the Apps-tab.

* Search for openVMTools_compiled and you will find this app:

* Install the plugin by clicking Install

That’s it, the Virtualized unRAID Server is now fully functional just as a physical machine.


Demo


Conclusion

To sum up, unRAID on ESXi 7.0 is confirmed working like a charm. If you need any further troubleshooting help, visit https://forums.unraid.net/topic/90886-unraid-on-esxi-70-confimed-working/. unRAID has a very versatile community where you may find lots of people who might meet the same problem as you do, so be sure to leverage the community forum to help you build fundamental knowledge about unRAID as you go.


You May Also Like