Mostly a reminder to myself, but feel free to use the instructions. .
- Download Ubuntu server edition from here.
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.
If you find yourself left at the UEFI Interactive shell (see below).
- Select Boot Maintenance Manager
- Select Boot From File
- 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.
cp /boot/efi/EFI/ubuntu/grubx64.efi /boot/efi/EFI/BOOT/bootx64.efi