skywise_ca
Dabbler
- Joined
- Jun 22, 2017
- Messages
- 15
I've been battling with an EFI bug in 11.0 for a couple of days and now I have a nice simple step by step on how to get Ubuntu onto FreeNAS 11.0
(this post gave me everything I needed to figure this out: https://forums.freenas.org/index.php?threads/how-to-how-to-boot-linux-vms-using-uefi.54039/ )
I'm installing Ubuntu 16.04.2 Server.
When making the VM itself, I edited the NIC, selecting VirtIO for the driver and when I added the disk, I also selected VirtIO.
Normal install from CD, force UEFI install.
At first reboot, stop/start VM, CD will boot again.
Select ‘rescue a broken system’
Mount your root/boot when asked. (in my case, /dev/ubuntutst1-vg/root)
At rescue menu, select “force GRUB installation to the EFI removable media path’
The next page explains what’s going on.
---
It seems that this computer is configured to boot via EFI, but maybe that configuration will not work for booting from the hard drive. Some EFI firmware implementations do not meet the EFI specification (i.e. they are buggy!!) and do not support proper configuration of boot options from the system hard drives.
A workaround for this problem is to install an extra copy of the EFI version of the GRUB boot loader to a fallback location, the “removable media path”. Almost all EFI systems, no matter how buggy, will boot GRUB that way.
---
When GRUB is reinstalled, select reboot.
Stop the VM, remove the CDROM, and start the VM.
Also while you're in the devices, edit the VNC device and uncheck 'wait for boot' if you want everything to start without needing to connect to the console.
At this point you have a nice base Ubuntu installation, have fun!
(this post gave me everything I needed to figure this out: https://forums.freenas.org/index.php?threads/how-to-how-to-boot-linux-vms-using-uefi.54039/ )
I'm installing Ubuntu 16.04.2 Server.
When making the VM itself, I edited the NIC, selecting VirtIO for the driver and when I added the disk, I also selected VirtIO.
Normal install from CD, force UEFI install.
At first reboot, stop/start VM, CD will boot again.
Select ‘rescue a broken system’
Mount your root/boot when asked. (in my case, /dev/ubuntutst1-vg/root)
At rescue menu, select “force GRUB installation to the EFI removable media path’
The next page explains what’s going on.
---
It seems that this computer is configured to boot via EFI, but maybe that configuration will not work for booting from the hard drive. Some EFI firmware implementations do not meet the EFI specification (i.e. they are buggy!!) and do not support proper configuration of boot options from the system hard drives.
A workaround for this problem is to install an extra copy of the EFI version of the GRUB boot loader to a fallback location, the “removable media path”. Almost all EFI systems, no matter how buggy, will boot GRUB that way.
---
When GRUB is reinstalled, select reboot.
Stop the VM, remove the CDROM, and start the VM.
Also while you're in the devices, edit the VNC device and uncheck 'wait for boot' if you want everything to start without needing to connect to the console.
At this point you have a nice base Ubuntu installation, have fun!
Last edited: