NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.23k stars 13.5k forks source link

Genymotion can't find virtualbox #79440

Open eoli3n opened 4 years ago

eoli3n commented 4 years ago

Describe the bug When starting genymotion, it complains about the fact that it doesn't find virtualbox engine.

To Reproduce

Expected behavior Working genymotion

Screenshots genymotion

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 4.19.100, NixOS, 20.03pre211190.a21c2fa3ea2 (Markhor)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.2`
 - channels(root): `"nixos-20.03pre211190.a21c2fa3ea2"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: genymotion
# a list of nixos modules affected by the problem
module:
eoli3n commented 4 years ago

$HOME/.Genymobile/genymotion.log

févr. 7 13:48:08 [Genymotion] [Debug] Proxy configuration: no proxy used
févr. 7 13:48:08 [Genymotion] [Debug] Host date and time: "07 Feb 2020 13:48:08 +0100"
févr. 7 13:48:08 [Genymotion] [Debug] Proxy configuration: no proxy used
févr. 7 13:48:08 [Genymotion] [Debug] "Local socket created at path : /tmp/907f397a1f5a71abaaa526042f58a1b0"
févr. 7 13:48:08 [Genymotion] [Warning] ****  STARTING GENYMOTION  ****
févr. 7 13:48:08 [Genymotion] [Warning] Genymotion Version: Genymotion "2.8.0"
févr. 7 13:48:08 [Genymotion] [Debug] [LaunchpadApp] Started with ("/run/current-system/sw/bin/genymotion")
févr. 7 13:48:08 [Genymotion] [Debug] [doRequest] Requesting:  "https://cloud.genymotion.com/launchpad/last_version/linux/x64/"
févr. 7 13:48:08 [Genymotion] [Debug] [doRequest] done
févr. 7 13:48:08 [Genymotion] [Debug] [getGenymotionLastVersion] New version ( "3.0.4" ) available here: "https://dl.genymotion.com/releases/genymotion-3.0.4/genymotion-3.0.4-linux_x64.bin"
févr. 7 13:48:08 [Genymotion] [Debug] Last version of Genymotion is  "3.0.4"
févr. 7 13:48:08 [Genymotion] [Debug] Loading "vboxmanage" plugin
févr. 7 13:48:08 [Genymotion] [Debug] Plugin "vboxmanage" loaded
févr. 7 13:48:08 [Genymotion] [Debug] Chipset: "GenuineIntel"
févr. 7 13:48:08 [Genymotion] [Debug] CPUID 0x1 (Intel): ECX= "7ffafbff"
févr. 7 13:48:08 [Genymotion] [Debug] [VBoxManageCore] Path: "VBoxManage"
févr. 7 13:48:09 [Genymotion] [Debug] VBoxManage ("list", "hostinfo") returns 0
févr. 7 13:48:09 [Genymotion] [Debug] [System properties] Online physical CPU number: 4
févr. 7 13:48:09 [Genymotion] [Debug] [System properties] Online virtual CPU number: 4
févr. 7 13:48:09 [Genymotion] [Debug] CPU number is > 8 - Fix max number to 8
févr. 7 13:48:09 [Genymotion] [Debug] [System properties] Max CPU number: 8
févr. 7 13:48:09 [Genymotion] [Debug] [System properties] Max memory size: 15910
févr. 7 13:48:09 [Genymotion] [Debug] [findHostOnlyInterface] Looking for compatible host-only interface
févr. 7 13:48:09 [Genymotion] [Debug] VBoxManage ("list", "hostonlyifs") returns 0
févr. 7 13:48:09 [Genymotion] [Debug] [createHostOnlyInterface] Creating new host-only interface
févr. 7 13:48:09 [Genymotion] [Error] VBoxManage ("hostonlyif", "create") returns 1
févr. 7 13:48:09 [Genymotion] [Error] Output command: "0%...
Progress state: NS_ERROR_FAILURE
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 94 of file VBoxManageHostonly.cpp"
févr. 7 13:48:09 [Genymotion] [Error] [createHostOnlyInterface] Failed to create interface
févr. 7 13:48:09 [Genymotion] [Error] "Fail to load vboxmanage plugin from /nix/store/8aj8n1labdg3x59mg4sdmv730i18wpgh-genymotion-2.8.0/libexec/genymotion/plugins/"
févr. 7 13:48:09 [Genymotion] [Error] VM Engine failed to load
févr. 7 13:48:09 [Genymotion] [Error] Unable to find VM Engine. Plugin loading aborted.
févr. 7 13:48:09 [Genymotion] [Debug] [LogCollector] VM engine not available
févr. 7 13:48:09 [Genymotion] [Debug] [LogCollector] Creating temporary folder: "/tmp/genymotion-logs-tmp"
févr. 7 13:48:09 [Genymotion] [Debug] [LogCollector] Copying file "/home/user/.config/VirtualBox/VBoxSVC.log" to "/tmp/genymotion-logs-tmp/general-VBoxSVC.log"
févr. 7 13:48:09 [Genymotion] [Debug] [LogCollector] Copying file "/home/user/.config/VirtualBox/VBoxSVC.log.1" to "/tmp/genymotion-logs-tmp/general-VBoxSVC.log.1"
févr. 7 13:48:09 [Genymotion] [Debug] [LogCollector] Copying file "/home/user/.config/VirtualBox/VBoxSVC.log.2" to "/tmp/genymotion-logs-tmp/general-VBoxSVC.log.2"
févr. 7 13:48:09 [Genymotion] [Debug] [LogCollector] Copying file "/home/user/.config/VirtualBox/VBoxSVC.log.3" to "/tmp/genymotion-logs-tmp/general-VBoxSVC.log.3"
févr. 7 13:48:09 [Genymotion] [Debug] [LogCollector] Copying file "/home/user/.config/VirtualBox/VBoxSVC.log.4" to "/tmp/genymotion-logs-tmp/general-VBoxSVC.log.4"
févr. 7 13:48:09 [Genymotion] [Debug] [LogCollector] Copying file "/home/user/.config/VirtualBox/VBoxSVC.log.5" to "/tmp/genymotion-logs-tmp/general-VBoxSVC.log.5"
févr. 7 13:48:09 [Genymotion] [Debug] [LogCollector] Copying file "/home/user/.config/VirtualBox/VBoxSVC.log.6" to "/tmp/genymotion-logs-tmp/general-VBoxSVC.log.6"
févr. 7 13:48:09 [Genymotion] [Debug] [LogCollector] Copying file "/home/user/.config/VirtualBox/VBoxSVC.log.7" to "/tmp/genymotion-logs-tmp/general-VBoxSVC.log.7"
févr. 7 13:48:09 [Genymotion] [Debug] [LogCollector] Copying file "/home/user/.config/VirtualBox/VirtualBox.xml" to "/tmp/genymotion-logs-tmp/general-VirtualBox.xml"
févr. 7 13:48:09 [Genymotion] [Warning] [LogCollector] Running "/nix/store/8aj8n1labdg3x59mg4sdmv730i18wpgh-genymotion-2.8.0/libexec/genymotion/tools/glewinfo" with args ()
févr. 7 13:48:09 [Genymotion] [Warning] [LogCollector] Running "lsmod" with args ()
févr. 7 13:48:09 [Genymotion] [Warning] [LogCollector] Running "lspci" with args ()
févr. 7 13:48:09 [Genymotion] [Warning] [LogCollector] Can't run command "lspci"
févr. 7 13:48:09 [Genymotion] [Warning] [LogCollector] 0
févr. 7 13:48:09 [Genymotion] [Warning] [LogCollector] Running "ip" with args ("rule")
févr. 7 13:48:09 [Genymotion] [Warning] [LogCollector] Running "ip" with args ("route")
févr. 7 13:48:09 [Genymotion] [Warning] [LogCollector] Running "free" with args ()
févr. 7 13:48:09 [Genymotion] [Warning] [LogCollector] Running "ps" with args ("afx")
févr. 7 13:48:09 [Genymotion] [Warning] [LogCollector] Running "df" with args ("-kh")
févr. 7 13:48:09 [Genymotion] [Warning] [LogCollector] Running "dmesg" with args ()
févr. 7 13:48:09 [Genymotion] [Warning] [LogCollector] Running "cat" with args ("/proc/cpuinfo")
févr. 7 13:48:09 [Genymotion] [Debug] [LogCollector] Copying file "/home/user/.Genymobile/genymotion.log" to "/tmp/genymotion-logs-tmp/general-genymotion.log"
févr. 7 13:48:09 [Genymotion] [Debug] [archiveDirectory] Archive created under "/home/user/genymotion-log.zip"
févr. 7 13:48:09 [Genymotion] [Debug] [LogCollector] Removing temporary folder: "/tmp/genymotion-logs-tmp"
févr. 7 13:48:10 [Genymotion] [Error] **** STOPPING GENYMOTION WITH ERROR ****
févr. 7 13:48:10 [Genymotion] [Warning] ****  STOPPING GENYMOTION  ****
veprbl commented 4 years ago

cc @puffnfresh

eoli3n commented 4 years ago

@etu @Infinisil @teto @alexameen ? https://github.com/NixOS/nixpkgs/pull/62109

stale[bot] commented 4 years ago

Hello, I'm a bot and I thank you in the name of the community for opening this issue.

To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human.

The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it.

If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them.

Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel.

fermuch commented 3 years ago

I've just stumbled upon this bug. Is there a workaround or a fix?

melg8 commented 3 years ago

I've encountered same bug.

SkyLeite commented 2 years ago

This is caused by incorrectly installed virtualbox. Following the instructions in the wiki worked for me. https://nixos.wiki/wiki/VirtualBox

stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info

tagamma commented 1 year ago

Still having this issue

stealthswor commented 1 year ago

also having this issue along with #82959.

stealthswor commented 1 year ago

This is caused by incorrectly installed virtualbox. Following the instructions in the wiki worked for me. https://nixos.wiki/wiki/VirtualBox

Virtualbox starts up fine for me so that isnt the problem.