安装genymotion
后,事实证明genymotion
需要一些64位库,这些库在fedora 23
中不存在。
安装了它们,现在在尝试运行VirtualBox
时出现关于genymotion
的错误:
Unable to load VirtualBox engine.Make sure that it is properly installed before starting Genymotion.
我确定在安装
VirtualBox
时没有发生错误。无论如何,这是genymotion
的日志。Apr 7 18:32:00 [Genymotion] [Warning] **** STARTING GENYMOTION ****
Apr 7 18:32:00 [Genymotion] [Warning] Genymotion Version: Genymotion 2.6.0
Apr 7 18:32:04 [Genymotion] [Error] Network error while retrieving JSON content: 0
Apr 7 18:32:04 [Genymotion] [Error] [getGenymotionLastVersion] Bad request: "/launchpad/last_version/linux/x64/"
Apr 7 18:32:04 [Genymotion] [Error] Unable to get last Genymotion version number from server: 0
Apr 7 18:32:05 [Genymotion] [Warning] QIODevice::read: device not open
Apr 7 18:32:06 [Genymotion] [Error] [createHostOnlyInterface] Creating new host-only interface
Apr 7 18:32:06 [Genymotion] [Error] VBoxManage ("hostonlyif", "create") returns 1
Apr 7 18:32:06 [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 71 of file VBoxManageHostonly.cpp"
Apr 7 18:32:06 [Genymotion] [Error] [createHostOnlyInterface] Failed to create interface
Apr 7 18:32:06 [Genymotion] [Error] "Fail to load vboxmanage plugin from /opt/genymobile/genymotion/plugins/"
Apr 7 18:32:06 [Genymotion] [Error] VM Engine failed to load
Apr 7 18:32:06 [Genymotion] [Error] Unable to find VM Engine. Plugin loading aborted.
Apr 7 18:32:06 [Genymotion] [Warning] [LogCollector] Running "/opt/genymobile/genymotion/tools/glewinfo" with args ()
Apr 7 18:32:06 [Genymotion] [Warning] [LogCollector] Running "lsmod" with args ()
Apr 7 18:32:06 [Genymotion] [Warning] [LogCollector] Running "lspci" with args ()
Apr 7 18:32:06 [Genymotion] [Warning] [LogCollector] Running "ip" with args ("rule")
Apr 7 18:32:06 [Genymotion] [Warning] [LogCollector] Running "ip" with args ("route")
Apr 7 18:32:06 [Genymotion] [Warning] [LogCollector] Running "free" with args ()
Apr 7 18:32:06 [Genymotion] [Warning] [LogCollector] Running "ps" with args ("afx")
Apr 7 18:32:06 [Genymotion] [Warning] [LogCollector] Running "df" with args ("-kh")
Apr 7 18:32:06 [Genymotion] [Warning] [LogCollector] Running "dmesg" with args ()
Apr 7 18:32:06 [Genymotion] [Warning] [LogCollector] Running "cat" with args ("/proc/cpuinfo")
Apr 7 18:32:21 [Genymotion] [Error] **** STOPPING GENYMOTION WITH ERROR ****
Apr 7 18:32:21 [Genymotion] [Warning] **** STOPPING GENYMOTION ****
Apr 7 18:32:21 [Genymotion] [Error] [Stats] Can't open database: QSqlError("", "Driver not loaded", "Driver not loaded")
Apr 7 18:32:21 [Genymotion] [Warning] QSqlQuery::exec: database not open
Apr 7 18:32:21 [Genymotion] [Warning] [Stats] SQLite error: QSqlError("", "Driver not loaded", "Driver not loaded")
我是
Linux
和VirtualBox
的新手。 最佳答案
好的!找出问题所在。编写此答案,以便对其他有类似问题的人有所帮助。
问题出在virtualbox上,当genymotion运行它时,virtualbox需要指向内核。事实证明,我已经安装了必需的软件包,但与内核版本不同。因此,我要做的就是更新软件包。
virtualbox需要步骤2中的软件包,在安装它们之前更好地更新系统;确保系统自动下载这些软件包的适当版本。
1)更新内核/系统,
dnf update
2)安装以下软件包,
dnf install dkms gcc kernel-headers kernel-devel
引用:https://www.virtualbox.org/manual/ch02.html#install-linux-host