Jump to content

    
Sign in to follow this  
_4afc_

Помогите установить VMware14 Workstation на Ubuntu 18.04 LTS

Recommended Posts

Пытаюсь установить VMware-Workstation-Full-14.0.0-6661328.x86_64.bundle на Ubuntu 18.04.3 LTS

после установки VMware пытается скомпилировать vmmon  и vmnet, но отваливается:

Spoiler

2020-01-02T15:31:03.913+03:00| vthread-1| I125: Log for VMware Workstation pid=4802 version=14.0.0 build=build-6661328 option=Release
2020-01-02T15:31:03.913+03:00| vthread-1| I125: The process is 64-bit.
2020-01-02T15:31:03.913+03:00| vthread-1| I125: Host codepage=UTF-8 encoding=UTF-8
2020-01-02T15:31:03.913+03:00| vthread-1| I125: Host is Linux 5.0.0-37-generic Ubuntu 18.04.3 LTS
2020-01-02T15:31:03.913+03:00| vthread-1| I125: DictionaryLoad: Cannot open file "/usr/lib/vmware/settings": Нет такого файла или каталога.
2020-01-02T15:31:03.913+03:00| vthread-1| I125: [msg.dictionary.load.openFailed] Cannot open file "/usr/lib/vmware/settings": Нет такого файла или каталога.
2020-01-02T15:31:03.913+03:00| vthread-1| I125: PREF Optional preferences file not found at /usr/lib/vmware/settings. Using default values.
2020-01-02T15:31:03.913+03:00| vthread-1| I125: DictionaryLoad: Cannot open file "/home/admin_ubuntu/.vmware/config": Нет такого файла или каталога.
2020-01-02T15:31:03.913+03:00| vthread-1| I125: [msg.dictionary.load.openFailed] Cannot open file "/home/admin_ubuntu/.vmware/config": Нет такого файла или каталога.
2020-01-02T15:31:03.913+03:00| vthread-1| I125: PREF Optional preferences file not found at /home/admin_ubuntu/.vmware/config. Using default values.
2020-01-02T15:31:03.913+03:00| vthread-1| I125: DictionaryLoad: Cannot open file "/home/admin_ubuntu/.vmware/preferences": Нет такого файла или каталога.
2020-01-02T15:31:03.913+03:00| vthread-1| I125: [msg.dictionary.load.openFailed] Cannot open file "/home/admin_ubuntu/.vmware/preferences": Нет такого файла или каталога.
2020-01-02T15:31:03.913+03:00| vthread-1| I125: PREF Optional preferences file not found at /home/admin_ubuntu/.vmware/preferences. Using default values.
2020-01-02T15:31:03.955+03:00| vthread-1| W115: Logging to /tmp/vmware-root/vmware-4802.log
2020-01-02T15:31:03.965+03:00| vthread-1| I125: Obtaining info using the running kernel.
2020-01-02T15:31:03.965+03:00| vthread-1| I125: Created new pathsHash.
2020-01-02T15:31:03.965+03:00| vthread-1| I125: Setting header path for 5.0.0-37-generic to "/lib/modules/5.0.0-37-generic/build/include".
2020-01-02T15:31:03.965+03:00| vthread-1| I125: Validating path "/lib/modules/5.0.0-37-generic/build/include" for kernel release "5.0.0-37-generic".
2020-01-02T15:31:03.965+03:00| vthread-1| I125: Failed to find /lib/modules/5.0.0-37-generic/build/include/linux/version.h
2020-01-02T15:31:03.965+03:00| vthread-1| I125: /lib/modules/5.0.0-37-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2020-01-02T15:31:03.965+03:00| vthread-1| I125: using /usr/bin/gcc-7 for preprocess check
2020-01-02T15:31:03.971+03:00| vthread-1| I125: Preprocessed UTS_RELEASE, got value "5.0.0-37-generic".
2020-01-02T15:31:03.972+03:00| vthread-1| I125: The header path "/lib/modules/5.0.0-37-generic/build/include" for the kernel "5.0.0-37-generic" is valid.  Whoohoo!
2020-01-02T15:31:04.095+03:00| vthread-1| I125: found symbol version file /lib/modules/5.0.0-37-generic/build/Module.symvers
2020-01-02T15:31:04.095+03:00| vthread-1| I125: Reading symbol versions from /lib/modules/5.0.0-37-generic/build/Module.symvers.
2020-01-02T15:31:04.114+03:00| vthread-1| I125: Read 23297 symbol versions
2020-01-02T15:31:04.115+03:00| vthread-1| I125: Reading in info for the vmmon module.
2020-01-02T15:31:04.115+03:00| vthread-1| I125: Reading in info for the vmnet module.
2020-01-02T15:31:04.115+03:00| vthread-1| I125: Reading in info for the vmblock module.
2020-01-02T15:31:04.115+03:00| vthread-1| I125: Reading in info for the vmci module.
2020-01-02T15:31:04.115+03:00| vthread-1| I125: Reading in info for the vsock module.
2020-01-02T15:31:04.115+03:00| vthread-1| I125: Setting vsock to depend on vmci.
2020-01-02T15:31:04.115+03:00| vthread-1| I125: Invoking modinfo on "vmmon".
2020-01-02T15:31:04.116+03:00| vthread-1| I125: "/sbin/modinfo" exited with status 256.
2020-01-02T15:31:04.116+03:00| vthread-1| I125: Invoking modinfo on "vmnet".
2020-01-02T15:31:04.118+03:00| vthread-1| I125: "/sbin/modinfo" exited with status 256.
2020-01-02T15:31:04.118+03:00| vthread-1| I125: Invoking modinfo on "vmblock".
2020-01-02T15:31:04.119+03:00| vthread-1| I125: "/sbin/modinfo" exited with status 256.
2020-01-02T15:31:04.119+03:00| vthread-1| I125: Invoking modinfo on "vmci".
2020-01-02T15:31:04.121+03:00| vthread-1| I125: "/sbin/modinfo" exited with status 256.
2020-01-02T15:31:04.121+03:00| vthread-1| I125: Invoking modinfo on "vsock".
2020-01-02T15:31:04.122+03:00| vthread-1| I125: "/sbin/modinfo" exited with status 0.
2020-01-02T15:31:04.135+03:00| vthread-1| I125: to be installed: vmmon status: 0
2020-01-02T15:31:04.135+03:00| vthread-1| I125: to be installed: vmnet status: 0
2020-01-02T15:31:04.147+03:00| vthread-1| I125: Obtaining info using the running kernel.
2020-01-02T15:31:04.147+03:00| vthread-1| I125: Setting header path for 5.0.0-37-generic to "/lib/modules/5.0.0-37-generic/build/include".
2020-01-02T15:31:04.147+03:00| vthread-1| I125: Validating path "/lib/modules/5.0.0-37-generic/build/include" for kernel release "5.0.0-37-generic".
2020-01-02T15:31:04.147+03:00| vthread-1| I125: Failed to find /lib/modules/5.0.0-37-generic/build/include/linux/version.h
2020-01-02T15:31:04.147+03:00| vthread-1| I125: /lib/modules/5.0.0-37-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2020-01-02T15:31:04.147+03:00| vthread-1| I125: using /usr/bin/gcc-7 for preprocess check
2020-01-02T15:31:04.154+03:00| vthread-1| I125: Preprocessed UTS_RELEASE, got value "5.0.0-37-generic".
2020-01-02T15:31:04.154+03:00| vthread-1| I125: The header path "/lib/modules/5.0.0-37-generic/build/include" for the kernel "5.0.0-37-generic" is valid.  Whoohoo!
2020-01-02T15:31:04.279+03:00| vthread-1| I125: found symbol version file /lib/modules/5.0.0-37-generic/build/Module.symvers
2020-01-02T15:31:04.279+03:00| vthread-1| I125: Reading symbol versions from /lib/modules/5.0.0-37-generic/build/Module.symvers.
2020-01-02T15:31:04.299+03:00| vthread-1| I125: Read 23297 symbol versions
2020-01-02T15:31:04.300+03:00| vthread-1| I125: Kernel header path retrieved from FileEntry: /lib/modules/5.0.0-37-generic/build/include
2020-01-02T15:31:04.300+03:00| vthread-1| I125: Update kernel header path to /lib/modules/5.0.0-37-generic/build/include
2020-01-02T15:31:04.300+03:00| vthread-1| I125: Validating path "/lib/modules/5.0.0-37-generic/build/include" for kernel release "5.0.0-37-generic".
2020-01-02T15:31:04.300+03:00| vthread-1| I125: Failed to find /lib/modules/5.0.0-37-generic/build/include/linux/version.h
2020-01-02T15:31:04.300+03:00| vthread-1| I125: /lib/modules/5.0.0-37-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2020-01-02T15:31:04.300+03:00| vthread-1| I125: using /usr/bin/gcc-7 for preprocess check
2020-01-02T15:31:04.306+03:00| vthread-1| I125: Preprocessed UTS_RELEASE, got value "5.0.0-37-generic".
2020-01-02T15:31:04.306+03:00| vthread-1| I125: The header path "/lib/modules/5.0.0-37-generic/build/include" for the kernel "5.0.0-37-generic" is valid.  Whoohoo!
2020-01-02T15:31:04.310+03:00| vthread-1| I125: Found compiler at "/usr/bin/gcc"
2020-01-02T15:31:04.312+03:00| vthread-1| I125: Got gcc version "7".
2020-01-02T15:31:04.312+03:00| vthread-1| I125: The GCC version matches the kernel GCC minor version like a glove.
2020-01-02T15:31:04.315+03:00| vthread-1| I125: Got gcc version "7".
2020-01-02T15:31:04.315+03:00| vthread-1| I125: The GCC version matches the kernel GCC minor version like a glove.
2020-01-02T15:31:04.317+03:00| vthread-1| I125: Trying to find a suitable PBM set for kernel "5.0.0-37-generic".
2020-01-02T15:31:04.317+03:00| vthread-1| I125: No matching PBM set was found for kernel "5.0.0-37-generic".
2020-01-02T15:31:04.317+03:00| vthread-1| I125: The GCC version matches the kernel GCC minor version like a glove.
2020-01-02T15:31:04.317+03:00| vthread-1| I125: Validating path "/lib/modules/5.0.0-37-generic/build/include" for kernel release "5.0.0-37-generic".
2020-01-02T15:31:04.317+03:00| vthread-1| I125: Failed to find /lib/modules/5.0.0-37-generic/build/include/linux/version.h
2020-01-02T15:31:04.317+03:00| vthread-1| I125: /lib/modules/5.0.0-37-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2020-01-02T15:31:04.317+03:00| vthread-1| I125: using /usr/bin/gcc-7 for preprocess check
2020-01-02T15:31:04.325+03:00| vthread-1| I125: Preprocessed UTS_RELEASE, got value "5.0.0-37-generic".
2020-01-02T15:31:04.325+03:00| vthread-1| I125: The header path "/lib/modules/5.0.0-37-generic/build/include" for the kernel "5.0.0-37-generic" is valid.  Whoohoo!
2020-01-02T15:31:04.330+03:00| vthread-1| I125: The GCC version matches the kernel GCC minor version like a glove.
2020-01-02T15:31:04.330+03:00| vthread-1| I125: Validating path "/lib/modules/5.0.0-37-generic/build/include" for kernel release "5.0.0-37-generic".
2020-01-02T15:31:04.330+03:00| vthread-1| I125: Failed to find /lib/modules/5.0.0-37-generic/build/include/linux/version.h
2020-01-02T15:31:04.330+03:00| vthread-1| I125: /lib/modules/5.0.0-37-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2020-01-02T15:31:04.330+03:00| vthread-1| I125: using /usr/bin/gcc-7 for preprocess check
2020-01-02T15:31:04.339+03:00| vthread-1| I125: Preprocessed UTS_RELEASE, got value "5.0.0-37-generic".
2020-01-02T15:31:04.339+03:00| vthread-1| I125: The header path "/lib/modules/5.0.0-37-generic/build/include" for the kernel "5.0.0-37-generic" is valid.  Whoohoo!
2020-01-02T15:31:04.339+03:00| vthread-1| I125: Using temp dir "/tmp".
2020-01-02T15:31:04.341+03:00| vthread-1| I125: Obtaining info using the running kernel.
2020-01-02T15:31:04.341+03:00| vthread-1| I125: Setting header path for 5.0.0-37-generic to "/lib/modules/5.0.0-37-generic/build/include".
2020-01-02T15:31:04.341+03:00| vthread-1| I125: Validating path "/lib/modules/5.0.0-37-generic/build/include" for kernel release "5.0.0-37-generic".
2020-01-02T15:31:04.341+03:00| vthread-1| I125: Failed to find /lib/modules/5.0.0-37-generic/build/include/linux/version.h
2020-01-02T15:31:04.341+03:00| vthread-1| I125: /lib/modules/5.0.0-37-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2020-01-02T15:31:04.341+03:00| vthread-1| I125: using /usr/bin/gcc-7 for preprocess check
2020-01-02T15:31:04.349+03:00| vthread-1| I125: Preprocessed UTS_RELEASE, got value "5.0.0-37-generic".
2020-01-02T15:31:04.349+03:00| vthread-1| I125: The header path "/lib/modules/5.0.0-37-generic/build/include" for the kernel "5.0.0-37-generic" is valid.  Whoohoo!
2020-01-02T15:31:04.480+03:00| vthread-1| I125: found symbol version file /lib/modules/5.0.0-37-generic/build/Module.symvers
2020-01-02T15:31:04.480+03:00| vthread-1| I125: Reading symbol versions from /lib/modules/5.0.0-37-generic/build/Module.symvers.
2020-01-02T15:31:04.499+03:00| vthread-1| I125: Read 23297 symbol versions
2020-01-02T15:31:04.499+03:00| vthread-1| I125: Invoking modinfo on "vmmon".
2020-01-02T15:31:04.501+03:00| vthread-1| I125: "/sbin/modinfo" exited with status 256.
2020-01-02T15:31:04.501+03:00| vthread-1| I125: Invoking modinfo on "vmnet".
2020-01-02T15:31:04.503+03:00| vthread-1| I125: "/sbin/modinfo" exited with status 256.
2020-01-02T15:31:04.815+03:00| vthread-1| I125: Setting destination path for vmmon to "/lib/modules/5.0.0-37-generic/misc/vmmon.ko".
2020-01-02T15:31:04.815+03:00| vthread-1| I125: Extracting the vmmon source from "/usr/lib/vmware/modules/source/vmmon.tar".
2020-01-02T15:31:04.822+03:00| vthread-1| I125: Successfully extracted the vmmon source.
2020-01-02T15:31:04.822+03:00| vthread-1| I125: Building module with command "/usr/bin/make -j4 -C /tmp/modconfig-sH9jl5/vmmon-only auto-build HEADER_DIR=/lib/modules/5.0.0-37-generic/build/include CC=/usr/bin/gcc IS_GCC_3=no"
2020-01-02T15:31:06.672+03:00| vthread-1| W115: Failed to build vmmon.  Failed to execute the build command.
2020-01-02T15:31:06.674+03:00| vthread-1| I125: Setting destination path for vmnet to "/lib/modules/5.0.0-37-generic/misc/vmnet.ko".
2020-01-02T15:31:06.674+03:00| vthread-1| I125: Extracting the vmnet source from "/usr/lib/vmware/modules/source/vmnet.tar".
2020-01-02T15:31:06.680+03:00| vthread-1| I125: Successfully extracted the vmnet source.
2020-01-02T15:31:06.680+03:00| vthread-1| I125: Building module with command "/usr/bin/make -j4 -C /tmp/modconfig-sH9jl5/vmnet-only auto-build HEADER_DIR=/lib/modules/5.0.0-37-generic/build/include CC=/usr/bin/gcc IS_GCC_3=no"
2020-01-02T15:31:08.391+03:00| vthread-1| W115: Failed to build vmnet.  Failed to execute the build command.

 

