Try Out Linux With a Linux Virtual Machine

By | October 15, 2015

This post shows you how to set up a virtual machine so you can try out Linux without having to do a full install on your physical system.

A virtual machine simulates the computer hardware such as the storage, memory and processor and let’s you install an operating system directly to it.

So if you’ve heard about Linux, but aren’t sure you’re ready to install it on your system, then a virtual machine could be the thing for you.

VirtualBox

Download and Install Virtual Box

My preferred virtual machine software is VirtualBox which is available for Windows, OSX, Linux, and Solaris, and is relatively lightweight, and simple enough to install.

Download VirtualBox

Set Up The Virtual Machine

Once you have VirtualBox installed, you need to set up a virtual machine by setting its hardware and allocating resources.

Load up virtual box and hit “New” to create a  new machine. For now, just stick to the default settings.

Read a more detailed VirtualBox manual.

For now you can probably get away with accepting the default settings for your new virtual machine

For now you can probably get away with accepting the default settings for your new virtual machine

Pick your Operating System

Light Weight Linux

You can install any operating system onto your new virtual machine, but as it will be relatively low-powered, it normally makes sense to go with a light-weight Linux distribution such as Lubuntu (a light weight version of Ubuntu)

Download Lubuntu

Check out more light-weight Linux distribtutions

Install The Virtual Operating System

Once you’ve picked the Linux distribution you want to try out you will need to download the disk image (usually a “.iso” file).

Click on the virtual machine’s optical drive to load your Linux install disk image file

Click on the virtual machine's optical drive to load the disk image

Click on the virtual machine’s optical drive to load the disk image

and then just follow the normal install procedure of the operating system.

Get Help on Installing Lubuntu

Just follow the normal install procedure for your operating system

Just follow the normal install procedure for your operating system

Try Out Your New Linux Virtual Machine

Your new virtual machine should now be working just like a physical one – give it a go!

Try out your new Linux Virtual Machine

Try out your new Linux Virtual Machine

Setting Up A More Advanced Virtual Machine

I first encountered virtual machines for learning Linux on a Software Carpentry course, where it is used to make sure all the students on the course have the same system and software. You can find some excellent instructions for setting up the kind of virtual machine used in a software carpentry course here which includes instructions for how to create virtual machine with a shared clipboard and shared folders with your physical machine, as well as automatically installing a number of useful programming tools and utilities.

Find out how to setup a more advanced virtual machine.