GENYMOTION on Ubuntu 16.04
I wanted to install Genymotion to Ubuntu 16.04 to run NativeScript apps on android simulator. First of all I installed Oracle Virtualbox , then Genymotion. But when I start the Genymotion it failed with the following error message.
This error message doesn’t provide much details about the issue. But when I open the genymotion.log (vi ~/.Genymobile/genymotion.log ), that has the root cause for this issue.
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: “RTEXITCODE handleCreate(HandlerArg*)” at line 71 of file VBoxManageHostonly.cpp”
Jan 25 22:32:40 [Genymotion] [critical] [VBox] [createHostOnlyInterface] Failed to create interface
When you start Genymotion very first time, it is trying to create a “Host-only Network” in Virtualbox. That process going to fail if your system has enabled the “Secure Boot”.
I did the following steps to resolve that issue.
1. Restart the machine and logged into the BIOS settings (Press F1 while rebooting the machine).
2. Under the “Security” tab “Disabled” the “Secure Boot”.
After that, I was able to start the Genymotion on Ubuntu.