Here we will see 2 ways of installing Linux (Ubuntu) and some errors you may encounter.
- Into your system from a USB flash drive
- In a virtual machine
- Errors you may encounter
When you mount an ISO image as a virtual disk, this happens at the OS level. Not at the hardware level. When your running operating system stops, the virtual device goes away. So it is not possible to boot a physical machine from a virtual drive.
Whether or not you need to create physical installation media depends on how you want to install Ubuntu:
- If you want to install it separately from Windows (either alongside it or replacing it) then you need to create real physical installation media. You can burn the ISO image to a DVD (or to a CD, if you’re installing Ubuntu 12.04 or earlier). Or you can write it to a USB flash drive.
- If you want to install it inside Windows (i.e. contained within the pre-existing Windows partition and booted using the Windows boot loader), then you do not need to create physical installation media.
Installing Linux from USB flash drive
Get the needed material:
- Ubuntu Desktop 18.04 LTS [link]
- Rufus (free open source USB stick writing tool) [link]
- 4 Gb or larger stick/flash drive
Create a bootable USB stick/flash drive:
- Run Rufus and complete the fields, selecting your Ubuntu ISO file and your device.
- Rufus may need to automatically download additional files. Let it do it.
- Rufus asks whether write an ISO or DD. Select ISO.
- Remember: All data stored in the device will be deleted.
Install Ubuntu from the USB stick/flash drive:
- Go to the UEFI menu > firmware options. Once there, activate the options for making the computer boot from the USB device. Make sure Rufus created a correct bootable USB device or computer may not detect a bootable USB.
- Restart the PC and installation will begin.
- Install Ubuntu desktop
- Create a bootable USB stick on Windows
- Make a full portable installation on a USB HDD
Installing Linux (Ubuntu) in a Virtual machine (VMware WP)
Download the needed software:
Create a virtual machine with Ubuntu inside:
- Install the virtual machine (VMware)
- Run it and select “Create a new virtual machine”
- Select “Installer disc image file (iso)” and select your Ubuntu iso file
- Select a few installation options
- Restart your system
Errors you may encounter
Error: Intel VT-x is disabled: [link]
Modern CPUs include hardware virtualization features that help accelerate virtual machines. Those features aren’t always enabled by default. In order to work , these virtual machine apps need hardware acceleration features built into modern CPUs. For Intel CPUs, this means Intel VT-x hardware acceleration. For AMD CPUs, it means AMD-V hardware acceleration. Reasons why this error message may appear:
- The hardware acceleration feature may be disabled. On systems with an Intel CPU, the Intel VT-x feature can be disabled via a BIOS or UEFI firmware setting. In fact, it’s often disabled by default on new computers. On systems with an AMD CPU, this won’t be a problem. The AMD-V feature is always enabled, so there’s no BIOS or UEFI setting to change.
- Microsoft’s Hyper-V is installed. It’s greedy and takes over those hardware acceleration features, so other virtualization apps won’t be able to access them.
- Turn Intel VT-x on in your BIOS or UEFI firmware: Old PCs use BIOS, modern PCs use UEFI.
- BIOS: Access to it pressing the appropriate button when PC is first booting.
- UEFI: Restart the computer while pressing shift. Usual route: Solve problems > Advanced options > UEFI firmware configuration > Restart > Configuration > Intel Virtual Technology > Enable.
- Uninstall Hyper-V: Control panel > Uninstall a program > Turn Windows features on or off > (clear Hyper-V checkbox).
Error: Ubuntu isn’t fullscreen inside the virtual machine
- In VMware virtual machine go to: “Player > Manage > Install VMware tools”. This will install VMware tools in your guest OS.
- Restart the virtual machine.
In: “Player > Manage > Virtual machine settings > Display” you can make some display configurations (maybe you can only modify values here before opening the virtual machine).
Error: Keyboard has wrong characters
In the “Configuration” menu (it’s at the top right corner) > Region and language > Input sources > Spanish (to install that language go to “Manage installed languages”).
Share folders with the host
In the screen where you select the virtual machine you want to boot, select “Edit virtual machine settings” (of a certain virtual machine) and go to the “Options” > “Shared folder“. There, you can select the directories from the host that you want to be accessible from your virtual machine.