“Vmware”的版本间差异
跳到导航
跳到搜索
无编辑摘要 |
|||
(未显示同一用户的5个中间版本) | |||
第1行: | 第1行: | ||
==解决在新版内核下编译vmware player内核模块错误== |
|||
VMware 10.0.1 modules & kernel 3.13 |
|||
错误提示:/tmp/modconfig-e1UexH/vmnet-only/netif.c:152:64: 错误:宏“alloc_netdev”需要 4 个参数,但只给出了 3 个 |
|||
Short story VMware Workstation kernels don’t compile correctly on Linux Kernel 3.13 located in the Fedora rawhide repo. |
|||
⚫ | |||
Here’s the module patch: (Updated: Thanks DanDar3) |
|||
⚫ | |||
⚫ | |||
sudo vim netif.c |
|||
;修改152行,dev = alloc_netdev(sizeof *netIf, deviceName, VNetNetIfSetup);改为dev = alloc_netdev(sizeof *netIf, deviceName, NET_NAME_UNKNOWN, VNetNetIfSetup); |
|||
cd .. |
|||
⚫ | |||
sudo tar cf vmnet.tar vmnet-only |
|||
vmplayer |
|||
;成功运行后,可以删除vmnet.tar.bak及vmnet-only文件夹 |
|||
[[文件:Vmnet313.patch|缩略图|vmnet313.patch]] |
|||
==fc23上出错== |
|||
*#Change directory into the vmware module source directory |
|||
参见知乎 https://www.zhihu.com/question/45115604?sort=created |
|||
⚫ | |||
*# untar the vmnet modules |
|||
==[[fedora 25]]安装vmware pro 12,启动出错== |
|||
⚫ | |||
错误信息: |
|||
*#run a the patch you should have just saved earlier |
|||
patch vmnet-only/filter.c < ~/vmnet313.patch |
|||
tmp/modconfig-LhcFS7/vmnet-only/userif.c:117:13: 错误:提供给函数‘get_user_pages’的实参太多 |
|||
*# re-tar the modules |
|||
retval = get_user_pages(addr, 1, 1, 0, &page, NULL); |
|||
⚫ | |||
*#delete the previous working directory |
|||
*找到/usr/lib/vmware/modules/source下, unpack vmmon.tar ( hostif.c )和 vmnet.tar ( userif.c ) |
|||
⚫ | |||
*find all get_user_pages function. |
|||
*#run the vmware |
|||
*Remove one parameter before "ppage" or "&page" |
|||
vmvare |
|||
*pack it back. |
|||
--- |
|||
'''有效license:AA3E0-0VDE1-0893Z-KGZ59-QGAVF |
|||
''' |
2017年3月1日 (三) 02:47的最新版本
解决在新版内核下编译vmware player内核模块错误
错误提示:/tmp/modconfig-e1UexH/vmnet-only/netif.c:152:64: 错误:宏“alloc_netdev”需要 4 个参数,但只给出了 3 个
cd /usr/lib/vmware/modules/source sudo tar xf vmnet.tar cd vmnet-only sudo vim netif.c
- 修改152行,dev = alloc_netdev(sizeof *netIf, deviceName, VNetNetIfSetup);改为dev = alloc_netdev(sizeof *netIf, deviceName, NET_NAME_UNKNOWN, VNetNetIfSetup);
cd .. sudo mv vmnet.tar vmnet.tar.bak sudo tar cf vmnet.tar vmnet-only vmplayer
- 成功运行后,可以删除vmnet.tar.bak及vmnet-only文件夹
fc23上出错
参见知乎 https://www.zhihu.com/question/45115604?sort=created
fedora 25安装vmware pro 12,启动出错
错误信息:
tmp/modconfig-LhcFS7/vmnet-only/userif.c:117:13: 错误:提供给函数‘get_user_pages’的实参太多 retval = get_user_pages(addr, 1, 1, 0, &page, NULL);
- 找到/usr/lib/vmware/modules/source下, unpack vmmon.tar ( hostif.c )和 vmnet.tar ( userif.c )
- find all get_user_pages function.
- Remove one parameter before "ppage" or "&page"
- pack it back.
--- 有效license:AA3E0-0VDE1-0893Z-KGZ59-QGAVF