перед установкой делал:

 

sudo apt install build-essential

sudo apt-get -y install gcc make linux-headers-$(uname -r) dkms

 

не помогло...

 

Что ещё попробовать?

 

Share this post


Link to post
Share on other sites

на команды типа

 

Spoiler
wget https://github.com/mkubecek/vmware-host-modules/archive/workstation-14.0.0.tar.gz
tar -xzf workstation-14.0.0.tar.gz
cd vmware-host-modules-workstation-14.0.0
tar -cf vmmon.tar vmmon-only
tar -cf vmnet.tar vmnet-only

sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/

sudo vmware-modconfig --console --install-all

ругается так:

Spoiler

[AppLoader] Use shipped Linux kernel AIO access library.
An up-to-date "libaio" or "libaio1" package from your system is preferred.
[AppLoader] GLib does not have GSettings support.
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: вход в каталог «/tmp/modconfig-PP4ecw/vmmon-only»
Using kernel build system.
/usr/bin/make -C /lib/modules/5.0.0-37-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: вход в каталог «/usr/src/linux-headers-5.0.0-37-generic»
Makefile:223: ================= WARNING ================
Makefile:224: 'SUBDIRS' will be removed after Linux 5.3
Makefile:225: Please use 'M=' or 'KBUILD_EXTMOD' instead
Makefile:226: ==========================================
  CC [M]  /tmp/modconfig-PP4ecw/vmmon-only/linux/driver.o
  CC [M]  /tmp/modconfig-PP4ecw/vmmon-only/linux/hostif.o
  CC [M]  /tmp/modconfig-PP4ecw/vmmon-only/linux/driverLog.o
  CC [M]  /tmp/modconfig-PP4ecw/vmmon-only/common/memtrack.o
