2 minute read

virtualbox

VirtualBox Information

For penetration testing and capture the flag activities I use Kali as a VM within VirtualBox. There is a special VirtualBox image available from Offensive Security with some settings already pre-configured for you. See this guide on how to set up Kali 2020.2a with VirtualBox.

You can get the latest version of VirtualBox and it’s Extension pack here.

The following guide follows the steps to install VirtualBox on Windows 10 64bit. For anything other than that YMMV.

Installing VirtualBox

If you have VirtualBox installed, then skip this section, or use it as a reference to get yourself updated to the latest version. Once you’ve downloaded VirtualBox, run it and follow the wizard, then click Next:

virtualbox-welcome

On the custom setup page leave the defaults, unless you know what you’re doing to change them. Click Next:

virtualbox-custom-setup

Leave the default options selected, unless you have a reason to change them. Click Next:

virtualbox-custom-2

Whilst it installs the virtual networking you’ll be disconnected from the network briefly. Click Yes:

virtualbox-networking

That’s all there is to it for the basic setup. Click Install and wait for it to complete:

virtualbox-ready

It takes a while, be patient:

virtualbox-installing

Eventually you will get here:

virtualbox-complete

Click Finish to close the installer, and start VirtualBox. First thing to do is install the extensions pack. You can find information on what they are, and why you need them here..

From the main VirtualBox window click on File menu, choose Preferences (or press CTRL+G), then click on Extensions:

virtualbox-gui-extensions

Click on the green + on the right, and find the extensions file you downloaded earlier. There’s a brief explanation of what the pack gives you. Click Install:

virtualbox-install-extension

Read the license agreement. Click I Agree:

virtualbox-extension-agree-license

The Extension pack should now be installed:

virtualbox-extension-completed

You may get an error like this:

virtualbox-extension-failure

If you do it’s because VirtualBox was started with an account that isn’t local administrator on your device. Close the installer, close VirtualBox, and start it again running as administrator. Repeat the steps above to install the extension pack.

Upgrading Existing VirtualBox Extensions

If you are upgrading from a previous version of VirtualBox you’ll see this when you first open it:

virtualbox-extension-update

If you click Download it will check for the latest version and offer to download it for you:

virtualbox-extension-download

Once downloaded you’ll get prompted to install now, or you can cancel and do it later. Click Install:

virtualbox-extension-install

A final check, and then you are ready to upgrade the extensions. Click Upgrade:

virtualbox-extension-upgrade-older

Read the license agreement. Click I Agree:

virtualbox-extension-agree-license

As above, you may get this error:

virtualbox-extension-fail

If you do t’s because VirtualBox was started with an account that isn’t local administrator on your device. Close the updater, close VirtualBox, and start it again running as administrator:

virtualbox-running-as-admin

You should be back to same place as before, being asked to update the extensions. Follow the same steps:

virtualbox-extensions-done

Once completed, you get the opportunity to tidy up:

virtualbox-tidyup

That’s all there is to installing VirtualBox on Windows 10.

You can now follow this guide to install Kali 2020.2a as a VM within it.

Comments