Setting up a Linux Operating System like Ubuntu can be a bit daunting, especially if you’re a firm Windows user with no Linux experience.

I’m glad you’re here starting your Linux journey! You won’t look back!

Ubuntu is generally accepted as the most beginner-friendly Linux OS.

Download Ubuntu and VirtualBox

Go to ubuntu.com to download the iso file, it has the entire operating system compressed into it.

Note the system requirements:

  • 2 GHz dual-core processor or better.
  • 4 GB system memory.
  • 25 GB of free hard drive space.

Your computer, aka host machine, will need to be above these to share resources with your Virtual Machine (VM). Why? You’ll run into a sluggish experience otherwise i.e. not enough juice in the tank!

Now grab VirtualBox for your current operating system (Windows, macOS or Linux) on your computer, I’ll be using Windows.

You don’t have to read all of it, but it’s good to know the VirtualBox User Manual has everything you need in case you run into issues.

Once downloaded, install VirtualBox by running the .exe file.

Virtual Machine Settings

Let’s get Ubuntu installed:

  1. Click new (the blue startup top) and name your VM, I recommend a logical naming convention like Ubuntu 1 and creating a new folder with the same name.
  2. Put it wherever you’d like, but I’d also recommend creating a VM root folder for any other VM you create.
  3. VirtualBox should detect what type and version depending on the name you give it. If it isn’t correct, use the drop-down options to select Linux and Ubuntu (64-bit).

  1. Set the Memory size, remember what the system requirements were? 4GB, so type 4000MB into the input field.

  1. Select Create in the Hard disk section, we don’t need to change anything here, press Next.
  2. VDI is fine for the Hard disk file type, select Next.
  3. Read the difference between Dynamically allocated and Fixed-size, I recommend Dynamic.
  4. Now for File location and size leave the file path default and scale up the size to at least 25GB to fit system requirements.

Insert Ubuntu ISO File

Great! Now your VM is ready to boot… or is it??

  1. If you hit Start a warning dialogue box should appear:

  1. This is where you select the Ubunutu iso file from back in step 1. Click the folder with the green up arrow, add and navigate to iso file.

  1. If the VM starts up and fails, close window and power off the machine.

  1. Now under the VM Storage settings, click Optical Drive Empty and follow step 2 above.

Now follow your nose from here, watch the prompts and check the settings, it’s straightforward.

Setup Guest Additions

Once your new Ubuntu VM is set up and ready to rock, it’s recommended to install VirtualBox’s Guest Additions. It’s optional software that gives some ‘nice to have features to make life easier.

To install, within VirtualBox select Devices (up the top of VM) and Insert Guest Additions CD image…

So now you’re set up and good to go! Thanks for reading and I hope this walkthrough has been easy to follow and helpful. If you have feedback, please send me a message via Twitter.

This is Day 1 of #100DaysOfHacking, subscribe to my weekly newsletter to see the learning journey!

Happy Hacking.