VMware Communities
cHamBe
Contributor
Contributor

VMWARE Workstation don't run in Debian 9

Hello,

When I run vmware don't run, when I start vmware    My version of kernel 4.0.9.3 and gcc 6.3.18

<code> sudo /etc/init.d/vmware start

sudo: unable to resolve host H1

[sudo] password for usr1:

Starting VMware services:

  Virtual machine monitor                                            failed

  Virtual machine communication interface                  done

  VM communication interface socket family               done

  Blocking file system                                                  done

  Virtual ethernet                                                         failed

  VMware Authentication Daemon                              done

</code>

If I run  vmware-modconfig --console --install-all

<code>

vmware-modconfig --console --install-all

Stopping VMware services:

   VMware Authentication Daemon                                        done

   VM communication interface socket family                            done

   Virtual machine communication interface                             done

   Virtual machine monitor                                             done

   Blocking file system                                                done

make: se entra en el directorio '/tmp/modconfig-645a2D/vmmon-only'

Using 2.6.x kernel build system.

/usr/bin/make -C /lib/modules/4.9.0-3-686-pae/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \

  MODULEBUILDDIR= modules

make[1]: se entra en el directorio '/usr/src/linux-headers-4.9.0-3-686-pae'

  CC [M]  /tmp/modconfig-645a2D/vmmon-only/linux/driverLog.o

  CC [M]  /tmp/modconfig-645a2D/vmmon-only/linux/driver.o

  CC [M]  /tmp/modconfig-645a2D/vmmon-only/linux/hostif.o

/tmp/modconfig-645a2D/vmmon-only/linux/driver.c: In function ‘cleanup_module’:

/tmp/modconfig-645a2D/vmmon-only/linux/driver.c:409:8: error: void value not ignored as it ought to be

    if (misc_deregister(&linuxState.misc)) {

        ^~~~~~~~~~~~~~~

/tmp/modconfig-645a2D/vmmon-only/linux/driver.c:412:20: error: ‘$linuxState’ undeclared (first use in this function)

    misc_deregister($linuxState.misc);

                    ^~~~~~~~~~~

/tmp/modconfig-645a2D/vmmon-only/linux/driver.c:412:20: note: each undeclared identifier is reported only once for each function it appears in

At top level:

/tmp/modconfig-645a2D/vmmon-only/linux/driver.c:1343:1: warning: always_inline function might not be inlinable [-Wattributes]

LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min

^~~~~~~~~~~~~~~~~~~~~~~

/usr/src/linux-headers-4.9.0-3-common/scripts/Makefile.build:298: fallo en las instrucciones para el objetivo '/tmp/modconfig-645a2D/vmmon-only/linux/driver.o'

make[4]: *** [/tmp/modconfig-645a2D/vmmon-only/linux/driver.o] Error 1

make[4]: *** Se espera a que terminen otras tareas....

In file included from /usr/src/linux-headers-4.9.0-3-common/arch/x86/include/asm/processor.h:15:0,

                 from /usr/src/linux-headers-4.9.0-3-common/arch/x86/include/asm/cpufeature.h:4,

                 from /usr/src/linux-headers-4.9.0-3-common/arch/x86/include/asm/thread_info.h:52,

                 from /usr/src/linux-headers-4.9.0-3-common/include/linux/thread_info.h:58,

                 from /usr/src/linux-headers-4.9.0-3-common/arch/x86/include/asm/preempt.h:6,

                 from /usr/src/linux-headers-4.9.0-3-common/include/linux/preempt.h:59,

                 from /usr/src/linux-headers-4.9.0-3-common/include/linux/spinlock.h:50,

                 from /usr/src/linux-headers-4.9.0-3-common/include/linux/mmzone.h:7,

                 from /usr/src/linux-headers-4.9.0-3-common/include/linux/gfp.h:5,

                 from /usr/src/linux-headers-4.9.0-3-common/include/linux/mm.h:9,

                 from /tmp/modconfig-645a2D/vmmon-only/./include/compat_page.h:23,

                 from /tmp/modconfig-645a2D/vmmon-only/linux/hostif.c:32:

/tmp/modconfig-645a2D/vmmon-only/linux/hostif.c: In function ‘HostIFGetUserPages’:

/usr/src/linux-headers-4.9.0-3-common/arch/x86/include/asm/current.h:17:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]

#define current get_current()

                 ^

/tmp/modconfig-645a2D/vmmon-only/linux/hostif.c:1127:28: note: in expansion of macro ‘current’

    retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,

                            ^~~~~~~

In file included from /tmp/modconfig-645a2D/vmmon-only/./include/compat_page.h:23:0,

                 from /tmp/modconfig-645a2D/vmmon-only/linux/hostif.c:32:

