Installing Ubuntu 18.04 LTS as a Virtual Machine Using Oracle VirtualBox 5.2

Installing Ubuntu 18.04 LTS as a Virtual Machine Using Oracle VirtualBox 5.2

Installing Ubuntu 18.04 LTS as a Virtual Machine Using Oracle VirtualBox 5.2

Click here for visuals.

 

Prerequisites, Assumptions, & Requirements:

  • Installing a Virtual Machine
  • You have downloaded the .iso from ubuntu.com.
    • 18.04 LTS at the time of this tutorial.

The Install

  1. Boot to your install media.
  2. At the GNU GRUB screen, select Install Ubuntu.
  3. Choose your language and continue.
  4. Choose your default keyboard layout and continue.
  5. If you do not know what you want, it is best to have Normal Installation selected along with the checkbox for Download updates while installing Ubuntu then continue.
    • In my instance, I am doing a clean install over my old install of Ubuntu, but you should still select Erase disk and install Ubuntu if you plan on this being your only operating system and then continue.
  6. A prompt will come up asking if you are sure you would like to write the changes to the disk. Select Continue.
  7. Select your location based on your time zone and continue.
  8. Type in your name, desired username, password, & host name, and select install.
  9. It will now begin copying files and then start installing.
    • This process will take about 15-30 minutes depending on your setup.
  10. When the install is finished, you will be prompted to restart your computer. It will ask you to remove your install media and hit enter to reboot, so go ahead and unmount your .ISO or eject your USB/CD and hit enter.
  11. When it boots back up you will see the should see the time centered in the screen. Hit “Enter” on your keyboard to reveal your username.
  12. Click your username and type in the password you set during the installation.
  13. Once successfully logged in, you will be greeted with a short welcome tutorial by Ubuntu to highlight some features of the current release. Select Next.
  14. Live patch is optional, I personally don’t use it. Select Next.
  15. Here, I opt out of sending system data for the same reason why I don’t vote. Select Next.
  16. If you want to add extra software now the easy way, you can go ahead and do it here by opening up Software.
  17. If you happen to see a prompt for updating software, it’s safe to go ahead and do it now while you have a clean install.
  18. After all is said and done, you have now successfully installed Ubuntu.
Installing Windows 10 as a Virtual Machine Using Oracle VirtualBox 5.2

Installing Windows 10 as a Virtual Machine Using Oracle VirtualBox 5.2

Installing Windows 10 as a Virtual Machine Using Oracle VirtualBox 5.2

Click here for visuals.

 

Prerequisites, Assumptions, & Requirements:

  • You have a computer that supports Virtualization (required for 64-bit VMs).
  • You have an internet-enabled computer.
  • You have an ISO for an operating system you wish to install in a virtual machine. In this tutorial I demonstrate using Windows 10.

Download Oracle VirtualBox

  1. Start by opening up your favorite browser and going to https://www.virtualbox.org/
  2. On the left side of the screen go to Downloads.
  3. Download the platform package for your operating system.
  4. Download the Oracle VM VirtualBox Extension Pack.

Installing Oracle VirtualBox

  1. Launch the VirtualBox installer you just downloaded.
  2. On the starting screen, select Next.
  3. On the custom startup page that shows the features to be installed, leave everything default and select Next.
  4. On the next custom startup page that shows some extra options with checkboxes, leave them default and select Next.
  5. On the “Warning” page for the network interface, select Yes.
  6. Lastly, on the ready to install page, select Install.
    • During installation, a prompt will pop-up confirming you would like to install an Oracle virtual adapter of some sort. Select Yes.
  7. When finished you will be taken to the final screen saying thatcher install is complete. You can leave the checkbox checked an select Finish.
  8. Go back to your downloads and launch the extension pack you downloaded in the previous section. Select Install.
  9. Scroll down to the end of the license and select I Agree.
  10. Your VirtualBox is now installed with the extension pack.

Creating A Virtual Machine

  1. In the Oracle VM VirtualBox Manager, select New.
  2. Name your virtual machine and select the architecture. For this tutorial I named mine Windows 10 and selected Windows 10 (32-bit) but if your PC can install 64-bit, by all means go ahead and select Windows 10 (64-bit) and then select Next.
  3. Use the recommended memory size of 1024 MB (1 GB) for 32-bit or 2048 MB (2 GB) for 64-bit and select Next.
  4. Select the radio button for Create a virtual hard disk now and then select Create.
  5. To save space, select the radio button for “Dynamically allocated”. If you want some better disk performance when using your VM, select “Fixed size”. Once you have chosen, select Next.
    • Dynamically allocated will expand the size of your disk as needed. For example, you create a 60 GB disk and install Windows 10 on it, the actual size of the virtual disk on your PC will only take up ~22 GB (or however much you actually use in the VM) up to a max of 60 GB.
    • Fixed size will allow the virtual disk to take up all 60 GB of space on your hard drive even if you are not using it all. This does allow for better read and write performance in some situations.
  6. Here you can rename and resize the virtual disk, if desired. If you do not know what to resize your disk to, based on the operating system, it is best to leave it at the suggested default. For my 32-bit install of Windows 10, I resized my disk to 32 GB. Select Create when you are satisfied with your settings.
    • You should now see your virtual machine in a list in the Oracle VM VirtualBox Manager.

