How to Install Genymotion & VirtualBox on Parrot OS

christine - May 24 '22 - - Dev Community

I’ve recently dived into the world of “hacking”. No, not the type of advanced hacking that you see in Watch Dogs or Mr. Robot, because I am a super noob/skiddie, and let’s be honest, cybersecurity is vast and difficult to get started in. So I thought, why don’t I document my progress or learning milestones by helping others with simple things whilst I climb the ranks from skiddie to “I now know how to not breakdown every time I use Burp Suite”. 😭

Hacking Gif

When you’re ready, grab your closest Red Bull and your favorite cool-guy shades, and let’s dive into this tutorial on how to install Genymotion & VirtualBox on Parrot OS.😎

First, let’s discuss why we would use Genymotion, and what VirtualBox is for. Genymotion is an Android emulator, meaning it emulates a mobile device via a VirtualBox (which allows us to run the Android OS on our operating systems). This emulation allows us to access real-time Android capabilities such as using the browser, downloading apps via the Play Store, or accessing the front/back camera — as we would with our actual device. We use device emulators for a variety of things, such as testing our Android apps that we made, or for android pen-testing. Now, a better method to test our apps is to use a rooted android device, and this requires a physical device, but that’s a tutorial on its own.

Now that we know what Genymotion and Virtualbox are used for, we can move on to the actual tutorial. Start up your Parrot OS system and open up your browser. Let’s first download Genymotion.

Genymotion Installation

First, we need to go to the Genymotion site and create an account. You need this account to be able to download and use Genymotion (obviously), so make sure you do that first. When you have done that, go to the following link and download the Linux (64-bit) version.

Genymotion Download

Once you have installed it, it will be in your Downloads folder. You can move this file to where you want Genymotion to install, but for this tutorial we will install it in our Downloads folder. Open up your terminal using CTRL + ALT + T (or ALT + T) and let’s cd into it.

Terminal

Terminal

When we list all our files in our Downloads directory we can see that the Genymotion download file is there, but it is not accessible as we cannot execute it. Remember, if you start typing the name of a file and press TAB, it will autofill, so save time using this.

Terminal

To change the file into an executable we use the command chmod +x and the filename. The chmod +x command adds x permission to a file or folder to change the file permission, thus making it executable.

Terminal

Once we have changed it into an executable, we can now list all directories again and we can see that we have a new file that is now executable!

Terminal

Let’s now install our Genymotion. To do this we simply say ./filename, which will be Genymotion. This will run the executable, and the installation will run.

Terminal

Now that Genymotion is installed, we can open it up in our Applications Menu underneath Programming. Click on it, and it will open, but oops, we get an error! This is where Virtbualbox comes in.

Error

VirtualBox Installation

To be able to use Genymotion, we need to install VirtualBox. Go to the following link, and download the relevant VirtualBox. I installed the Debian 11 version.

VirtualBox Download

Once it is installed, we need to move it to our Downloads folder to make things easier. To do this, just click on the folder icon in your Download history, and from there on move it to your Downloads.

Move to Downloads

Move to Downloads

Next, open up a new terminal using CTRL + ALT + T, and then you need to cd into your Downloads folder, just as before. From there on you need to run the sudo apt-get update command as stated in the documentation.

Terminal

Terminal

After you have run the update command, then we can install Virtualbox using the sudo apt install virtualbox command.

Terminal

Terminal

Voila, you have installed VirtualBox, and when we open up Genymotion again we can now see that it is working!

Genymotion

Genymotion Setup

Now that Genymotion and VirtualBox are installed, we can now sign in and get our first virtual device up and running.

Genymotion Setup

Genymotion Setup

Genymotion Setup

Genymotion Setup

Genymotion Setup

Genymotion Setup

Genymotion Setup

If you get an error here such as “VirtualBox cannot start the virtual device.”, you might need to enable your virtualization sections in your BIOS/UEFI.

Before we do that, we need to tell the newer version of GenyMotion to use the VirtualBox instance. Open up your GenyMotion settings, and navigate to Hypervisor. Underneath Hypervisor, change the version from QEMU to VirtualBox.

Genymotion Settings

Genymotion Settings

Then in your BIOS settings (I use VMWARE), ensure virtualization is enabled.

BIOS Settings

Now if you restart your machine, and you try and run your emulator, it should work!

Emulator

Okay, that’s a wrap. I hope that this tutorial helped you, and was not too complex. See ya’ next time!😊

(You can pull this post from my GitHub for future use)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .