Install the latest version of the linux15.04 installation Vmware-workstation11, when running the GUI program appears, the VMware Kernel Module Update Prompt window, said to update Vmnet-device.
Click Install to show that installing the Vmnet component is not successful!
Workaround:
Enter Mware module source code directory to modify related paths
cd /usr/lib/vmware/modules/source
Unzip the Vmnet modules.
sudo tar -xvf vmnet.tar
使用你喜欢的文本编辑器打开vmnet-only/driver.c
such as: Gedit,vim,emacs, etc.
sudo gedit vmnet-only/driver.c
267 lines are modified as follows:
if (Filp && filp->f_op && filp->f_op->ioctl = = Vnetfileopioctl) {
ret = Vnetfileopioctl (filp->f_dentry->d_inode, Filp, Iocmd, ioarg); }return ret;
Change to: #ifLinux_version_code < Kernel_version (3, 19, 0)if(Filp && filp->f_op && Filp->f_op->ioctl = =vnetfileopioctl) {ret = Vnetfileopioctl (filp->f_dentry->D_inode, Filp, Iocmd, ioarg); } returnret; #else if(Filp && filp->f_op && Filp->f_op->ioctl = =vnetfileopioctl) {ret = Vnetfileopioctl (filp->f_path.dentry->D_inode, Filp, Iocmd, ioarg); } returnret; #endif
1194 Nearby,修改如下:
if (Filp && filp->f_dentry) { inode = filp->f_dentry->d_inode; err = vnetfileopioctl (inode, Filp, Iocmd, ioarg); return err;
More for:#if Linux_version_code < Kernel_version (3, 0)if (Filp && filp->f_dentry) { = filp-& gt;f_dentry->= vnetfileopioctl (inode, Filp, Iocmd, ioarg); return err; #else if (Filp && filp->f_path.dentry) { = filp->f_path.dentry->= Vnetfileopioctl (Inode, Filp, Iocmd, ioarg); return err; #endif
-
Save this file and open the vmnet-only/userif.c
sudo gedit vmnet-only/userif.c
- Near the
-
526 Line, modify the following:
return Skb_copy_ Datagram_iovec (SKB, 0 , &iov, Len);
Changed to:
#if Linux_version_code < kernel_version (3, 0) return Skb_copy_datagram_iovec (SKB, 0 , & iov, Len); #else struct Iov_iter To;iov_iter_init ( &to, READ, &iov, 1 return skb_copy_datagram_iter (SKB, 0 , &to, Len); #endif
保存文件,然后重新压缩
sudo tar -uvf vmnet.tar vmnet-only
删除先前的解压后修改的文件
sudo rm -r vmnet-only
再次运行
The GUI (Workstation or Player) appears after the Elevation box point install and then lets it create related components.
Vmware-workstation installed in ubuntu15.04 (kernel 3.19)