The Media Creation Tool

  1. Open up your favorite browser and google search “media creation tool”.
  2. The first listing should be “Download Windows 10 Disc Image (ISO File) – Microsoft”, select this link.
  3. When the page loads, under where it says “Create Windows 10 Installation Media” you should see a button that says “Download Tool Now”.
  4. Once downloaded, launch the media creation tool.
    • At the time of this tutorial, media creation tool 1803 is being used.
  5. Accept the notices and license terms.
  6. When it asks what you want to do, select the radio button for Create installation media (USB flash drive, DVD, or ISO file) for another PC and then select Next.
  7. Select your language, edition and architecture. If you do not know if you want to install 32 or 64 bit yet, select Both for architecture. Once you are satisfied with your choices, select Next.
  8. Select the radio button for ISO file and then select Next.
  9. Select a location where you would like to save your ISO. I saved mine to my downloads folder.
    • It will begin downloading Windows 10 now. Depending on your internet speed it could take anywhere from 10-45 minutes or maybe even more.
    • After it’s finished downloading it will begin to create the installation media. This could take around the same of. time as your download, depending on your hardware setup.
  10. When it has finished, it will ask if you would like to burn the ISO to a DVD. Select Finish.
    • The installer will take some time cleaning up the files it downloaded. This shouldn’t take too long.
  11. Go back to the Oracle VM VirtualBox Manager.
  12. Select your VM (virtual machine) you created earlier and select Settings.
  13. Navigate to Storage and select the Empty optical disc (CD)
  14. To the right of where it says “Optical Drive: SATA Port 1”, you should see a CD icon. Select that icon and select Choose Virtual Disk Optical Fileā€¦
  15. Navigate to where you saved your Windows 10 ISO, select it and then select Open.
    • You should now see your Windows 10 ISO in place of where you saw Empty before.
  16. Select OK to close out of your virtual machine’s settings.
  17. Make sure your VM is still selected (highlighted) and then select “Start”.

The Install

  1. Since there is no other boot option available, it should automatically load the Windows 10 setup.
    • If for some reason, it says press a key to load CD/DVD, click anywhere inside the VM and press any key.
    • You will notice later once you click inside a VM your mouse and keyboard get “captured” to only be used in that machine. To escape the virtual machine and use your mouse and keyboard elsewhere, hit the CTRL key on the right side of your keyboard. This is called the host button and it can be changed to your preference- but I will save that for another day.
  2. When the Windows Setup screen comes up, select your language, time & currency format, and keyboard language then select Next.
  3. Select Install Now.
  4. If you happen to have a product key, enter it here. While not required for testing/development environments like mine, it is required if you plan on putting this machine into production (if you plan on using it to make money by any means). Select I don’t have a product key if you do not plan on putting this virtual machine into production. Select Next if you have entered a valid product key.
  5. If you did not enter a product key, select your version of Windows 10 you would like to install and select Next. For this tutorial, I selected Windows 10 Home.
  6. Fill in the check box for I accept the license terms and select Next.
  7. Select Custom: Install Windows only (advanced).
  8. Select Drive 0 Unallocated Space and then select New.
  9. Leave the default size in MB and select Apply.
    • A popup will warn you it needs to create extra partitions, select OK.
  10. You will see 2 partitions if your VM is using a BIOS and 4 partitions if your VM is using EFI (with or without secure boot). Either way, you need to select the partition with the type Primary and then select Next. Windows is now installing.
    • The install itself will roughly take about 30-45 minutes, maybe more depending on your setup. Once finished, you will arrive at the Out-Of-Box-Experience (OOBE) setup.

OOBE Setup

  1. Select your region and then proceed.
  2. Select your keyboard layout and proceed.
  3. Add a second keyboard layout if you would like, otherwise proceed.
    • The setup is now getting ready for account setup. This will take approximately 5 minutes.
  4. You can sign in with your Microsoft account if you like. This can always be skipped and done at a later time. For the sake of this tutorial, I selected offline account.
  5. The next screen will ask you if you’re sure you don’t want to use a Microsoft account, click No if you want to continue with a local (offline) account.
  6. Type in your username and proceed.
  7. Type in your password and proceed.
    • Verify your password and then proceed.
  8. Set your 3 recovery questions and proceed.
  9. Select your preference for Cortana and proceed.
  10. Choose your privacy settings and proceed.
    • Windows will now begin finalizing your setup and you will be welcomed by your desktop when it has finished.

Pin It on Pinterest