在Ubuntu上安装Vmware工作站时出错

我试图在Ubuntu 14.04上安装vmware工作站10.1,我得到以下错误。

我如何解决它 ?

在此处输入图像描述

在此处输入图像描述

Virtual machine monitor done Virtual machine communication interface done VM communication interface socket family done Blocking file system done Virtual ethernet failed VMware Authentication Daemon done 

要解决此问题,我们需要将此修补程序应用于VMware Player模块源中的filter.c。

第1步

在tmp目录名称filter.c.diff中创建一个文件并复制粘贴以下代码init。

nano /tmp/filter.c.diff

 205a206 > #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) 206a208,210 > #else > VNetFilterHookFn(const struct nf_hook_ops *ops, // IN: > #endif 255c259,263 < transmit = (hooknum == VMW_NF_INET_POST_ROUTING); --- > #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) > transmit = (hooknum == VMW_NF_INET_POST_ROUTING); > #else > transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING); > #endif 

第2步

 sudo -E -s cd /usr/lib/vmware/modules/source/ cp vmnet.tar vmnet.tar.original tar xvf vmnet.tar vmnet-only/filter.c patch vmnet-only/filter.c < /tmp/filter.c.diff tar -uvf vmnet.tar vmnet-only/filter.c rm -rf vmnet-only/ 

之后只需运行vmware即可正常运行。

  Starting VMware services: Virtual machine monitor done Virtual machine communication interface done VM communication interface socket family done Blocking file system done Virtual ethernet done VMware Authentication Daemon done Shared Memory Available done 

注意:您还需要输入.vmware目录,否则您的vmware更改将无法保存

 sudo chown -R one:one .vmware 

其中一个是我的用户名, 一个是我的组。 sudo chown -R $USER:$USER .vmware

救命

解决Ubuntu 14.10内核3.17.2上的问题

第1步

 curl http://pastie.org/pastes/9636106/download -o /tmp/vmware-3.17.patch 

第2步

重建模块,提取模块源:

 cd /usr/lib/vmware/modules/source for i in vmci vmmon vmnet vsock; do tar -xf $i.tar; done 

第3步

应用补丁:

  patch -p1 -i /tmp/vmware-3.17.patch 

第4步

重新创建档案:

 for i in *-only; do tar -cf ${i/-only}.tar $i; done 

第5步

删除剩菜:

 rm -r *-only 

第6步

重建模块:

 vmware-modconfig --console --install-all 

救命

要解决Ubuntu 14.x内核3.19.x上的问题,请以Root(在终端中)运行以下步骤:

  1. 以root身份登录(例如sudo -s)

  2. 输入您的Root密码。

  3. 输入以下命令:

 curlhttp://pastie.org/pastes/9934018/download -o /tmp/vmnet-3.19.patch
 cd / usr / lib / vmware / modules / source
 tar -xf vmnet.tar
 patch -p0 -i /tmp/vmnet-3.19.patch
 mv vmnet.tar vmnet.tar.SAVED
 tar -cf vmnet.tar vmnet-only
 rm -r vmnet-only
 vmware-modconfig --console --install-all 

我刚遇到同样的问题。 您还可以创建一个包含以下内容的脚本:

 #!/bin/bash cat << EOF > /tmp/filter.c.patch --- vmnet-only/filter.c 2013-10-18 15:11:55.000000000 -0400 +++ vmnet-only/filter.c 2013-12-21 20:15:15.000000000 -0500 @@ -27,6 +27,7 @@ #include "compat_module.h" #include  #include  +#include  #if COMPAT_LINUX_VERSION_CHECK_LT(3, 2, 0) # include  #else @@ -203,7 +204,11 @@ #endif static unsigned int +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) VNetFilterHookFn(unsigned int hooknum, // IN: +#else +VNetFilterHookFn(const struct nf_hook_ops *ops, // IN: +#endif #ifdef VMW_NFHOOK_USES_SKB struct sk_buff *skb, // IN: #else @@ -252,7 +257,12 @@ /* When the host transmits, hooknum is VMW_NF_INET_POST_ROUTING. */ /* When the host receives, hooknum is VMW_NF_INET_LOCAL_IN. */ - transmit = (hooknum == VMW_NF_INET_POST_ROUTING); + +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) + transmit = (hooknum == VMW_NF_INET_POST_ROUTING); +#else + transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING); +#endif packetHeader = compat_skb_network_header(skb); ip = (struct iphdr*)packetHeader; EOF cd /usr/lib/vmware/modules/source # untar the vmnet modules tar -xvf vmnet.tar #run a the patch you should have just saved earlier patch vmnet-only/filter.c < /tmp/filter.c.patch # re-tar the modules tar -uvf vmnet.tar vmnet-only #delete the previous working directory rm -rf vmnet-only 

只需确保以root身份运行它。 然后再次启动VMWARE,它应该编译并再次运行。

感谢http://fazlearefin.blogspot.ca/2014/03/vmware-workstation-10-not-working-on.html创建此脚本。

在Linux 3.3.13上运行时,这也是VMware Player 6.0.1提供的内核模块源代码中的一个问题。

VMware已于4月17日在VMware Player 6.0.2( https://www.vmware.com/support/player60/doc/player-602-release-notes.html )和VMware Workstation 10.02( https:// )中修复了此问题。 http://www.vmware.com/support/ws10/doc/workstation-1002-release-notes.html )。

升级到上述版本将增加对VMware的Ubuntu 14.04的支持。

的Mikkel