VMware Communities
aacees
Contributor
Contributor
Jump to solution

I can't seem to install Vmware. I tried other solutions with no success. Im using Ubuntu 20.04.3 LTS

 
 

I am trying to install the Vmware software in my system but the kernels it requires vmmon and vmmnet is not getting installed. I tried multiple things like installing build-essential & linux-headers-generic. I have installed libelf-dev. I tried using sudo vmware-modconfig --console --install-all as well.

i tried install vmware workstation 16. and workstation 15.5 as well both has same problem in my ubuntu.

I dont know if this is a right place to ask this question, if not, please do tell me where should i ask it. 

I am getting the error like this. snippet of log file.I have attached log files as well. Please help.

    2021-08-25T14:22:44.805-05:00| host-24205| I005:    39 | #define CR3_PCID_MASK 0xFFFull
2021-08-25T14:22:44.805-05:00| host-24205| I005:       | 
2021-08-25T14:22:44.805-05:00| host-24205| I005: /tmp/modconfig-1y58b9/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’:
2021-08-25T14:22:44.805-05:00| host-24205| I005: /tmp/modconfig-1y58b9/vmmon-only/linux/driver.c:1259:5: warning: "VMX86_DEVEL" is not defined, evaluates to 0 [-Wundef]
2021-08-25T14:22:44.805-05:00| host-24205| I005:  1259 | #if VMX86_DEVEL
2021-08-25T14:22:44.805-05:00| host-24205| I005:       |     ^~~~~~~~~~~
2021-08-25T14:22:44.805-05:00| host-24205| I005: At top level:
2021-08-25T14:22:44.805-05:00| host-24205| I005: /tmp/modconfig-1y58b9/vmmon-only/linux/driver.c:680:1: warning: always_inline function might not be inlinable [-Wattributes]
2021-08-25T14:22:44.805-05:00| host-24205| I005:   680 | LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min
2021-08-25T14:22:44.805-05:00| host-24205| I005:       | ^~~~~~~~~~~~~~~~~~~~~~~
2021-08-25T14:22:44.805-05:00| host-24205| I005: /tmp/modconfig-1y58b9/vmmon-only/linux/hostif.c: In function ‘isVAReadable’:
2021-08-25T14:22:44.805-05:00| host-24205| I005: /tmp/modconfig-1y58b9/vmmon-only/linux/hostif.c:2354:13: error: implicit declaration of function ‘get_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
2021-08-25T14:22:44.805-05:00| host-24205| I005:  2354 |    old_fs = get_fs();
2021-08-25T14:22:44.805-05:00| host-24205| I005:       |             ^~~~~~
2021-08-25T14:22:44.805-05:00| host-24205| I005:       |             sget_fc
2021-08-25T14:22:44.805-05:00| host-24205| I005: /tmp/modconfig-1y58b9/vmmon-only/linux/hostif.c:2354:13: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct <anonymous>’} from type ‘int’
2021-08-25T14:22:44.805-05:00| host-24205| I005: /tmp/modconfig-1y58b9/vmmon-only/linux/hostif.c:2355:4: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
2021-08-25T14:22:44.805-05:00| host-24205| I005:  2355 |    set_fs(KERNEL_DS);
2021-08-25T14:22:44.805-05:00| host-24205| I005:       |    ^~~~~~
2021-08-25T14:22:44.805-05:00| host-24205| I005:       |    sget_fc
2021-08-25T14:22:44.805-05:00| host-24205| I005: /tmp/modconfig-1y58b9/vmmon-only/linux/hostif.c:2355:11: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNEL_2_1’?
2021-08-25T14:22:44.805-05:00| host-24205| I005:  2355 |    set_fs(KERNEL_DS);
2021-08-25T14:22:44.805-05:00| host-24205| I005:       |           ^~~~~~~~~
2021-08-25T14:22:44.805-05:00| host-24205| I005:       |           KERNEL_2_1
2021-08-25T14:22:44.805-05:00| host-24205| I005: /tmp/modconfig-1y58b9/vmmon-only/linux/hostif.c:2355:11: note: each undeclared identifier is reported only once for each function it appears in
2021-08-25T14:22:44.805-05:00| host-24205| I005: /tmp/modconfig-1y58b9/vmmon-only/linux/hostif.c: In function ‘HostIFFastClockThread’:
2021-08-25T14:22:44.805-05:00| host-24205| I005: /tmp/modconfig-1y58b9/vmmon-only/linux/hostif.c:3248:12: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct <anonymous>’} from type ‘int’
2021-08-25T14:22:44.805-05:00| host-24205| I005:  3248 |    oldFS = get_fs();
2021-08-25T14:22:44.805-05:00| host-24205| I005:       |            ^~~~~~
2021-08-25T14:22:44.805-05:00| host-24205| I005: /tmp/modconfig-1y58b9/vmmon-only/linux/hostif.c:3249:11: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNEL_2_1’?
2021-08-25T14:22:44.805-05:00| host-24205| I005:  3249 |    set_fs(KERNEL_DS);
2021-08-25T14:22:44.805-05:00| host-24205| I005:       |           ^~~~~~~~~
2021-08-25T14:22:44.805-05:00| host-24205| I005:       |           KERNEL_2_1
2021-08-25T14:22:44.805-05:00| host-24205| I005: cc1: some warnings being treated 
Labels (4)
Reply
0 Kudos
1 Solution

Accepted Solutions
wila
Immortal
Immortal
Jump to solution

Hi,

Installing VMware Workstation on ubuntu 20.04 should be fairly straightforward, but ...

you really do need the very last version of VMware Workstation as the kernels get frequent updates and thus the kernel structures change. Which then causes the compile of the required kernel modules to fail.

Workstation 16.0.0 isn't the latest..
Workstation 16.1.2 is ...

Use this direct link to download the latest version:
https://www.vmware.com/go/getworkstation-linux

Good luck!

--
Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva

View solution in original post

1 Reply
wila
Immortal
Immortal
Jump to solution

Hi,

Installing VMware Workstation on ubuntu 20.04 should be fairly straightforward, but ...

you really do need the very last version of VMware Workstation as the kernels get frequent updates and thus the kernel structures change. Which then causes the compile of the required kernel modules to fail.

Workstation 16.0.0 isn't the latest..
Workstation 16.1.2 is ...

Use this direct link to download the latest version:
https://www.vmware.com/go/getworkstation-linux

Good luck!

--
Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva