Setting Up an Ubuntu VM
A virtual machine(VM) is the virtualization or emulation of a computer system. It’s a way to run a computer system such as windows or linux. You can use this to test new/other features, software, configurations, etc.
The linux distribution Ubuntu is usually a good first linux distro for most users as it has LTS(Long time support) has most drivers for hardware included or easy to obtain, and it usually stable. I usually go with Kubuntu as it has the K Desktop Environemtn (KDE) which is very lightweight so it won’t take up as many resouces with background processes, as well as it’s highly customizable to make it look and feel however you like..
VM software that is used to emulate other computer systems are VMWare Workstation Player (Free version), VMWare Workstation Pro (Paid version), or Virtualbox. I have VMWare Workstation Pro but Player works just as well. You can go with either VMWare or Virtualbox, both work and it just comes down to personal preference on the application and what you’re use to. There’s minor differences between the two for most end users.
Obviously your setup may differ depending on your system specs. I typically go with 4GB(4096 MB) of RAM per VM, 2 processors and 2 cores per processor but I have a bit beefier machine. If you need to, you can start with 4 or 8GB of RAM and 2 processors and 2 core per processor, for the install so it goes faster then drop it down to 2 or 4GB of RAM and 2 processors and 1 core per processor.
*buntu install
We will start with a typical configuration
Then install choose “I will install the Operating System Later”
Select Linux, then select the Ubuntu 64-bit version.
Name it and choose a location to store the VM files
Select the size of the VM. This will NOT the overall size, this is just the max size of the VMs HDD space and will fill up as we add more to the VM that takes up space.
If this VM will be on a PC and not be used from an external HDD or moved around you can store it as a single file but if you plan on using this VM on other PC or from an external HDD it’s a better idea to split it into multiple files.
Depending on your space, you can edit how much you want. I usually go 60GB or 80GB depending.
Finally we can now customize our hardware. This is where we can customize the RAM, Processors, ISO files, Network Settings, etc. This is where we select our Ubuntu ISO.
Now we close that and can start our VM and install it. This process will be VERY similar for each desktop environment just may look different. Once we start the VM, itll take us to a list, we can select the first option or just let it auto select it after 10 seconds.
So from here we select Install *buntu
Select language and keyboard layout
Make sure you tick ‘install third-party software for graphics…” and such to ensure this includes drivers you may need for your hardware.
As this is on a VM, this default option is ok for this.
Select Timezone
Setup the username, hostname, and password
Let the install finish
If it asks you to “Remove the installation media and press ENTER” just press ENTER
.
From here it will restart and you will be taken to a login screen. So login and ta-da!
Depending which Desktop Environment (DE) you chose, you’re may look different but that is ok, it’s still the same system under the hood.
Once we’re in, it’s a good idea to open the terminal, in Kubuntu it’s called Konsole
, and we update everything with:
sudo apt update && sudo apt upgrade -y
Now is when you will want to shut down the VM and adjust RAM and Processors if needed. Drop it for 2GB or 4GB of RAM and 1 or 2 processors.
From here you can explore and find things, change settings, and learn. I HIGHLY recommend creating a snapshot after you have this done and setup so that way you can always revert back to that snapshot if needed if something breaks or you just need to clean things up.