How to install linux in VirtualBox — techjustify.com

Techjustify
8 min readSep 20, 2021

--

You are passionate about the world of computer security and, after reading a lot of themed material, you have decided to start experimenting with one of the most suitable Linux distributions for this purpose: Kali Linux. Not having much practice with the “penguin” operating system, however, you would like to avoid — at least for the moment — installing it on your computer, in order to avoid damaging your data and the operating system you have used so far.

You have therefore thought of contacting a virtual machine manager and creating a “virtual PC” on which to install Kali Linux without affecting the “real” system of your PC: more specifically, you have discovered that VirtualBox is one of the best software of this type , as it is free and compatible with all the most popular desktop platforms (Windows, macOS and Linux), so you would like to learn how to use it.

How do you say? That’s exactly how things are and, therefore, would you like to know if I can help you find out how to install Kali Linux on VirtualBox? Yes, of course! On the contrary, let’s immediately ban the chatter and let’s start: by reading the guide that I am about to offer you, in a few minutes you will have acquired all the necessary skills to brilliantly achieve the goal you have set for yourself. Let it bet?

Index

  • How to install VirtualBox
  • How to install Kali Linux on VirtualBox
  • Installing Kali Linux from scratch
  • Kali Linux virtual machine import
  • How to use Kali Linux

How to install VirtualBox

If you have not yet installed VirtualBox on your computer, you can remedy this by connecting to its website and clicking on the Downloads item which resides in the left sidebar. Later, if you use a PC with a Windows operating system , click on the Windows Hosts link , wait for the software installation package to be downloaded to your computer and, when the download is complete, start it.

If you use a Mac, on the other hand, after connecting to the VirtualBox download page, click on the OS X hosts link, wait for the program .dmg package to be completely downloaded to your computer, and then start it. Subsequently, double-click on the VirtualBox.pkg package contained in the window that opens, click on the Continue button twice in a row, then on Install and, when prompted, enter the Mac administration password in the appropriate field and click on the Install button software.

Security Preferences

Now, click on the button Open the Security preferences, press on the padlock symbol at the bottom left and re-enter the Mac password, so that you can make changes to the settings; once authenticated, click on the Allow button next to the wording The system software has been blocked from loading by the developer “Oracle America, Inc”, close the System Preferences and click on the Close and Move buttons to complete the setup. Finally, start the program by calling it from the Launchpad or from the Applications folder of the Mac.

If you find it difficult to complete the installation of VirtualBox, I refer you to reading the tutorial that I dedicated to the subject, in which I have explained the previous steps in even more detail.

How to install Kali Linux on VirtualBox

At the time of writing this guide, it is possible to install Kali Linux on VirtualBox in two different ways: by carrying out an installation “from scratch”, ie by following all the steps necessary for the configuration and installation of the various components of the operating system (exactly as if you were working on a physical disk); or using a ready-made virtual machine , which can be imported into VirtualBox in just a few clicks.

Although this last mode of action is faster and, in some ways, even simpler, it “hides” all the steps preceding the execution of the operating system; furthermore, the virtual applications of Kali Linux may not always be updated to the latest version of the operating system.

So, if you intend to test with VirtualBox in view of a future installation of Kali Linux on your computer, I strongly advise you to opt for the installation procedure from scratch. Depending on the method of action of your interest, you will need to download a different installation file.

Installation from scratch -

In this case, you need the ISO image of the operating system (the same one you can use to install Kali Linux on a computer, so to speak). To download it, connect to this website and click on the link Kali Linux 64-Bit (Installer), if you want to install the 64-bit version, or Kali Linux 32-Bit (Installer) if, instead, you prefer to install Kali Linux 32-bit.

Ready-made virtual machine

in this case, you need to download the Kali Linux virtual application, in OVA format. To access this website, click on the Kali Linux Virtualbox Images box, and then on the link that best suits the type of operating system you have (64 or 32 bit).

Once the necessary files have been downloaded (they are very large and may take some time), you are ready to install Kali Linux on VirtualBox.

Installing Kali Linux from scratch

If you have opted for installing Kali Linux from scratch, you must first create a new virtual machine capable of hosting the operating system. Therefore, click on the New button located in the VirtualBox window, type Kali Linux in the name field and make sure that the Type and Version drop-down menus are set, respectively, to Linux and Debian (64-bit) (or Debian (32-bit), if you downloaded the 32-bit OS ISO).

Read Also : How to speed up your PC: slow computer/laptop what to do?

Now, click on the Next button and, using the displayed adjustment bar, set the amount of RAM to dedicate to the virtual machine; Note that Kali Linux can run smoothly on machines with 2GB (2048MB) of RAM, which you can increase for better performance. Be sure, however, never to set a virtual RAM value that is more than half the RAM actually installed on your computer.

Create Virtual Hard DIsk

Finally, here we are: to start the installation of Kali Linux, double-click on the name of the virtual machine you just created, in order to start it, then press the button in the shape of a yellow folder with the arrow, click on the Add button attached to the next screen and, using the File Explorer / Finder screen, select the Kali Linux ISO downloaded earlier. Now, click on its name and press the Choose and Start buttons, to start the virtual machine.

Components to install the kali Linux

Subsequently, select American English from the list of available languages, click on the Continue button, choose the American option again from those proposed and click on the Continue button. Now, select the keyboard mapping you have, press Continue again, and wait for Kali Linux to recognize the virtual disk and load the components needed to run the installer. At this stage, the operating system should be able to connect to the Internet.

Subsequently, if you deem it appropriate, change the hostname suggested by the system, click on the Continue button twice consecutively and proceed with the configuration of the main user account: type the full name in the box proposed on the screen, click on the Continue button and in the same way, define the username and password to be used to log in to the system (you have to type it twice).

Finally, here we are! If everything went smoothly, the actual installation of the operating system should start, which, depending on the performance you have reserved for the machine, could take a few minutes. To configure the Internet sources for updates and future package installations, press the Continue button twice in a row.

Installed Kali Linux

The installation is complete! Click on the Continue button for the last time and wait for the virtual machine to restart automatically: on the next boot, you should find yourself in front of the Kali Linux login screen. To log into the operating system, type the username and password specified above, each followed by pressing the Enter key .

Kali Linux virtual machine import

If you prefer to avoid the complete installation procedure of Kali Linux and prefer to use a ready-made virtual machine, do this: open the VirtualBox File menu (top left), select the Import virtual application item , click on the yellow folder symbol placed next to the File text box, select the previously downloaded OVA file and click on the button, located at the bottom right. Finally, click on the Import and Accept buttons and that’s it!

At this point, double-click on the newly created virtual machine, in order to start it, and wait for Kali Linux to start completely; once in the login screen, type the username kali, followed by pressing the Enter key, and repeat the operation with the password kali.

How to use Kali Linux

Once logged into Kali Linux for the first time, you can use the operating system like any other Linux distribution. Since this is an operating system mainly dedicated to penetration testing, there are numerous tools dedicated to the analysis of Wi-Fi networks and their security available within it.

All the tools in the distribution can be called up by accessing the Kali menu, located in the lower-left corner of the screen; to access the system settings, on the other hand, you have to click on the regulator’s icon, located near the clock, at the bottom right.

For more information, I invite you to read the in-depth guide that I have dedicated to this operating system: please, take a look at it at least!

We are always open to your problems, questions, and suggestions, so feel free to Comment on us by filling this. This is a free service that we offer, We read every message we receive. Tell those we helped by sharing our posts with friends or just liking to Follow us on Instagram, Twitter and join our Page or contact us on, Gmail, , etc

Originally published at https://techjustify.com on September 20, 2021.

--

--

Techjustify
Techjustify

Written by Techjustify

techjustify is a blogging and technology website about science, mobiles, gaming, entertainment gadgets, laptops, games, mobile etc https://techjustify.com/

No responses yet