/usr/src/linux-headers-4.9.0-3-common/include/linux/mm.h:1302:6: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’

long get_user_pages(unsigned long start, unsigned long nr_pages,

      ^~~~~~~~~~~~~~

In file included from /usr/src/linux-headers-4.9.0-3-common/arch/x86/include/asm/processor.h:15:0,

                 from /usr/src/linux-headers-4.9.0-3-common/arch/x86/include/asm/cpufeature.h:4,

                 from /usr/src/linux-headers-4.9.0-3-common/arch/x86/include/asm/thread_info.h:52,

                 from /usr/src/linux-headers-4.9.0-3-common/include/linux/thread_info.h:58,

                 from /usr/src/linux-headers-4.9.0-3-common/arch/x86/include/asm/preempt.h:6,

                 from /usr/src/linux-headers-4.9.0-3-common/include/linux/preempt.h:59,

                 from /usr/src/linux-headers-4.9.0-3-common/include/linux/spinlock.h:50,

                 from /usr/src/linux-headers-4.9.0-3-common/include/linux/mmzone.h:7,

                 from /usr/src/linux-headers-4.9.0-3-common/include/linux/gfp.h:5,

                 from /usr/src/linux-headers-4.9.0-3-common/include/linux/mm.h:9,

                 from /tmp/modconfig-645a2D/vmmon-only/./include/compat_page.h:23,

                 from /tmp/modconfig-645a2D/vmmon-only/linux/hostif.c:32:

/usr/src/linux-headers-4.9.0-3-common/arch/x86/include/asm/current.h:17:17: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]

#define current get_current()

                 ^

/tmp/modconfig-645a2D/vmmon-only/linux/hostif.c:1127:37: note: in expansion of macro ‘current’

    retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,

                                     ^~~~~~~

In file included from /tmp/modconfig-645a2D/vmmon-only/./include/compat_page.h:23:0,

                 from /tmp/modconfig-645a2D/vmmon-only/linux/hostif.c:32:

/usr/src/linux-headers-4.9.0-3-common/include/linux/mm.h:1302:6: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’

long get_user_pages(unsigned long start, unsigned long nr_pages,

      ^~~~~~~~~~~~~~

/tmp/modconfig-645a2D/vmmon-only/linux/hostif.c:1128:28: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion]

                            numPages, 0, 0, ppages, NULL);

                            ^~~~~~~~

In file included from /tmp/modconfig-645a2D/vmmon-only/./include/compat_page.h:23:0,

                 from /tmp/modconfig-645a2D/vmmon-only/linux/hostif.c:32:

/usr/src/linux-headers-4.9.0-3-common/include/linux/mm.h:1302:6: note: expected ‘struct page **’ but argument is of type ‘unsigned int’

long get_user_pages(unsigned long start, unsigned long nr_pages,

      ^~~~~~~~~~~~~~

/tmp/modconfig-645a2D/vmmon-only/linux/hostif.c:1127:13: error: too many arguments to function ‘get_user_pages’

    retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,

             ^~~~~~~~~~~~~~

In file included from /tmp/modconfig-645a2D/vmmon-only/./include/compat_page.h:23:0,

                 from /tmp/modconfig-645a2D/vmmon-only/linux/hostif.c:32:

/usr/src/linux-headers-4.9.0-3-common/include/linux/mm.h:1302:6: note: declared here

long get_user_pages(unsigned long start, unsigned long nr_pages,

      ^~~~~~~~~~~~~~

/tmp/modconfig-645a2D/vmmon-only/linux/hostif.c: In function ‘HostIF_EstimateLockedPageLimit’:

/tmp/modconfig-645a2D/vmmon-only/linux/hostif.c:1620:47: error: ‘NR_ANON_PAGES’ undeclared (first use in this function)

    unsigned int anonPages = global_page_state(NR_ANON_PAGES);

                                               ^~~~~~~~~~~~~

/tmp/modconfig-645a2D/vmmon-only/linux/hostif.c:1620:47: note: each undeclared identifier is reported only once for each function it appears in

/usr/src/linux-headers-4.9.0-3-common/scripts/Makefile.build:298: fallo en las instrucciones para el objetivo '/tmp/modconfig-645a2D/vmmon-only/linux/hostif.o'

make[4]: *** [/tmp/modconfig-645a2D/vmmon-only/linux/hostif.o] Error 1

/usr/src/linux-headers-4.9.0-3-common/Makefile:1507: fallo en las instrucciones para el objetivo '_module_/tmp/modconfig-645a2D/vmmon-only'

make[3]: *** [_module_/tmp/modconfig-645a2D/vmmon-only] Error 2

Makefile:150: fallo en las instrucciones para el objetivo 'sub-make'

make[2]: *** [sub-make] Error 2

Makefile:8: fallo en las instrucciones para el objetivo 'all'

make[1]: *** [all] Error 2

make[1]: se sale del directorio '/usr/src/linux-headers-4.9.0-3-686-pae'

Makefile:130: fallo en las instrucciones para el objetivo 'vmmon.ko'

make: *** [vmmon.ko] Error 2

make: se sale del directorio '/tmp/modconfig-645a2D/vmmon-only'

make: *** /tmp/modconfig-645a2D/vmnet-only: No existe el fichero o el directorio.  Alto.

Unable to install all modules.  See log for details.

</code>

I hope someone can help me.

A greeting and thanks

Reply
0 Kudos
5 Replies
dariusd
VMware Employee
VMware Employee

Which version of VMware Workstation are you running?  It looks like an old version, so you might need to update or upgrade in order to gain compatibility with the kernel in Debian 9.

Cheers,

--

Darius

Reply
0 Kudos
cHamBe
Contributor
Contributor

My actual versión of vmware workstation is 10.0.6 , I reinstalled again vmware but same error.

A greeting

Reply
0 Kudos
dariusd
VMware Employee
VMware Employee

I think VMware Workstation 10.x will be too old to work with Linux kernel version 4.9.0, and even Workstation 11.x might still need some unofficial patches in order to work on kernel 4.9.0.  If you must use Workstation 10.x, you will need to search through these forums for patches to allow our vmmon and vmnet kernel modules to work with the newer kernels, and you may need to adapt those patches to work with Workstation 10.x.

The recent update releases of Workstation 12 should work with kernel 4.9.0.  Note that Debian is not an officially-supported host OS – it usually works just fine, it's just that there is no official support for it.  See Supported host operating systems for VMware Workstation (2088579) in the VMware Knowledge Base for more details.

VMware Workstation 12 has a free 30-day evaluation period, so you can try it out before deciding whether or not to upgrade.

Cheers,

--

Darius

Reply
0 Kudos
cHamBe
Contributor
Contributor

Hello,

I will try to install the version workstation 12.

A greeting.

Thanks

Reply
0 Kudos
srojas33
Contributor
Contributor

Hello Community,

I actually have the same problem, but with Workstation 12.5.7, with kernel (and headers) 4.9.0-3-amd64. Here are some outputs:

vmware-modconfig --console --install-all

Stopping VMware services:

   VMware Authentication Daemon                                        done

   VM communication interface socket family                            done

   Virtual machine communication interface                             done

   Virtual machine monitor                                             done

   Blocking file system                                                done

make: Entering directory '/tmp/modconfig-kWwP1Q/vmmon-only'

Using kernel build system.

/usr/bin/make -C /lib/modules/4.9.0-3-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \

  MODULEBUILDDIR= modules

make[1]: Entering directory '/usr/src/linux-headers-4.9.0-3-amd64'

  CC [M]  /tmp/modconfig-kWwP1Q/vmmon-only/linux/driverLog.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmmon-only/linux/driver.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmmon-only/linux/hostif.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmmon-only/common/memtrack.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmmon-only/common/apic.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmmon-only/common/vmx86.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmmon-only/common/cpuid.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmmon-only/common/task.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmmon-only/common/hashFunc.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmmon-only/common/comport.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmmon-only/common/phystrack.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmmon-only/vmcore/moduleloop.o

/tmp/modconfig-kWwP1Q/vmmon-only/linux/driver.c:1291:1: warning: always_inline function might not be inlinable [-Wattributes]

LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min

^~~~~~~~~~~~~~~~~~~~~~~

  LD [M]  /tmp/modconfig-kWwP1Q/vmmon-only/vmmon.o

  Building modules, stage 2.

  MODPOST 1 modules

  CC      /tmp/modconfig-kWwP1Q/vmmon-only/vmmon.mod.o

  LD [M]  /tmp/modconfig-kWwP1Q/vmmon-only/vmmon.ko

make[1]: Leaving directory '/usr/src/linux-headers-4.9.0-3-amd64'

/usr/bin/make -C $PWD SRCROOT=$PWD/. \

  MODULEBUILDDIR= postbuild

make[1]: Entering directory '/tmp/modconfig-kWwP1Q/vmmon-only'

make[1]: 'postbuild' is up to date.

make[1]: Leaving directory '/tmp/modconfig-kWwP1Q/vmmon-only'

cp -f vmmon.ko ./../vmmon.o

make: Leaving directory '/tmp/modconfig-kWwP1Q/vmmon-only'

make: Entering directory '/tmp/modconfig-kWwP1Q/vmnet-only'

Using kernel build system.

/usr/bin/make -C /lib/modules/4.9.0-3-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \

  MODULEBUILDDIR= modules

make[1]: Entering directory '/usr/src/linux-headers-4.9.0-3-amd64'

  CC [M]  /tmp/modconfig-kWwP1Q/vmnet-only/driver.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmnet-only/hub.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmnet-only/userif.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmnet-only/netif.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmnet-only/procfs.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmnet-only/bridge.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmnet-only/smac_compat.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmnet-only/smac.o

  CC [M]  /tmp/modconfig-kWwP1Q/vmnet-only/vnetEvent.o

In file included from /usr/src/linux-headers-4.9.0-3-common/include/linux/pci.h:35:0,

                 from /tmp/modconfig-kWwP1Q/vmnet-only/compat_netdevice.h:27,

                 from /tmp/modconfig-kWwP1Q/vmnet-only/netif.c:43:

/usr/src/linux-headers-4.9.0-3-common/include/linux/pci_ids.h:2253:0: warning: "PCI_VENDOR_ID_VMWARE" redefined

#define PCI_VENDOR_ID_VMWARE  0x15ad

In file included from /tmp/modconfig-kWwP1Q/vmnet-only/net.h:38:0,

                 from /tmp/modconfig-kWwP1Q/vmnet-only/vnetInt.h:26,

                 from /tmp/modconfig-kWwP1Q/vmnet-only/netif.c:42:

/tmp/modconfig-kWwP1Q/vmnet-only/vm_device_version.h:56:0: note: this is the location of the previous definition

#define PCI_VENDOR_ID_VMWARE                    0x15AD

  CC [M]  /tmp/modconfig-kWwP1Q/vmnet-only/vnetUserListener.o

In file included from /tmp/modconfig-kWwP1Q/vmnet-only/net.h:38:0,

                 from /tmp/modconfig-kWwP1Q/vmnet-only/vnetInt.h:26,

                 from /tmp/modconfig-kWwP1Q/vmnet-only/bridge.c:52:

/tmp/modconfig-kWwP1Q/vmnet-only/vm_device_version.h:56:0: warning: "PCI_VENDOR_ID_VMWARE" redefined

#define PCI_VENDOR_ID_VMWARE                    0x15AD

In file included from /usr/src/linux-headers-4.9.0-3-common/include/linux/pci.h:35:0,

                 from /tmp/modconfig-kWwP1Q/vmnet-only/compat_netdevice.h:27,

                 from /tmp/modconfig-kWwP1Q/vmnet-only/bridge.c:51:

/usr/src/linux-headers-4.9.0-3-common/include/linux/pci_ids.h:2253:0: note: this is the location of the previous definition

#define PCI_VENDOR_ID_VMWARE  0x15ad

  LD [M]  /tmp/modconfig-kWwP1Q/vmnet-only/vmnet.o

  Building modules, stage 2.

  MODPOST 1 modules

  CC      /tmp/modconfig-kWwP1Q/vmnet-only/vmnet.mod.o

  LD [M]  /tmp/modconfig-kWwP1Q/vmnet-only/vmnet.ko

make[1]: Leaving directory '/usr/src/linux-headers-4.9.0-3-amd64'

/usr/bin/make -C $PWD SRCROOT=$PWD/. \

  MODULEBUILDDIR= postbuild

make[1]: Entering directory '/tmp/modconfig-kWwP1Q/vmnet-only'

make[1]: 'postbuild' is up to date.

make[1]: Leaving directory '/tmp/modconfig-kWwP1Q/vmnet-only'

cp -f vmnet.ko ./../vmnet.o

make: Leaving directory '/tmp/modconfig-kWwP1Q/vmnet-only'

Starting VMware services:

   Virtual machine monitor                                             done

   Virtual machine communication interface                             done

   VM communication interface socket family                            done

   Blocking file system                                                done

   Virtual ethernet                                                    done

   VMware Authentication Daemon                                        done

   Shared Memory Available                                             done

/etc/init.d/vmware status

Module vmmon loaded

Module vmnet loaded

So everything seems to be fine. However, by clicking on the Workstation icon or running vmware from terminal, the package does not launch. When clicking the icon, I can see the application trying to launch in the task bar but then it disappears; when running from terminal, no error is thrown, just doesn't launch. I have tried a couple of things on the web, such as:

Problems starting VMware Workstation 11 on Ubuntu 16.04 after upgrade from 14.04 - Ask Ubuntu

There is not much out there about this issue. I have re-installed the package several times but I can't find an error to start with.

Thanks in advance. 

Reply
0 Kudos