In file included from /tmp/modconfig-PP4ecw/vmmon-only/common/vmx86.h:32:0,
                 from /tmp/modconfig-PP4ecw/vmmon-only/common/hostif.h:32,
                 from /tmp/modconfig-PP4ecw/vmmon-only/common/memtrack.c:90:
/tmp/modconfig-PP4ecw/vmmon-only/./include/x86msr.h:442:0: warning: "MSR_K7_HWCR_SMMLOCK" redefined
 #define MSR_K7_HWCR_SMMLOCK        0x00000001ULL // Lock SMM environment
 
In file included from /tmp/modconfig-PP4ecw/vmmon-only/./include/x86msr.h:27:0,
                 from /tmp/modconfig-PP4ecw/vmmon-only/common/vmx86.h:32,
                 from /tmp/modconfig-PP4ecw/vmmon-only/common/hostif.h:32,
                 from /tmp/modconfig-PP4ecw/vmmon-only/common/memtrack.c:90:
./arch/x86/include/asm/msr-index.h:494:0: note: this is the location of the previous definition
 #define MSR_K7_HWCR_SMMLOCK  BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)
 
  CC [M]  /tmp/modconfig-PP4ecw/vmmon-only/common/apic.o
In file included from /tmp/modconfig-PP4ecw/vmmon-only/common/vmx86.h:32:0,
                 from /tmp/modconfig-PP4ecw/vmmon-only/common/hostif.h:32,
                 from /tmp/modconfig-PP4ecw/vmmon-only/common/apic.c:20:
/tmp/modconfig-PP4ecw/vmmon-only/./include/x86msr.h:442:0: warning: "MSR_K7_HWCR_SMMLOCK" redefined
 #define MSR_K7_HWCR_SMMLOCK        0x00000001ULL // Lock SMM environment
 
In file included from /tmp/modconfig-PP4ecw/vmmon-only/./include/x86msr.h:27:0,
                 from /tmp/modconfig-PP4ecw/vmmon-only/common/vmx86.h:32,
                 from /tmp/modconfig-PP4ecw/vmmon-only/common/hostif.h:32,
                 from /tmp/modconfig-PP4ecw/vmmon-only/common/apic.c:20:
./arch/x86/include/asm/msr-index.h:494:0: note: this is the location of the previous definition
 #define MSR_K7_HWCR_SMMLOCK  BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)
 
  CC [M]  /tmp/modconfig-PP4ecw/vmmon-only/common/hashFunc.o
  CC [M]  /tmp/modconfig-PP4ecw/vmmon-only/common/vmx86.o
In file included from /tmp/modconfig-PP4ecw/vmmon-only/./common/vmx86.h:32:0,
                 from /tmp/modconfig-PP4ecw/vmmon-only/linux/driver.h:32,
                 from /tmp/modconfig-PP4ecw/vmmon-only/linux/driver.c:48:
/tmp/modconfig-PP4ecw/vmmon-only/./include/x86msr.h:442:0: warning: "MSR_K7_HWCR_SMMLOCK" redefined
 #define MSR_K7_HWCR_SMMLOCK        0x00000001ULL // Lock SMM environment
 
In file included from ./arch/x86/include/asm/nospec-branch.h:11:0,
                 from ./arch/x86/include/asm/paravirt_types.h:46,
                 from ./arch/x86/include/asm/ptrace.h:94,
                 from ./arch/x86/include/asm/math_emu.h:5,
                 from ./arch/x86/include/asm/processor.h:12,
                 from ./arch/x86/include/asm/cpufeature.h:5,
                 from ./arch/x86/include/asm/thread_info.h:53,
                 from ./include/linux/thread_info.h:38,
                 from ./arch/x86/include/asm/preempt.h:7,
                 from ./include/linux/preempt.h:78,
                 from ./include/linux/spinlock.h:51,
                 from ./include/linux/seqlock.h:36,
                 from ./include/linux/time.h:6,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/timer.h:6,
                 from /tmp/modconfig-PP4ecw/vmmon-only/./include/compat_timer.h:4,
                 from /tmp/modconfig-PP4ecw/vmmon-only/linux/driver.c:24:
./arch/x86/include/asm/msr-index.h:494:0: note: this is the location of the previous definition
 #define MSR_K7_HWCR_SMMLOCK  BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)
 
  CC [M]  /tmp/modconfig-PP4ecw/vmmon-only/common/cpuid.o
In file included from /tmp/modconfig-PP4ecw/vmmon-only/./include/vm_asm.h:43:0,
                 from /tmp/modconfig-PP4ecw/vmmon-only/linux/hostif.c:61:
/tmp/modconfig-PP4ecw/vmmon-only/./include/x86msr.h:442:0: warning: "MSR_K7_HWCR_SMMLOCK" redefined
 #define MSR_K7_HWCR_SMMLOCK        0x00000001ULL // Lock SMM environment
 
In file included from ./arch/x86/include/asm/nospec-branch.h:11:0,
                 from ./arch/x86/include/asm/paravirt_types.h:46,
                 from ./arch/x86/include/asm/ptrace.h:94,
                 from ./arch/x86/include/asm/math_emu.h:5,
                 from ./arch/x86/include/asm/processor.h:12,
                 from ./arch/x86/include/asm/cpufeature.h:5,
                 from ./arch/x86/include/asm/thread_info.h:53,
                 from ./include/linux/thread_info.h:38,
                 from ./arch/x86/include/asm/preempt.h:7,
                 from ./include/linux/preempt.h:78,
                 from ./include/linux/spinlock.h:51,
                 from ./include/linux/seqlock.h:36,
                 from ./include/linux/time.h:6,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/timer.h:6,
                 from /tmp/modconfig-PP4ecw/vmmon-only/./include/compat_timer.h:4,
                 from /tmp/modconfig-PP4ecw/vmmon-only/linux/hostif.c:32:
./arch/x86/include/asm/msr-index.h:494:0: note: this is the location of the previous definition
 #define MSR_K7_HWCR_SMMLOCK  BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)
 
In file included from /tmp/modconfig-PP4ecw/vmmon-only/common/vmx86.h:32:0,
                 from /tmp/modconfig-PP4ecw/vmmon-only/common/hostif.h:32,
                 from /tmp/modconfig-PP4ecw/vmmon-only/common/cpuid.c:31:
/tmp/modconfig-PP4ecw/vmmon-only/./include/x86msr.h:442:0: warning: "MSR_K7_HWCR_SMMLOCK" redefined
 #define MSR_K7_HWCR_SMMLOCK        0x00000001ULL // Lock SMM environment
 
