As a developer, I’m always testing new apps, scripts and many other components, usually any of these things are pretty harmless but other could be quite destructive, in that case I cannot risk the stability of my main Windows machine (yeah, the word “stability” could also be a sarcasm) so… here is where a virtual machine can solve the problem.
In this example, I’m going to show you how to actually setup an Ubuntu Installation on VirtualBox, I will assume that you have Oracle VirtualBox installed (if not, you can grab it here and install it, easy as pie!!) and that you have an Ubuntu Desktop .iso file (you can grab it here).
1. Launch Oracle VirtualBox
The main screen is really simple in comparison to other virtualization tools like VMware Workstation.
2. Click on New and provide your virtual machine data
Once you click on New, the following questions will appear on screen (navigate all tabs):
- 1. Name your VM
- 2. Set the RAM
- 3. Create Virtual Disk
- 4. Choose Disk Storage Type
- 5. Choose Disk File Type
- 6. Choose Disk Size
- 7. Wait for completion
- 8. Check your new VM
- 9. Set the Ubuntu .iso
NOTE: You can navigate other options here, like increasing the amount of virtual processors, but it’s up to you.
3. Now that you have your VM ready, let’s install Ubuntu
Once you set the .iso in the right place, you can start your VM by clicking at the Start button at the main screen, then you will see the following action:
- 1. VirtualBox boot screen
- 2. Ubuntu Installation
- 3. Fixing some little details
- 4. You are ready to go!
Now run the following command on that terminal screen: sudo apt-get install build-essential virtualbox-guest-utils virtualbox-guest-x11 virtualbox-guest-dkms
Once you see that all packages are installed, reboot Ubuntu.
Now you have a virtual machine with Ubuntu, you can now use as you please and perform other virtualization tasks like:
- Increase/Decrease the resources of the VM.
- Share the VM with your teammates.
- Take snapshots of your VM. A snapshot is like moment in time of your virtual machine, like a Windows Restoration Point (but functional), it does store the complete VM structure and setting in that period of time, if you make your vm, so unstable you can go back in time with this snapshot.
- Add more virtual machine and create your own network. (You may need a powerful host machine for this)
Latest posts by Carlos Alberto Umanzor Arguedas (see all)