short-stack
Explorer
- Joined
- Feb 28, 2017
- Messages
- 80
Note: In this tutorial, I install Ubuntu Mate as my guest OS, and then use an Ubuntu Desktop ISO in Live mode to repair the boot device. You can try the steps using the Mate ISO or whatever distro you're using, but I've had mixed results with other ISOs than the Ubuntu Desktop 16.04 ISO.
Please let me know if you have any problems, or if my steps are clear.
- Click Create a new VM.
- Give it a name
- Leave the template blank!
- Pick your datastore location
- Select UEFI as your bootloader
- Set the Guest Type as Linux (64-Bit)
- Give it a description
- Set CPU/Memory to 2 core/2 GB of RAM
- Click on devices
[*]Add a CDROM and choose your ISO install file
[*]Add a NIC
[*]Add a Display
[*]Do not add a disk from the GUI, it's hit or miss if it actually works. Add it from the CLI instead.
- Open the CLI and type the following(replace Ubuntu with what you called the VM):
unix::>vm
unix::/vm>Ubuntu/
unix::/vm/Ubuntu>Device
unix::/vm/Ubuntu/Device>create name=OS type=DISK disk_mode=AHCI disk_size=10G
- When you go back to the FreeNAS webpage the VM should now show the disk OS as a device attached to your VM
- Save your VM!
- Install your Guest OS
- Click start on the VM
- Click on VGA Console (If you don't see VGA console as an option, click the < next to your VM name and then click back in to the VM)
- Follow through the prompts to install Ubuntu
- Choose LVM to make resizing easier in the future, and if you get a message like the below screenshot just click 'Continue in UEFI mode'
- Finish setting up your preferences for your install, and reboot
- The VM will sit a screen that says 'Please remove the installation medium, then press ENTER:' Pressing enter does nothing, you need to shut down from the FreeNAS GUI
- Click 'Shutdown' and then 'Power off' to force it to shut down
- Boot into Live Ubuntu
- Click on the CDROM device and change the ISO file to the ubuntu-16.05.2-amd64.iso file
- Save the VM changes
- Click Start
- Click on the VGA Console button again
- Choose 'Try Ubuntu without installing' as this will boot it into a Live environment
- Click the upper left hand icon to search and type Terminal to open the terminal
- In the terminal Window type the following:
sudo add-apt-repository ppa:yannubuntu/boot-repair
- It will prompt you to press Enter to continue adding the repo, so press enter
- Run the following to update your package list (Ignore errors about moving old databases out of the way):
sudo apt-get update
- Run the following to install and run Boot-Repair:
sudo apt-get install -y boot-repair && boot-repair
- Boot Repair will ask if there is RAID on the computer, click No
- Boot Repair should then pop up a window that says "/boot detected. Please check the options." Click ok
- Click the words 'Advanced options' to get into the advanced menu
- Click on the GRUB options tab, and uncheck 'SecureBoot'
- Then click 'Apply'
- Boot Repair will pop-up a window that says 'Please open a terminal then type (or copy-paste) the following commands:' Right click on the highlights commands and hit copy
- Click on the terminal window in the background, press enter once to make sure you're at a prompt, right click and press paste
- The last command might not run until you press enter, so when everything looks to be finished press enter until you get back to the terminal prompt
- Switch back to the Boot Repair window and click on forward
- Boot Repair will now run it's commands, and eventually ask you if you want to upload the results to pastebin, I check no, but if you have issues you can click yes to be able to share the results for help
- Boot Repair will pop up a window and say 'Boot successfully repaired' and open a text viewer with the full results of what it did
- Shutdown the VM, in the GUI click 'Shutdown' and then 'Power Off'
- Prepare VM for first boot
- Click on the CDROM device and delete it to remove the ISO from booting
- Save the VM
- Click 'Start' and click 'VGA Console'
- Choose 'Ubuntu' to boot into your new VM, or wait and it will auto boot in 20 seconds
- Enjoy your new Ubuntu Desktop VM!
Please let me know if you have any problems, or if my steps are clear.
Last edited: