Grub Installation Failed Kali Linux Install On Virtualbox

Figure 4.17 Install the GRUB Boot Loader on a Hard Disk. In this step (Figure 4.18, “Device for Boot Loader Installation ” page 84), you must select which device GRUB will be installed on. This should be your current boot drive. Figure 4.18 Device for Boot Loader Installation. By default, the boot menu proposed by GRUB shows all the. Step by step guide – How to install Kali Linux on VMware May 11, 2020 by Eshita Mann In this post, I will show you how to install the latest version of Kali Linux (2020.1b) on VMware Workstation 15.5 Pro. This will allow you to have a Kali virtual.

LinuxIf you are testing the waters in the infosec industry, then you might find yourself in need of a plethora of tools and services. Understandably, you don’t want to pollute your main desktop OS with bloated packages and unnecessary directories. So let’s install Kali Linux as a VM using VirtualBox and make sure it can be put to use on your LAN for pentesting and other purposes.

To get your copy of Kali Linux, visit their official site and get a copy which comes with a GUI preferably. We are choosing the stock option, which is listed on the top.

When trying to install Kali Linux on Windows 10 in VirtualBox. You see an error: An installation step failed. You can try to run the failing item again from. Aug 05, 2020 I tried installing Kali Linux with the exact instructions from this page. Most of the other guides have almost the same set of instructions when it comes to installing Kali on VirtualBox, but unfortunately I am getting errors while installing Kali with my Windows 10 version 1903.


The file is nearly 3 GB in size and it might take a while to download. Once the iso is downloaded, we are ready to install it inside a VM.

Creating a VM

Open VirtualBox manager on your host. Click on the “New” button from the top left corner. In the “Create Virtual Machine” window, give your VM a reasonable name. We are choosing the name “KaliVM”. Select the Type as “Linux” and Version as “Debian (64-bit)”. Also allocate a sizeable amount of RAM to this VM. Anything above 2GB would result in a decent performance. Lastly, for storage select the “Create a virtual hard disk now” option as shown below and click “Create”.

Kali recommends a minimum disk size of 20GB, and for practical purposes you would want something larger than 40GB in size. Select a size that works for you, when creating your Virtual Disk.

Keep the hard disk file type as VDI and set the it to be dynamically allocated. By doing this, your VM will not take up the entire allocated size at once but would rather grow gradually as and when it needs more space. Click “Create” one last time and the VM is created.

Before starting the installation, you may also want to tweak the VM’s settings. Just right click on the VM and select Settings. Go to Systems tab on the Settings menu and there select the Processor tab.

Increase the number of processors to a reasonable amount so the VM performs better. Also, if you plan on using the VM to deal with the traffic flowing through the LAN to which your host is connected, you can go to Network tab and select Bridge Networking so that your VM shows up on your local DHCP server as a physical device like any other desktop, phone or tablet.

That is all there is to VM setup, let’s install Kali OS on top of this VM.

Kali Installation

Open up VirtualBox manager and double click on KaliVM to boot it up. Since the Virtual Hard Disk doesn’t have an OS installed on it, it is not bootable yet. VirtualBox will prompt us to select a bootable media to boot the VM with.

Using the file explorer window that pops up, locate the Kali ISO file that you downloaded earlier.

Then click on Start to boot the installation media. In the Boot Menu select the Graphical Install option for a simple and hassle free installation experience and hit Enter.

Next few prompts would select language preferences, keyboard layout and your location as shown below:

Select your language and click on Continue.

Select your preferred location.

Kali

Lastly, select your keyboard layout. If unsure, stick with the American English option.

After clicking on Continue some of the installer components and networking configs will get loaded. This might take a while. Once that is done, you will be asked to enter a hostname and a domain name. We are using kalivm as our hostname.

And we are using kalivm.local as the VM’s domain name.

Next you would be prompted for root password. Enter a secure password for your root user and re-enter it to confirm the change and Continue to the next window.

Select the time zone that is relevant to your previously chosen location.

And we can move on to selecting and partitioning the hard disk.

Since we are using a single newly created virtual hard disk, there is no data to be lost in there, additionally, we are not going to dual-boot or use LVM so partitioning is going to be relatively easy.

Select the “Guided – use entire disk” option and Continue. You will be shown the information of all the hard disk’s connected to the VM (which in our case is only one).

Select the only hard disk that appears there, as shown below:

Grub Installation Failed Kali Linux Install On VirtualboxLinuxGrub installation failed kali linux install on virtualbox 8

Lastly, select the first option where a single partition (other than a swap partition) would be created.

And accept the changes that would be made to your virtual hard disk by click on Finish Partitioning option and Continue.

You will be prompted one last time to say “yes” to the changes. Once you do that the installation would begin. This might take a while so be patient. You will be prompted thrice in this process. Once to select a package mirror, to which you should say yes. This helps keep all your apt packages up to date.

Next would be an option to install GRUB on your local hard drive. Say yes to this as well.

And select your virtual hard disk where the GRUB boot loader would be installed, in the next prompt. Next would be an option to setup a proxy. If you are unsure whether or not you use a proxy, leave it empty.

Once you are done with the installation. It will ask you to remove the live OS media and restart the system. Thankfully, VirtualBox will remove the iso for you so you don’t have to worry about that.

Upon rebooting you will be greeted with your new Kali Linux environment. Login as root user with the password you chose before.

There you go! You are now ready to begin your journey exploring Kali Linux.

Let us know if you found tutorial helpful or if you have any new requests that you might want us to cover.

If your System has primary OS Windows then you install your secondary OS Kali Linux. That will be ok, Kali Linux put boot entry of Window automatically for you. At initial boot menu you can see both OS entry to boot their those OS individually.

May be your window is corrupt in dual boot system or you want to install window as secondary OS after installing Kali Linux as primary OS. You may face corrupt boot-loader menu. You not able to boot Kali Linux any more because Window didn’t put entry of Kali Linux automatically in their boot menu.

So this post motive is to help those guys which are facing those problems subjecting to corrupt Boot-loader. There are mainly two methods:

1. Repair Grub via Kali Linux live USB.

2. Repair Grub Via Boot-rapair-disk.

Method 1# Repair Grub via Kali Linux live USB

It is up to you which you want to choose but if you are Linux familiar then go for this method.

Requirements

1. A Kali Linux ISO image. You can download here:

2. You need to create a Kali Linux pre-installed live CD or Live USB. You can click following link for more help to create live USB or CD-DVD.

Procedure to repair Grub of Kali Linux

Step 1. Boot your live USB via pressing boot menu button on initial stage of booting your system. Select “Live” option.

Grub Installation Failed Kali Linux Install On Virtualbox 7

Step 2. Boot into Live Kali Linux, get the Terminal open. Type the following commands:

mount /dev/sda3 /mnt
mount –bind /dev /mnt/dev
mount –bind /dev/pts /mnt/dev/pts
mount –bind /proc /mnt/proc
mount –bind /sys /mnt/sys
chroot /mnt
grub-install /dev/sda
update-grub
exit
umount /mnt/dev/pts
umount /mnt/dev
umount /mnt/proc
umount /mnt/sys
umount /mnt

Step 3. Now reboot the system, you will see your boot-menu showing Window and Kali Linux both simultaneously.

Most of the time Kali Linux grub is repaired by above steps but exceptionally you may not, so you have to do more commanding.

Step 4. Boot the Live Kali Linux again, open the terminal type the following commands:

Grub Installation Failed Kali Linux Install On Virtualbox 10

apt-get install os-prober
os-prober
update-grub

This will help a lot to repair Kali Linux Grub. Good-luck!

Method 2# Repair Grub Via Boot-rapair-disk

It is up to you which you want to choose but if you are not Linux familiar then go for this method.

Requirements

1. A Boot-repair-disk ISO image. You can download here:

2. You need to create a Boot-repair-disk pre-installed in live CD or Live USB. You can click following link for more help to create live USB or CD-DVD.

Procedure to repair Kali Linux Grub

Boot into Live USB by pressong boot-button at initial stage of booting the system.

After that, it is all automated. As soon as you boot into this live disk, it will automatically begin mounting all your file systems and looking for grub. Once it is located, it will be restored automatically and at the end a message will be displayed to you.

Grub Installation Failed Kali Linux Install On Virtualbox Download

So if you are someone who isn’t all that thrilled about typing commands on a Linux terminal in the method I discussed previously, this ISO is for you.