Vmware-workstation installed in ubuntu15.04 (kernel 3.19)

Source: Internet
Author: User

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:
  1. Enter Mware module source code directory to modify related paths

    cd /usr/lib/vmware/modules/source
  2. Unzip the Vmnet modules.

    sudo tar -xvf vmnet.tar
  3. 使用你喜欢的文本编辑器打开vmnet-only/driver.csuch as: Gedit,vim,emacs, etc.

    sudo gedit vmnet-only/driver.c
  4. 267 lines are modified as follows:
  5. 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

  6. 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

  7. Save this file and open the vmnet-only/userif.c

        sudo gedit vmnet-only/userif.c    
  8. Near the
  9. 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  
  10. 保存文件,然后重新压缩

    sudo tar -uvf vmnet.tar vmnet-only
  11. 删除先前的解压后修改的文件
  12. sudo rm -r vmnet-only
  13. 再次运行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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.