How to install a virtual machine [A step-by-step guide]
WHAT ARE VIRTUAL MACHINES(VM)?
A virtual machine is a type of software that acts like a computer inside of a computer. It allows one machine to run multiple different operating systems (OS).
HOW DOES IT WORK?
Just like any other regular computer, the simulated computer will need its hardware and its OS to be able to work.
Now, you do not have to buy extra hardware for the simulated computer. We will simply "borrow" from the device you have.
Next, the OS. The one you are currently running right now can be called the host OS, as it will be the one hosting the virtual machine. As you might have guessed, the OS that will be running on the VM will be called the guest OS, and this can be anything. Should you need to run OS X(used in Mac devices) while your host OS is Windows, you can, using a VM
Finally, for all of this to be possible, you will need a hypervisor. A hypervisor is like any application software you may have already installed on your device, but in this instance, it will allow use to run VMs.
WHY SHOULD I USE VMs?
VMs can help circumvent many of the issues and limitations of using 1 singular device.
1. It saves money
Should you need to run programs that may not be compatible with your host OS, you do not have to go out and purchase another device just for that one task. Again with the videogame example, your laptop cannot run games designed for the PSP, but instead of buying the physical device, you may run a PSP emulator instead.
2.It has no impact on your actual device.
Everything that happens in a VM, stays in the VM. This can be very useful should you want experiment with hacking or maybe to test the efficacity of a certain malware remover without running the risk of putting your actual device at risk. An infected VM will not affect your actual device whatsoever. You can simply delete it and move on.
3.You are interested in Cybersecurity
Very popular nowadays. A VM can allow you to access OS that are designed for ethical hacking much easier than, again, purchasing a device with the software installed. OS like Kali Linux are very popular among the white hat hacking community and even sites like tryhackme.com recommend using such software for their reliability and security.
HOW DO I SET ONE UP?
There are tons of ways and tons of OS to choose from, but for now, we will simply use VirtualBox as our hypervisor and run Kali Linux as our guest OS.
[OPTIONAL] ENABLE VIRTUALIZATION
Before all of that, you may need to set the Enable Virtualization setting on your BIOS if you want to use a 64-bit OS as your guest OS.
To do this, restart your device and press the appropriate key on startup to access BIOS. This key may differ based on the manufacturer of your device. For an ASUS laptop for instance, you have to hold the F2 Key.
Here is what my BIOS screen looks like;
I clicked on Advance Mode(pointed in red) and was given this screen.
Here I simply enabled Intel Virtualization Technology, shown in red. Then I saved and exited and we're ready to start.
GETTING THE HYPERVISOR
Here we will be using Oracle VM VirtualBox < https://www.virtualbox.org/ >
Click on the Downloads section and the appropriate host OS you have. In my case, it is Windows.
The installer should be downloading.
[Optional]You may also want to install the extension pack as well, to gain access to a myriad of features that we will cover in a future blogpost.
Once that is done, run the Virtual Box Installer. Accept any agreements and simply click on 'Next' until you see the 'Install' prompt.
Once installed, Virtual Box should be launched and you will find a screen like so.
[Optional] Then, you can run the extensions installer. You will be prompted with this screen, click 'Install'.
The hypervisor should be ready to go, but now we will need the guest OS to run the VM.
GETTING THE GUEST OS
Here, we will be using Kali Linux as our guest OS < https://www.kali.org/ >.
From here, click on Download and you will find this webpage.
Comments
Post a Comment