Installing Ubuntu 16.04.3 on a FreeNAS 11.0-U4 Virtual Machine

Mostly a reminder to myself, but feel free to use the instructions. .

  1. Download Ubuntu server edition from here.

Updated 5/06/2018
Having run with a 5Gig zvol partition for a few months, I’ve come to the conclusion that it’s not enough, so I’ve increased it to 35Gib, which seems fine for running pi-hole with a home network of under 5 machines.

I’m going to create a 35 gigabyte zvol partition to install the OS, select Storage and navigate to “Create zvol”

These are my setting, you can adjust to your needs.

Select VM’s from the top bar and click on “Add VM” and add the following. These are my settings for a home which only has a few PC’s, you can of course provision it with more CPU’s and more memory as required. Or, run it for a while and change the virtual CPU’s and Memory Size if you find its not sufficient (the wonders of virtualization 🙂 ).


Select Ubuntu16_04 and click on the devices button.

Click on Add Device and navigate to the zvol you created earlier. Ensure that you select VirtIO as the Mode.

Click on Add Device and select CDROM, then browse to the location of your Ubuntu 16.04 installation ISO.

You may want to change the NIC to a VirtIO as mine is below, the Virtual Machine will work with either options selected.

When done your Ubuntu 16.0.4 install should look like this.

Enable Web VNC access, this will allow you to run thorough the install when you start the VM.

Start the VM

Connect to “Vnc via Web” and install Debian.

Follow the GUI and install Ubuntu, remember not to reboot at the end as you’ll be left at the install screen again. At the end of the installation just press the stop button. At this stage, I usually remove the CDROM device, see graphic below. This is how my VM looks.

When you reboot your VM, connect and disconnect using the “Vnc via Web” button a couple of time. You will be presented with the graphic below. Follow the instructions below to fix the bug, it’s an known issue and hopefully I’ll be able to remove the instructions below when fixed.

Boot Problems

If you find yourself left at the UEFI Interactive shell (see below).

Type exit and follow the steps provided.

  • Select Boot Maintenance Manager
  • Select Boot From File
  • Enter
  • Select <EFI>
  • Select <debian>
  • Select grubx64.efi

This will boot the VM and get you to the login prompt, you may have to follow the steps titled “Fix UEFI boot loader” and make the fix permanent.

Fix UEFI boot loader

Login and type the following.


At this stage in the install, I usually change the IP Address to a static IP address outside my DHCP range and remove the VNC Server from the installation.


2 thoughts on “Installing Ubuntu 16.04.3 on a FreeNAS 11.0-U4 Virtual Machine

  1. You seem to have lost the section referring to adding the NIC, and are showing disk options when you are talking about changing the NIC to virtio…

Leave a Reply