Linux Virtual Machines

Table of Contents

Ubuntu Desktop VM

Setting up an Ubuntu desktop for use

VirtualBox steps

Begin by clicking on the button in the upper left hand corner to create a new virtual machine

Create a New Virtual Machine
New Virtual Machine

Now you're going to be asked what opperating system to use for the new virtual machine. You will also need to name your machine in this step to differentiate it from your other virtual machines. In this set of the notes I'm going to go over the creation of a Ubuntu desktop virtual machine and for the sake of the notes I'm going to name it test.

Name and Choose System
Name Virtual Machine

The next step will be to determine the amount of ram you want the virtual machine to be able to access. Of my 8 gb of ram I have decided to allow the vm to use 2 gb in case I still want to use the main operating system at the same time.

Name and Choose System
Name Virtual Machine

Virtualbox will then ask if we want to create a new virtual disk or use an existing one. Most often a new disk will be made the only exception being if trying to used the same virtual machine on different computers and you want the same harddrive to be used.

Create New Virtual Harddrive
Create Virtual Harddrive

The filetype for the disk needs to be determined next. Since I don't use vmware or any other virtual machine software, I'm just going to leave the file type as vdi.

Choose Virtualdisk Filetype
Choose Virtualdisk Filetype

Virtualbox now needs to know if you want the new virtualdisk to expand as needed or if you want to leave it at a fixed value. I chose dynamically sized as I've had trouble with fixed size in the past and dynamically sized ones are easier to expand later if necessary.

Choose Virtualdisk Storage Type
Choose Virtualdisk Storage Type

Now the size and location of the virtualdisk is decided. I have marked the button for relocating the new virtualdisk. Also I changed the harddrive size to 10 gb.

Choose Virtualdisk Storage Size
Choose Virtualdisk Storage Size

The virtual machine should now be made and you're ready to run the install of the operating system.

Additional Options

Use a different ip address

Access USB ports

Install Ubuntu

To begin the install of Ubuntu on the new virtual machine, start up the new virtual machine.

Start the New Virtual Machine
Start Virtual Machine

The next step is to click the icon to browse your files for the Ubuntu desktop iso file. This will allow the virtual machine to boot up using Ubuntu. Once you've selected the iso file click start.

Select the ISO File
Find iso File

Now comes the time to actaully install Ubuntu on the new virtaul machine. We'll be selecting install ubuntu instead of try Ubuntu.

Install Ubuntu
Install Ubuntu

I'm going to make it go ahead and download updates while installing to possibly save time later. Other than that go ahead and click continue.

Install Ubuntu Step 1
Install Ubuntu Step 1

Now we're going to go ahead and install ubuntu. Don't worry about it's warning about erasing the disk because it will be contained with the newly created virtual harddrive which has nothing on it yet anyways.

Install Ubuntu Final Step
Install Ubuntu Final Step

Simply click continue and let the install begin.

Change Disk Warning
Change Disk Warning

This step is self explanitory. Go ahead and select your time zone and then continue on.

Time Zone Selection
Time Zone Selection

Select the keyboard language setup for your use. Being in the US I don't have to change the defaults and can simply continue on to the next step.

Keyboard Language Selection
Keyboard Language Selection

The last step will be to set up the user account you will be using for the Ubuntu system. Putting in your name will automatically fill in the next two text boxes. Set your password and decided whether or not you want your system to automatically log in when started or if you want it to prompt you for your password. After hitting continue the install should begin.

User Setup
User Setup

Fullscreen

Setting up vim

Setting up Python

pip

virtualenv

kivy

Cython

Pygame

Other Important Libraries

Git