VMware Communities
debugger_man
Contributor
Contributor

ubuntu 22.04 install vm workstation error

Spoiler
Extracting VMware Installer...done.
Installing VMware VMX 16.2.3
Configuring...--- Logging error ---
Traceback (most recent call last):### ] 51%
File "/tmp/vmis.wkxNfq/install/vmware-installer/python/lib/logging/__init__.py", line 1082, in emit
stream.write(msg + self.terminator)
UnicodeEncodeError: 'ascii' codec can't encode character '\u2018' in position 947: ordinal not in range(128)
Call stack:
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmware-installer.py", line 694, in <module>
main(options)
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmware-installer.py", line 536, in main
txn.Install(options.installComponent,
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/core/transaction.py", line 687, in Install
RunTransaction(actions, options)
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/core/transaction.py", line 414, in RunTransaction
RunThreadedTransaction(txn, actions)
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/core/transaction.py", line 472, in RunThreadedTransaction
txn.Run()
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/core/transaction.py", line 78, in Run
self.get()()
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/core/common.py", line 156, in Show
wrap(i.PostTransaction, txn.opts['ignoreErrors'])
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/util/__init__.py", line 26, in wrap
func(*args, **kwargs)
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/core/install.py", line 308, in PostTransaction
self._installer.PostTransactionInstall(**self.args)
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/core/remoteinstaller.py", line 94, in PostTransactionInstall
return self.MessageOut(self.whoami(), old, new, upgrade)
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/core/remoteinstaller.py", line 387, in MessageOut
retval = vmispy.RunExternalMethod(self._remoteUID, 0, strio.getvalue().decode('latin-1'))
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/core/installer.py", line 122, in MessageIn
self.proxyObject.MessageIn(uid, str)
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/core/remoteinstallerops.py", line 403, in MessageIn
ret = method(*args, **kwargs)
File "<string>", line 364, in PostTransactionInstall
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/core/installer.py", line 40, in Info
return self.installer.Log('info', *args, **kwargs)
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/core/installer.py", line 335, in Log
return self.proxyObject.Log(logType, *args, **kwargs)
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/core/remoteinstallerops.py", line 159, in Log
return self.MessageOut(self.whoami(), logType, *args, **kwargs)
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/core/remoteinstallerops.py", line 485, in MessageOut
retval = vmispy.RunExternalMethod(0, self._UID, strio.getvalue().decode('latin-1'))
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/core/remoteinstaller.py", line 301, in MessageIn
ret = method(*args, **kwargs)
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/core/installer.py", line 335, in Log
return self.proxyObject.Log(logType, *args, **kwargs)
File "/tmp/vmis.wkxNfq/install/vmware-installer/vmis/core/localinstallerops.py", line 241, in Log
ltype(*args, **kwargs)
Message: 'stderr: [AppLoader] Use shipped Linux kernel AIO access library.\nAn up-to-date "libaio" or "libaio1" package from your system is preferred.\n[AppLoader] GLib does not have GSettings support.\nUsing kernel build system.\n/tmp/modconfig-GBXM8A/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Free() falls through to next function PhysTrack_Add()\n/tmp/modconfig-GBXM8A/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Add() falls through to next function PhysTrack_Remove()\n/tmp/modconfig-GBXM8A/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Remove() falls through to next function PhysTrack_Test()\nIn file included from /tmp/modconfig-GBXM8A/vmmon-only/./include/x86desc.h:33,\n from /tmp/modconfig-GBXM8A/vmmon-only/./include/modulecall.h:34,\n from /tmp/modconfig-GBXM8A/vmmon-only/common/task.c:60:\n/tmp/modconfig-GBXM8A/vmmon-only/common/task.c: In function \u2018TaskRestoreHostGDTTRLDT\u2019:\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant\n 67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \\\n | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \\\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 69 | sizeof(expr) <= 2))\n | ~~~~~~~~~~~~~~~~~~ \n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro \u2018ASSERT_ON_COMPILE\u2019\n 372 | _Static_assert(e, #e); \\\n | ^\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:263:7: note: in expansion of macro \u2018ASSERT_ON_COMPILE_SELECTOR_SIZE\u2019\n 263 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \\\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/common/task.c:726:7: note: in expansion of macro \u2018SET_TR\u2019\n 726 | SET_TR(tr);\n | ^~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant\n 67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \\\n | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \\\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 69 | sizeof(expr) <= 2))\n | ~~~~~~~~~~~~~~~~~~ \n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro \u2018ASSERT_ON_COMPILE\u2019\n 372 | _Static_assert(e, #e); \\\n | ^\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:129:7: note: in expansion of macro \u2018ASSERT_ON_COMPILE_SELECTOR_SIZE\u2019\n 129 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \\\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/common/task.c:728:7: note: in expansion of macro \u2018SET_LDT\u2019\n 728 | SET_LDT(ldt);\n | ^~~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant\n 67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \\\n | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \\\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 69 | sizeof(expr) <= 2))\n | ~~~~~~~~~~~~~~~~~~ \n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro \u2018ASSERT_ON_COMPILE\u2019\n 372 | _Static_assert(e, #e); \\\n | ^\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:263:7: note: in expansion of macro \u2018ASSERT_ON_COMPILE_SELECTOR_SIZE\u2019\n 263 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \\\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/common/task.c:751:10: note: in expansion of macro \u2018SET_TR\u2019\n 751 | SET_TR(tr);\n | ^~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant\n 67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \\\n | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \\\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 69 | sizeof(expr) <= 2))\n | ~~~~~~~~~~~~~~~~~~ \n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro \u2018ASSERT_ON_COMPILE\u2019\n 372 | _Static_assert(e, #e); \\\n | ^\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:129:7: note: in expansion of macro \u2018ASSERT_ON_COMPILE_SELECTOR_SIZE\u2019\n 129 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \\\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/common/task.c:761:7: note: in expansion of macro \u2018SET_LDT\u2019\n 761 | SET_LDT(ldt);\n | ^~~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/common/task.c: In function \u2018Task_Switch\u2019:\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant\n 67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \\\n | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \\\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 69 | sizeof(expr) <= 2))\n | ~~~~~~~~~~~~~~~~~~ \n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro \u2018ASSERT_ON_COMPILE\u2019\n 372 | _Static_assert(e, #e); \\\n | ^\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:215:7: note: in expansion of macro \u2018ASSERT_ON_COMPILE_SELECTOR_SIZE\u2019\n 215 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \\\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:228:22: note: in expansion of macro \u2018SET_SEGREG\u2019\n 228 | #define SET_SS(expr) SET_SEGREG(ss, expr)\n | ^~~~~~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/common/task.c:2620:13: note: in expansion of macro \u2018SET_SS\u2019\n 2620 | SET_SS(kernelStackSegment);\n | ^~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant\n 67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \\\n | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \\\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 69 | sizeof(expr) <= 2))\n | ~~~~~~~~~~~~~~~~~~ \n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro \u2018ASSERT_ON_COMPILE\u2019\n 372 | _Static_assert(e, #e); \\\n | ^\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:215:7: note: in expansion of macro \u2018ASSERT_ON_COMPILE_SELECTOR_SIZE\u2019\n 215 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \\\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:224:22: note: in expansion of macro \u2018SET_SEGREG\u2019\n 224 | #define SET_DS(expr) SET_SEGREG(ds, expr)\n | ^~~~~~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/common/task.c:2716:10: note: in expansion of macro \u2018SET_DS\u2019\n 2716 | SET_DS(ds);\n | ^~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant\n 67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \\\n | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \\\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 69 | sizeof(expr) <= 2))\n | ~~~~~~~~~~~~~~~~~~ \n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro \u2018ASSERT_ON_COMPILE\u2019\n 372 | _Static_assert(e, #e); \\\n | ^\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:215:7: note: in expansion of macro \u2018ASSERT_ON_COMPILE_SELECTOR_SIZE\u2019\n 215 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \\\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:225:22: note: in expansion of macro \u2018SET_SEGREG\u2019\n 225 | #define SET_ES(expr) SET_SEGREG(es, expr)\n | ^~~~~~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/common/task.c:2717:10: note: in expansion of macro \u2018SET_ES\u2019\n 2717 | SET_ES(es);\n | ^~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant\n 67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \\\n | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \\\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 69 | sizeof(expr) <= 2))\n | ~~~~~~~~~~~~~~~~~~ \n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro \u2018ASSERT_ON_COMPILE\u2019\n 372 | _Static_assert(e, #e); \\\n | ^\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:215:7: note: in expansion of macro \u2018ASSERT_ON_COMPILE_SELECTOR_SIZE\u2019\n 215 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \\\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:226:22: note: in expansion of macro \u2018SET_SEGREG\u2019\n 226 | #define SET_FS(expr) SET_SEGREG(fs, expr)\n | ^~~~~~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/common/task.c:2725:10: note: in expansion of macro \u2018SET_FS\u2019\n 2725 | SET_FS(fs);\n | ^~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant\n 67 | ASSERT_ON_COMPILE(sizeof(Selector) == 2 && \\\n | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 68 | ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \\\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n 69 | sizeof(expr) <= 2))\n | ~~~~~~~~~~~~~~~~~~ \n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro \u2018ASSERT_ON_COMPILE\u2019\n 372 | _Static_assert(e, #e); \\\n | ^\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:215:7: note: in expansion of macro \u2018ASSERT_ON_COMPILE_SELECTOR_SIZE\u2019\n 215 | ASSERT_ON_COMPILE_SELECTOR_SIZE(expr); \\\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/./include/vm_asm_x86.h:227:22: note: in expansion of macro \u2018SET_SEGREG\u2019\n 227 | #define SET_GS(expr) SET_SEGREG(gs, expr)\n | ^~~~~~~~~~\n/tmp/modconfig-GBXM8A/vmmon-only/common/task.c:2726:10: note: in expansion of macro \u2018SET_GS\u2019\n 2726 | SET_GS(gs);\n | ^~~~~~\nmake[2]: *** [scripts/Makefile.build:285: /tmp/modconfig-GBXM8A/vmmon-only/common/task.o] Error 1\nmake[2]: *** Waiting for unfinished jobs....\nmake[1]: *** [Makefile:1875: /tmp/modconfig-GBXM8A/vmmon-only] Error 2\nmake: *** [Makefile:117: vmmon.ko] Error 2\nUsing kernel build system.\n/tmp/modconfig-GBXM8A/vmnet-only/hub.c:237:24: warning: argument 1 of type \u2018uint8[]\u2019 {aka \u2018unsigned char[]\u2019} with mismatched bound [-Warray-parameter=]\n 237 | VNetHub_AllocPvn(uint8 id[]) // IN: the PVN ID to alloc on\n | ~~~~~~^~~~\nIn file included from /tmp/modconfig-GBXM8A/vmnet-only/hub.c:43:\n/tmp/modconfig-GBXM8A/vmnet-only/vnetInt.h:173:34: note: previously declared as \u2018uint8[20]\u2019 {aka \u2018unsigned char[20]\u2019}\n 173 | VNetJack *VNetHub_AllocPvn(uint8 id[VNET_PVN_ID_LEN]);\n | ~~~~~~^~~~~~~~~~~~~~~~~~~\n/tmp/modconfig-GBXM8A/vmnet-only/hub.c:261:20: warning: argument 3 of type \u2018uint8[]\u2019 {aka \u2018unsigned char[]\u2019} with mismatched bound [-Warray-parameter=]\n 261 | uint8 id[]) // IN: PVN ID to use (NULL if allocPvn == FALSE)\n | ~~~~~~^~~~\n/tmp/modconfig-GBXM8A/vmnet-only/hub.c:68:37: note: previously declared as \u2018uint8[20]\u2019 {aka \u2018unsigned char[20]\u2019}\n 68 | uint8 id[VNET_PVN_ID_LEN]);\n | ~~~~~~^~~~~~~~~~~~~~~~~~~\n/tmp/modconfig-GBXM8A/vmnet-only/driver.c: In function \u2018VNetFileOpUnlockedIoctl\u2019:\n/tmp/modconfig-GBXM8A/vmnet-only/driver.c:966:7: warning: this statement may fall through [-Wimplicit-fallthrough=]\n 966 | {\n | ^\n/tmp/modconfig-GBXM8A/vmnet-only/driver.c:976:4: note: here\n 976 | case SIOCGETAPIVERSION:\n | ^~~~\nSkipping BTF generation for /tmp/modconfig-GBXM8A/vmnet-only/vmnet.ko due to unavailability of vmlinux\nUnable to install all modules. See log for details.\n\n'
Installing VMware Workstation 16.2.3
Configuring...
[######################################################################] 100%

terminal post the same error after i change gcc version to gcc-9。

but the ubuntu 20.04 not post the same error  

20 Replies
gclayburg
Contributor
Contributor

This worked for me as well.  In  my case, I upgraded ubuntu to 22.04 and ran into this issue when I tried to launch vmware player.  I was running version 16.2.1 of vmware player before the ubuntu upgrade.  After the ubuntu upgrade, vmware player would launch, but complain about missing kernel modules.  There is a button to click in the gui to recompile, but that failed.  The fix described in this thread worked!  I can at least launch vmware player without the show stopping error.  Of course, once I launch vmware player, it prompts me to upgrade to the latest 16.2.5.  A quick check of the release notes shows that the error of compiling kernel modules for ubuntu 22.04 has been fixed with version 16.2.4. yay!  So maybe if you were to upgrade to vmware player 16.2.4 or later BEFORE upgrading to ubuntu 22.04 you wouldn't run into this issue?  For the rest of us, we need to do this manual install of the kernel modules as documented here: https://github.com/mkubecek/vmware-host-modules/blob/master/INSTALL

From the release notes of vmware player 16.2.4:

```

  • Workstation Player fails to launch on Ubuntu 22.04 host operating system

    After you install Workstation Player on an Ubuntu 22.04 host operating system, the application fails to launch because of a compilation error in building the vmmon and vmnet kernel module. 

    This issue is now resolved.

    ```

Reply
0 Kudos