In file included from /tmp/modconfig-PP4ecw/vmmon-only/./include/x86msr.h:27:0,
                 from /tmp/modconfig-PP4ecw/vmmon-only/common/vmx86.h:32,
                 from /tmp/modconfig-PP4ecw/vmmon-only/common/hostif.h:32,
                 from /tmp/modconfig-PP4ecw/vmmon-only/common/cpuid.c:31:
./arch/x86/include/asm/msr-index.h:494:0: note: this is the location of the previous definition
 #define MSR_K7_HWCR_SMMLOCK  BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)
 
/tmp/modconfig-PP4ecw/vmmon-only/linux/driver.c:980:1: warning: always_inline function might not be inlinable [-Wattributes]
 LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min
 ^~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-PP4ecw/vmmon-only/linux/hostif.c: In function ‘HostIF_EstimateLockedPageLimit’:
/tmp/modconfig-PP4ecw/vmmon-only/linux/hostif.c:1534:25: error: ‘totalram_pages’ redeclared as different kind of symbol
    extern unsigned long totalram_pages;
                         ^~~~~~~~~~~~~~
In file included from /tmp/modconfig-PP4ecw/vmmon-only/linux/hostif.c:43:0:
./include/linux/mm.h:52:29: note: previous definition of ‘totalram_pages’ was here
 static inline unsigned long totalram_pages(void)
                             ^~~~~~~~~~~~~~
/tmp/modconfig-PP4ecw/vmmon-only/linux/hostif.c: In function ‘HostIFReadUptimeWork’:
/tmp/modconfig-PP4ecw/vmmon-only/linux/hostif.c:1661:4: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]
    do_gettimeofday(&tv);
    ^~~~~~~~~~~~~~~
    do_settimeofday64
