This is because Ubuntu 15.04 uses Linux kernel 3.19, which brings changes to the networking API which VMWare player has not accounted for yet.
Note: version of VMWare Player used here is 7.1.x.
The solution is to apply the following patch to the vmnet driver:
diff --git a/driver.c b/driver.c
index 2e1e643..507a509 100644
--- a/driver.c
+++ b/driver.c
@@ -266,7 +266,7 @@ LinuxDriver_Ioctl32_Handler(unsigned int fd, // IN: (unused)
int ret = -ENOTTY;
if (filp && filp->f_op && filp->f_op->ioctl == VNetFileOpIoctl) {
- ret = VNetFileOpIoctl(filp->f_dentry->d_inode, filp, iocmd, ioarg);
+ ret = VNetFileOpIoctl(filp->f_path.dentry->d_inode, filp, iocmd, ioarg);
}
return ret;
}
@@ -1191,8 +1191,8 @@ VNetFileOpUnlockedIoctl(struct file *filp, // IN:
struct inode *inode = NULL;
long err;
- if (filp && filp->f_dentry) {
- inode = filp->f_dentry->d_inode;
+ if (filp && filp->f_path.dentry) {
+ inode = filp->f_path.dentry->d_inode;
}
err = VNetFileOpIoctl(inode, filp, iocmd, ioarg);
return err;
diff --git a/userif.c b/userif.c
index e68d4ce..b311f48 100644
--- a/userif.c
+++ b/userif.c
@@ -523,7 +523,9 @@ VNetCopyDatagram(const struct sk_buff *skb, // IN: skb to copy
.iov_base = buf,
.iov_len = len,
};
- return skb_copy_datagram_iovec(skb, 0, &iov, len);
+ struct iov_iter to;
+ iov_iter_init(&to, READ, &iov, 1, len);
+ return skb_copy_datagram_iter(skb, 0, &to, len);
}
For this:
- be root...
- make a backup copy of
/usr/lib/vmware/modules/source/vmnet.tar
somewhere;
- untar it in a temporary directory;
- apply the patch above (
cd vmnet-only && patch -p1 <path/to/the.patch && cd ..
);
- recreate the tar archive, overwriting the original (
tar cf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only
).
You can then restart VMWare player; the driver will compile and install.