CHAPTER 4:- Installing Kali Linux and Other Operating Systems on VB
Once the Virtual Box has been installed on your machine, you need not worry about
installing several operating systems on it. At the very beginning, we are interested
about installing Kali Linux on our Virtual Box. Go to the official Kali Linux web site and
download the ISO image of the latest stable version. Kali Linux is a much bigger Linux
distribution than other Linux distributions. It must be around 3 GB. Ubuntu and others
are around 1 GB or a little bit more.
Now once the installation process is over, you can either store it on your local
hard drive or burn it on a DVD. Now open up your Virtual Box and click “New”. It will
automatically open up a new window that will ask you what type of operating system you
are going to install. The following image is quite self-explanatory.
You see on the Virtual Box I have already installed two operating systems. One is Kali
Linux and the other is Windows XP. In your case, when you are going to install fresh, the
left panel of your virtual box will be empty.
The whole procedure is very explicit in itself. It will guide you to do what to do next.
Basically, on the Internet there are lots of illustrative guides that will help you do the same
thing. Now it is time to write down the name of the operating system you are about to
install. Next select the type (whether it is Linux or Windows, etc.) and the version. In the
long list of versions section you won’t find the name of Kali. But basically it is “Debian.”
So go ahead and select the 32-bit or 64-bit Debian according to your system architecture.
Click “next” and it will ask for the memory usage as it is shown in the next image.
You can allocate the memory size as per your machine capacity. Minimum 1 GB is
good. It is better if you can allocate more. In the next step it will ask for storage capacity
and a few other nitty-gritty things
I can assure you, as a complete beginner you won’t face any difficulty in installing
Kali Linux on your Virtual Box. The most important part of this installation process is
you need to keep your Internet connection running so that Kali Linux will adjust its
prerequisites accordingly online.
Usually when an operating system is installed on a virtual machine it comes up in a
small size and it stays like that. The next image will show you the original size.
But working on this size is really cumbersome. To solve this problem, normally
Virtual Box Guest Addition is used. But before that, you may want to update and upgrade
your newly installed Kali Linux. That is a good practice that helps you to be updated
all the time. After you have logged in typing username and password, you will find the
terminal on the left panel. Open it and type:
You must be online so that it will be updated on its own. It might take some time.
After it finishes off you issue the second command:
Normally the upgrading takes more time than updating. If you are a root user then
there should not be any problem. But if you have created another user and log in as that
user then you must type “su” command before. “su” stands for super user or root user
who is the administrator. It will ask for your super user password instantly. You give it and
it will work fine.
Let us come back to an old problem. The newly installed Kali Linux looks small in
size and you are obviously at a loss and you don’t know what to do. How will you get the
full screen view?
Here is a command that will rescue you from this problem and solve it. You need to
install one more package and upgrade your virtual machine again so that it gets the full
Open up the terminal and type:
apt-get update && apt-get install -y dkms linux-headers - $(uname -r)
This will install the necessary package that will run the Virtual Box Guest Addition. It
is something that you can imagine as a tool that controls the screen size of your host OS.
How will you run it once the package is installed? The next image will guide you to
find the place where you will get it.
Take your mouse pointer to the upper middle part where you will get the “Devices”
menu. The last one reads like this: “insert guest edition CD image.” Click it and it will
automatically take care of everything.
Normally it should work fine. If not, take it as a challenge. Search the Internet. There
are lots of helping hands waiting for you to assist what you want to get.
Now we are going to install Windows 7 Ultimate. The starting process is same. You
open the virtual box. Go to “new” and click. It will open up a window that will ask you
to type the name of the operating system you are going to install. Next it will ask for the
memory size. For Windows 7 Ultimate you need to allocate at least 2 GB. Bigger is better.
For the hard disk storage capacity, 50 GB is enough.
Now you are ready to connect to the ISO image of the OS.
This part is a little tricky, but any online guide will show you how you can connect
When you click the “storage” section of your Virtual Box it will pop open a window
that tells you to connect with the ISO image. It is not at all difficult. The advantage of
Virtual Box is if you fail to do some job it won’t affect your original machine.
When any new OS is installed on your virtual machine, it is usually small in size. But
there is a technique that will help you get the original full screen effect.
For Windows 7 Ultimate, there is a Virtual Box Guest Addition folder available in
the storage section. The blue-colored box comes with a label. It reads Virtual Box Guest
Additions. Just click on it. It will open up. It will contain several files. You will notice two
“.exe” files. One is for the 32-bit and the other is for the 64-bit system architecture. My
machine is 64 bit so I click and run it. The steps are very simple. It will ask for it to be
installed. Click OK and proceed. It will make your Windows 7 Ultimate virtual machine
state full screen.
We have successfully installed Virtual Box on our virtual machine and we have
installed Kali Linux and Windows 7 Ultimate on it. Now it’s time to move on.
What's Your Reaction?