/tmp/modconfig-PP4ecw/vmmon-only/linux/hostif.c: In function ‘HostIF_MapUserMem’:
/tmp/modconfig-PP4ecw/vmmon-only/linux/hostif.c:3210:40: error: macro "access_ok" passed 3 arguments, but takes just 2
    if (!access_ok(VERIFY_WRITE, p, size)) {
                                        ^
/tmp/modconfig-PP4ecw/vmmon-only/linux/hostif.c:3210:9: error: ‘access_ok’ undeclared (first use in this function)
    if (!access_ok(VERIFY_WRITE, p, size)) {
         ^~~~~~~~~
/tmp/modconfig-PP4ecw/vmmon-only/linux/hostif.c:3210:9: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
scripts/Makefile.build:284: recipe for target '/tmp/modconfig-PP4ecw/vmmon-only/linux/hostif.o' failed
make[2]: *** [/tmp/modconfig-PP4ecw/vmmon-only/linux/hostif.o] Error 1
make[2]: *** Ожидание завершения заданий…
In file included from /tmp/modconfig-PP4ecw/vmmon-only/common/vmx86.h:32:0,
                 from /tmp/modconfig-PP4ecw/vmmon-only/common/vmx86.c:43:
/tmp/modconfig-PP4ecw/vmmon-only/./include/x86msr.h:442:0: warning: "MSR_K7_HWCR_SMMLOCK" redefined
 #define MSR_K7_HWCR_SMMLOCK        0x00000001ULL // Lock SMM environment
 
In file included from ./arch/x86/include/asm/nospec-branch.h:11:0,
                 from ./arch/x86/include/asm/irqflags.h:9,
                 from ./include/linux/irqflags.h:16,
                 from ./include/linux/rcupdate.h:39,
                 from ./include/linux/rculist.h:11,
                 from ./include/linux/pid.h:5,
                 from ./include/linux/sched.h:14,
                 from /tmp/modconfig-PP4ecw/vmmon-only/common/vmx86.c:31:
./arch/x86/include/asm/msr-index.h:494:0: note: this is the location of the previous definition
 #define MSR_K7_HWCR_SMMLOCK  BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)
 
Makefile:1614: recipe for target '_module_/tmp/modconfig-PP4ecw/vmmon-only' failed
make[1]: *** [_module_/tmp/modconfig-PP4ecw/vmmon-only] Error 2
make[1]: выход из каталога «/usr/src/linux-headers-5.0.0-37-generic»
Makefile:110: recipe for target 'vmmon.ko' failed
make: *** [vmmon.ko] Error 2
make: выход из каталога «/tmp/modconfig-PP4ecw/vmmon-only»
make: вход в каталог «/tmp/modconfig-PP4ecw/vmnet-only»
Using kernel build system.
/usr/bin/make -C /lib/modules/5.0.0-37-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: вход в каталог «/usr/src/linux-headers-5.0.0-37-generic»
Makefile:223: ================= WARNING ================
Makefile:224: 'SUBDIRS' will be removed after Linux 5.3
Makefile:225: Please use 'M=' or 'KBUILD_EXTMOD' instead
Makefile:226: ==========================================
  CC [M]  /tmp/modconfig-PP4ecw/vmnet-only/driver.o
  CC [M]  /tmp/modconfig-PP4ecw/vmnet-only/hub.o
  CC [M]  /tmp/modconfig-PP4ecw/vmnet-only/userif.o
  CC [M]  /tmp/modconfig-PP4ecw/vmnet-only/netif.o
/tmp/modconfig-PP4ecw/vmnet-only/userif.c: In function ‘VNetUserIfMapPtr’:
/tmp/modconfig-PP4ecw/vmnet-only/userif.c:145:52: error: macro "access_ok" passed 3 arguments, but takes just 2
    if (!access_ok(VERIFY_WRITE, (void *)uAddr, size) ||
                                                    ^
/tmp/modconfig-PP4ecw/vmnet-only/userif.c:145:9: error: ‘access_ok’ undeclared (first use in this function)
    if (!access_ok(VERIFY_WRITE, (void *)uAddr, size) ||
         ^~~~~~~~~
/tmp/modconfig-PP4ecw/vmnet-only/userif.c:145:9: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:284: recipe for target '/tmp/modconfig-PP4ecw/vmnet-only/userif.o' failed
make[2]: *** [/tmp/modconfig-PP4ecw/vmnet-only/userif.o] Error 1
make[2]: *** Ожидание завершения заданий…
Makefile:1614: recipe for target '_module_/tmp/modconfig-PP4ecw/vmnet-only' failed
make[1]: *** [_module_/tmp/modconfig-PP4ecw/vmnet-only] Error 2
make[1]: выход из каталога «/usr/src/linux-headers-5.0.0-37-generic»
Makefile:110: recipe for target 'vmnet.ko' failed
make: *** [vmnet.ko] Error 2
make: выход из каталога «/tmp/modconfig-PP4ecw/vmnet-only»
Unable to install all modules.  See log for details.

 

 

Share this post


Link to post
Share on other sites

VMware не живёт на линуксе. Моё мнение. Много раз натыкался на ту же ситуацию, что и у вас. Ставишь вмварь, при запуске она орёт, что надо модули ядра собрать под текущее ядро. Соглашаешься, она начинает и падает с ошибкой. Начинаешь гуглить, нароешь патчи, прикладываешь их, собираешь. Пару раз у меня получилось. Потом через некоторое время при запуски вмвари опять вываливается подобное - ядро линукса обновилось, и прежние патчи уже не работают. Полагаю, что вендор этого софта не уделяет достаточно внимания продукту для линуха-бубунты.

 

Проконсультировался со знающими людьми, они подтвердили, что тут всё плохо. На венде вмварь живёт хорошо, на линуксе (по кр. мере на бубунте) плохо. Посоветовали использовать другие виртуалки - например, VirtialBox. Вот с ним реально головняков почти нет. Хотя говорят, что он медленнее. Но я не замечаю разницы, всё отзывчиво.

Share this post


Link to post
Share on other sites
1 час назад, Tarbal сказал:

Поставьте Virtual Box https://www.virtualbox.org/

Он прекрасно работает с образами диска, которые сделаны на VMware.

Одна оговорка: при условии, что запускается на том же железе. Я пробовал унести на другой РС, там не взлетело - какие-то системные либы (dll) в образе оказались несовместимыми. В принципе, всё лечится, но это надо лезть в потроха образа и править его реестр. Мне было проще сделать новый нативный образ под VB и утянуть нужные файлы из вмварьного.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this