Installing Linux Mint In VirtualBox

linuxmintlogo

 

Linux Mint is a Ubuntu-based distribution whose goal is to provide a complete out-of-the-box experience by including browser plugins, media codecs, support for DVD playback also because its Ubuntu-based, Linux Mint is compatible with Ubuntu repositories, Hell ” It’s my favourite distribution”.

This Post is going to run through Installing Mint 18 (Sarah) into VirtualBox. You can download Mint from here and I will assume that VirtualBox is already installed and ready to go. If VirtualBox is not already installed, check out my post on setting up a hacking lab.

So let’s get started by opening VirtualBox

 

Creating The Virtual Machine

Step 1

 

mintinstall

Once VirtualBox is open click New and you should be presented with the Create Virtual Machine Window. Start by giving your VM a Name, changing the type to Linux and as Mint is an Ubuntu-based system make sure the Version is set to Ubuntu (64-bit). Next, set the Memory size. The minimum system requirements state that it should be at least 512MB but I’m going with 2GB, make your choice depending on how much ram you have on your host machine, but it’s quite easy to change at a later date. Lastly, make sure Create a virtual hard disk now is selected and click Create.

 

Step 2

mintinstall2

Now we are Creating the Virtual Hard disk, First choose where you want to save the VM and select how large a hard disk you want to create, again like with the memory this all depends on how much space you have on your host, the minimum is 9GB. Select what type of Virtual Machine you would like to create, I’m going with VDI but you could just as easily create it as a VMDK if you wanted to use the same VM in VMWare. Make sure you click Dynamically allocated this will save on disk space if it is not needed.

 

Step 3

mintinstall4

Now your Virtual Machine is created right click it and click settings this should bring up the settings window, go to storage and select the CD icon that says empty then select the CD icon to the right,  you can now choose the Linux Mint ISO you download from the Linux Mint download page earlier. Then just click ok and you are now ready to fire the virtual machine and start installing Linux Mint.

 

Installing Linux Mint

Step 1

mintinstall5

If everything has been done right Linux Mint will start to Live boot into the OS.

 

Step 2

mintinstall6

you should get presented with a desktop just like this from here you can try out Linux Mint before actually installing anything onto the disk.

 

Step 3

mintinstall7

Click Install Linux Mint and in a few seconds, you should get an Install window pop up select your language and click Continue.

 

Step 4

mintinstall8

Now it’s going to ask us if we want to install the third-party software. Here I am going to click it but if your VM is kinda small or you would rather install them individually leave it unchecked.

 

Step 5

mintinstall9

It now wants to know how you want to partition your virtual hard disk as this is the only Operating system on this VM, just select Erase disk and install Linux Mint and click Install Now.

 

Step 6

mintinstall10

Next, you get a pop-up asking if you are sure you want to write the changes to disks just select Continue.

 

Step 7

mintinstall11

Select your location and click Continue…

 

Step 8

mintinstall12

..and then keyboard layout and click Continue.

 

Step 9

mintinstall13

Now It wants you to setup the user. Type your name, the name you want to give this VM then what username you want to login as. It does fill a lot of this out for you once you have typed something in the Your name field. then you just have to choose a password then confirm that password and click Continue.

 

Step 10

mintinstall14

It will now start to install Mint into our VM this takes about 5 – 10 minutes depending on how you configured your VM.

 

Step 11

mintinstall15

Once the Installation is complete just click Restart Now.

 

Step 12

mintinstall16

It will ask you to press enter to remove the installation media this is just so it boots off the hard disk and does not Live boot again.

 

Step 13

mintinstall17

After it reboots you should be presented with a login screen click your username and type your password you set in step 9.

 

Step 14

mintinstall18

And that is it, our VM is installed with Linux Mint all we have got left to do is upgrade everything to the latest version and install VirtualBox guest additions, this will get rid of that annoying pop-up “Running in software rendering mode”.

 

Updating and Upgrading

Step 1

mintinstall19

Open up a terminal and type sudo apt-get update && sudo apt-get upgrade. This updates all the repositories and upgrades Linux Mint. You will be asked to confirm the sudo command by typing in your password for your user.

 

Step 2

mintinstall20

if there is stuff to be upgraded you will be asked if you want to continue just type y and hit enter. You can also just add a -y to the end of the command in step 1 above.

 

Step 3

mintinstall21

The upgrade will take a while but when it finishes just type sudo reboot to refresh the VM and apply all the upgrades.

 

Installing VirtualBox Guest Additions

Step 1

mintinstalladditions

Start by clicking Devices at the top of your VirtualBox window and click insert guest additions CD image. You should then get this pop-up, just click cancel.

 

Step 2

mintinstall22

Open up a terminal and type…

cd /media/Your Username/VBOXADDITIONS Version/

then type ls and it should then list the contents of the CD.

now just type…

sudo ./VBoxLinuxAdditions.run

..and confirm your password it will start to install the guest additions but will state that you have a version of guest additions already installed just type yes and hit enter.

Once it’s finished just type sudo reboot to restart the VM.

 

Step 3

mintinstallvideo

lastly, shutdown your VM and right click it in VirtualBox, bring up the settings and once the Virtual Machines settings window is open, click Display and increase the video Memory to something greater than the 12MB standard and select the Enable 3D Acceleration tick box. click Ok and now when you restart the VM will be using full 3D Acceleration and the annoying software rendering pop-up should be gone.

 

Problems with host Video Card

minterror

I did get this issue with my VM after enabling 3D acceleration, which I spent ages trying to troubleshoot but I believe its to do with the latest driver for my intel EXTREAM Cough, cough Piece of shit Onboard Graphics Card, After buying a better card the error went away.

If you can’t replace the hosts’ video card or find a driver that works, just deselect the 3D acceleration checkbox in the display settings on the VM but Mr annoying software rendering message will return.

Leave a Reply

Your email address will not be published. Required fields are marked *