我在 Ubuntu 上使用 VMWare Player 并在其上运行不同数量的虚拟机。
它一直工作到 14.10,当内核升级时,我会被要求重新编译模块等;但它不再适用于 Ubuntu 15.04。
问题是它在尝试重新编译“虚拟网络适配器”时失败。我该如何解决?
我有一个与(15.04 VMWare Player“无法启动服务”错误)非常相似的问题,因为无法编译模块。
这是我使用的终端命令:
root@LesserArk:~# uname -r
5.0.0-13-generic
root@LesserArk:~# man dkms
root@LesserArk:~# curl https://pastebin.com/raw/Z1ihzbcE -o /tmp/vmnet-3.19.patch
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1646 0 1646 0 0 4485 0 --:--:-- --:--:-- --:--:-- 4485
root@LesserArk:~#
root@LesserArk:~# cd /usr/lib/vmware/modules/source
root@LesserArk:/usr/lib/vmware/modules/source# tar -xf vmnet.tar
root@LesserArk:/usr/lib/vmware/modules/source# cd vmnet-only
root@LesserArk:/usr/lib/vmware/modules/source/vmnet-only# patch -p0 -i /tmp/vmnet-3.19.patch
(Stripping trailing CRs from patch; use --binary to disable.)
can't find file to patch at …Run Code Online (Sandbox Code Playgroud)