unc*_*ley 5 vmware virtualization
我已经在我的 Ubuntu 16.04(双展位)中安装了 VMware 包,没有问题。当我尝试运行它并尝试编译时,它会生成以下日志,但无法编译 vmmon:
...
2016-08-15T16:13:39.909+02:00| vthread-4| I125: Successfully extracted the vmmon source.
2016-08-15T16:13:39.910+02:00| vthread-4| I125: Building module with command "/usr/bin/make -j8 -C /tmp/modconfig-SUMBLV/vmmon-only auto-build HEADER_DIR=/lib/modules/4.4.0-34-generic/build/include CC=/usr/bin/gcc IS_GCC_3=no"
2016-08-15T16:13:40.934+02:00| vthread-4| W115: Failed to build vmmon. Failed to execute the build command.
Run Code Online (Sandbox Code Playgroud)
我已经开始在网络上搜索故障排除的问题,我已经改变了get_user_pages方法名get_user_pages_remote两个vmnet.tar和vmmon.tar在他们的目录,但一直没有解决的问题,vmmon仍然不会编译。
通过终端使用 gksudo 启动 VMware 时,我收到以下错误消息:
Starting VMware services:
Virtual machine monitor failed
Virtual machine communication interface done
VM communication interface socket family done
Blocking file system done
Virtual ethernet done
VMware Authentication Daemon done
Run Code Online (Sandbox Code Playgroud)
认为这将是与图形卡相关的问题,我已成功为我的图形卡安装了 NVidia 驱动程序,并在安装后启动时使用 MOK 管理实用程序禁用了安全启动。我还在我的 BIOS 中禁用了安全启动,它是一台华硕笔记本电脑。
我忘了使用 gksudo 安装 VMWare 包,我认为这不太可能是问题的根源,但为了准确起见,我会指出这一点。
内核版本为 4.4.0-34-generic。我读过应该由 VMWare 团队来修补这个内核版本,是否有快速修复来解决这个问题,或者我应该为 Virtualbox 拍摄并解决它?
我有一些我想从其他地方导入的虚拟机映像。
谢谢阅读。
小智 8
我遇到过同样的问题。这是修复程序转到文件夹
cd /usr/lib/vmware/modules/source
Run Code Online (Sandbox Code Playgroud)
使用 vmmon.tar 解压文件(您可能需要使用 su/sudo 来执行这些操作)
tar xf vmmon.tar
Run Code Online (Sandbox Code Playgroud)
编辑文件 ./vmmon-only/linux/driver.c
nano ./vmmon-only/linux/driver.c
Run Code Online (Sandbox Code Playgroud)
应用这些更改,由https://forums.gentoo.org/viewtopic-p-7841306.html#7841306在第 400 行左右,删除以 - 开头的行并添加以 + 开头的行(实际上不要将+)。有一种方法可以使用 patch 命令来做到这一点,但无论如何。如果您知道如何阅读补丁文件,您会看到该表单上的用户包含对另一个文件的另一项更改,但无需我执行此操作,一切都可以正常工作。
#ifdef VMX86_DEVEL
unregister_chrdev(linuxState.major, linuxState.deviceName);
#else
- if (misc_deregister(&linuxState.misc)) {
- Warning("Module %s: error unregistering\n", linuxState.deviceName);
- }
+ misc_deregister(&linuxState.misc);
Run Code Online (Sandbox Code Playgroud)
备份原件
mv vmmon.tar vmmon.tarbackup
Run Code Online (Sandbox Code Playgroud)
重新启动文件
tar cf vmmon.tar ./vmmon-only
Run Code Online (Sandbox Code Playgroud)
从这一点开始我有点不确定,因为我做了一些事情并且没有在每一步之后进行测试。所以这两个可能都不是绝对必要的。使用刚刚编辑的 driver.c 重新编译库
sudo vmware-modconfig --console --install-all
Run Code Online (Sandbox Code Playgroud)
运行 VMWare,告诉它使用你刚刚编译的库
sudo VMWARE_USE_SHIPPED_LIBS=yes vmwarex:
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
17054 次 |
| 最近记录: |