stefantalpalaru / gentoo-overlay

Gentoo overlay
GNU General Public License v2.0
43 stars 11 forks source link

bug: Could not open /dev/vmmon: No such file or directory #79

Closed ghost closed 3 years ago

ghost commented 3 years ago

I have been trying to solve the problem for a long time and everything is in vain

when starting the virtual machine, I get the error Could not open /dev/vmmon: No such file or directory.

Kernel 5.4, openrc, and recompiled https://github.com/mkubecek/vmware-host-modules for my kernel

stefantalpalaru commented 3 years ago

I'm providing a package for those kernel modules: app-emulation/vmware-modules

vmware-workstation comes with an init script called "vmware" that loads those kernel modules. You should add it to your default runlevel and restart it after each vmware-workstation upgrade.

There's a strong dependency between specific vmware-workstation and vmware-modules versions, so don't wing it here. Use the supported setup.

ghost commented 3 years ago

I'm providing a package for those kernel modules: app-emulation/vmware-modules

[ebuild R #] app-emulation/vmware-modules-16.1.0-r1

In fact, I now have a clean Gentoo and your overlay, with no discrepancies between the documentation. runlevel changed, did not help

stefantalpalaru commented 3 years ago
# rc-service vmware status
 * status: started
# zcat /proc/config.gz | grep VMWARE
CONFIG_VMWARE_VMCI_VSOCKETS=m
CONFIG_VMWARE_VMCI=m
# lsmod | grep vm
vmnet                  57344  13
vmmon                 131072  0
vmw_vsock_vmci_transport    36864  0
vsock                  40960  1 vmw_vsock_vmci_transport
vmw_vmci               73728  1 vmw_vsock_vmci_transport
ghost commented 3 years ago

rc-service vmware status

zcat /proc/config.gz | grep VMWARE gzip: /proc/config.gz: No such file or directory

lsmod | grep vm empty

stefantalpalaru commented 3 years ago

So start the service and add it to the default runlevel. Also, compile those upstreamed kernel modules, if you haven't already.

rc-service vmware start
rc-update add vmware default
ghost commented 3 years ago

ok, i added:

CONFIG_VMWARE_VMCI_VSOCKETS=m
CONFIG_VSOCKETS=m

and while building the kernel, i answer "m"

rc-service vmware start Starting VMware USB Arbitrator ... [ !! ]

rc-update add vmware default

The virtual machine started up, it's good.

  1. What use flags do you recommend?

  2. 3D acceleration does not work.

  3. Network configurator does not work:

    Fail
    Network configuration is missing. Ensure that /etc/vmware/networking exists
  4. When starting the virtual machine:

    The specified device is claimed by another driver (cdc_ether) on the host operating system. The device might be in use. To continue, the device will first be disconnected from its current driver.
  5. When starting the virtual machine:

    
    VMware Tools for this virtual machine have not been found on your computer. Without VMware Tools, Easy Install will not fully complete.

There may be a version available online; would you like to download and install VMware Tools if found?


6.  vmware-usbarb-1546.log    

2021-02-22T00:16:21.373+03:00| usbArb| I005: Log for VMware USB Arbitration Service pid=1546 version=16.0.0 build=build-16975537 option=Release 2021-02-22T00:16:21.373+03:00| usbArb| I005: The host is 64-bit. 2021-02-22T00:16:21.373+03:00| usbArb| I005: Host codepage=UTF-8 encoding=UTF-8 2021-02-22T00:16:21.373+03:00| usbArb| I005: Host is Linux 5.4.97-gentoo Gentoo Base System release 2.7 2021-02-22T00:16:21.371+03:00| usbArb| I005: VTHREAD 139966007497600 "usbArb" tid 1546 2021-02-22T00:16:21.371+03:00| usbArb| I005: DictionaryLoad: Cannot open file "/opt/vmware/lib/vmware/settings": No such file or directory. 2021-02-22T00:16:21.371+03:00| usbArb| I005: [msg.dictionary.load.openFailed] Cannot open file "/opt/vmware/lib/vmware/settings": No such file or directory. 2021-02-22T00:16:21.371+03:00| usbArb| I005: PREF Optional preferences file not found at /opt/vmware/lib/vmware/settings. Using default values. 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT --- GLOBAL SETTINGS /opt/vmware/lib/vmware/settings 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT --- NON PERSISTENT (null) 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT --- HOST DEFAULTS /etc/vmware/config 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT bindir = "/opt/vmware/bin" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT libdir = "/opt/vmware/lib/vmware" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT initscriptdir = "/etc/init.d" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT authd.fullpath = "/opt/vmware/sbin/vmware-authd" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT gksu.rootMethod = "su" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT VMCI_CONFED = "no" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT VMBLOCK_CONFED = "no" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT VSOCK_CONFED = "no" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT NETWORKING = "yes" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT player.product.version = "16.1.0" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT product.buildNumber = "17198959" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT product.version = "16.1.0" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT product.name = "VMware Workstation" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT workstation.product.version = "16.1.0" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT vmware.fullpath = "/opt/vmware/bin/vmware" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT installerDefaults.componentDownloadEnabled = "no" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT installerDefaults.autoSoftwareUpdateEnabled.epoch = "4641104763" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT installerDefaults.dataCollectionEnabled.epoch = "7910652514" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT installerDefaults.dataCollectionEnabled = "no" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT installerDefaults.transferVersion = "1" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT installerDefaults.autoSoftwareUpdateEnabled = "no" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT acceptEULA = "yes" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT acceptOVFEULA = "yes" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT --- SITE DEFAULTS /opt/vmware/lib/vmware/config 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT tag.help = "introduction.htm" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT tag.configurationEditor = "config_editor_newvm.htm" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT tag.ideConfig = "devices_virtualdrive.htm"

2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT tag.floppyConfig = "devices_floppy.htm" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT tag.mouseConfig = "devices_mouse.htm" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT tag.netConfig = "devices_netadapter.htm" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT tag.parallelConfig = "devices_parallel.htm" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT tag.serialConfig = "devices_serial.htm" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT tag.soundConfig = "devices_sound.htm" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT tag.memConfig = "configvm_memory.htm" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT tag.miscConfig = "configvm.htm" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT tag.usbConfig = "devices_usb.htm" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT tag.displayConfig = "configvm_display-problems.htm" 2021-02-22T00:16:21.420+03:00| usbArb| I005: DICT tag.tools = "vmtools.htm" 2021-02-22T00:16:21.420+03:00| usbArb| I005: USBArbRuleStore: Loading device rules from rules file. 2021-02-22T00:16:21.420+03:00| usbArb| I005: VMware USB Arbitration Service Version 19.9.0 2021-02-22T00:16:21.420+03:00| usbArb| I005: USBGL: USB Sysfs found at /dev/bus/usb 2021-02-22T00:16:21.420+03:00| usbArb| I005: USBArb: Attempting to connect to existing arbitrator on /var/run/vmware/usbarbitrator-socket. 2021-02-22T00:16:21.420+03:00| usbArb| I005: SOCKET creating new socket, connecting to /var/run/vmware/usbarbitrator-socket 2021-02-22T00:16:21.420+03:00| usbArb| I005: SOCKET connect failed, error 2: No such file or directory 2021-02-22T00:16:21.420+03:00| usbArb| I005: USBArb: No other USB arbitrator instance is currently running. 2021-02-22T00:16:21.420+03:00| usbArb| I005: USBArb: listening socket 12 created successfully 2021-02-22T00:16:21.420+03:00| usbArb| I005: USBArb: adding listening socket 12 to poll queue 2021-02-22T00:17:38.000+03:00| usbArb| I005: USBArb: new socket connection estibalished: socket 4 2021-02-22T00:17:38.000+03:00| usbArb| I004: USBArb: new client 5622E98D8F90 created, socket 4 added to poll queue 2021-02-22T00:17:38.245+03:00| usbArb| I005: USBArb: Client 2058 connected (version: 8) 2021-02-22T00:17:42.423+03:00| usbArb| I005: USBArb: new socket connection estibalished: socket 13 2021-02-22T00:17:42.423+03:00| usbArb| I004: USBArb: new client 5622E98D90C0 created, socket 13 added to poll queue 2021-02-22T00:17:42.484+03:00| usbArb| I005: USBArb: Client 2218 connected (version: 8) 2021-02-22T00:17:42.484+03:00| usbArb| I005: USBArb: Registered target 'vmware-vmx:/root/vmware/Windows 7 x64/Windows 7 x64.vmx' for client 2218. 2021-02-22T00:17:42.593+03:00| usbArb| I005: USBArb: Connecting device 0x312d114db to client 2218

2021-02-22T00:19:08.678+03:00| usbArb| I004: USBArb: pipe 13 closed by client 5622E98D90C0 2021-02-22T00:19:08.678+03:00| usbArb| I004: USBArb: removing client 5622E98D90C0: pid=2218, pipe=13 2021-02-22T00:19:08.678+03:00| usbArb| I005: USBArb: Client 2218 disconnected 2021-02-22T00:19:08.682+03:00| usbArb| W003: USBGL: USBDEVFS_CONNECT(1) failed -1:16:Device or resource busy 2021-02-22T00:19:08.683+03:00| usbArb| I005: USBArb: Target 'vmware-vmx:/root/vmware/Windows 7 x64/Windows 7 x64.vmx' disconnected 2021-02-22T00:19:12.395+03:00| usbArb| I005: USBArb: new socket connection estibalished: socket 13 2021-02-22T00:19:12.395+03:00| usbArb| I004: USBArb: new client 5622E98D9920 created, socket 13 added to poll queue 2021-02-22T00:19:12.454+03:00| usbArb| I005: USBArb: Client 3770 connected (version: 8) 2021-02-22T00:19:12.454+03:00| usbArb| I005: USBArb: Registered target 'vmware-vmx:/root/vmware/Windows 7 x64/Windows 7 x64.vmx' for client 3770. 2021-02-22T00:19:12.573+03:00| usbArb| I005: USBArb: Connecting device 0x312d114db to client 3770 2021-02-22T00:19:39.459+03:00| usbArb| I005: USBArb: Disconnecting device 0x312d114db 2021-02-22T00:19:39.464+03:00| usbArb| W003: USBGL: USBDEVFS_CONNECT(1) failed -1:16:Device or resource busy 2021-02-22T00:19:43.645+03:00| usbArb| I004: USBArb: pipe 13 closed by client 5622E98D9920 2021-02-22T00:19:43.645+03:00| usbArb| I004: USBArb: removing client 5622E98D9920: pid=3770, pipe=13 2021-02-22T00:19:43.645+03:00| usbArb| I005: USBArb: Client 3770 disconnected 2021-02-22T00:19:43.645+03:00| usbArb| I005: USBArb: Target 'vmware-vmx:/root/vmware/Windows 7 x64/Windows 7 x64.vmx' disconnected 2021-02-22T00:20:01.322+03:00| usbArb| I005: USBArb: new socket connection estibalished: socket 13 2021-02-22T00:20:01.322+03:00| usbArb| I004: USBArb: new client 5622E98D81D0 created, socket 13 added to poll queue 2021-02-22T00:20:01.386+03:00| usbArb| I005: USBArb: Client 5125 connected (version: 8) 2021-02-22T00:20:01.386+03:00| usbArb| I005: USBArb: Registered target 'vmware-vmx:/root/vmware/Windows 7 x64/Windows 7 x64.vmx' for client 5125. 2021-02-22T00:21:02.955+03:00| usbArb| I004: USBArb: pipe 13 closed by client 5622E98D81D0 2021-02-22T00:21:02.955+03:00| usbArb| I004: USBArb: removing client 5622E98D81D0: pid=5125, pipe=13 2021-02-22T00:21:02.955+03:00| usbArb| I005: USBArb: Client 5125 disconnected 2021-02-22T00:21:02.955+03:00| usbArb| I005: USBArb: Target 'vmware-vmx:/root/vmware/Windows 7 x64/Windows 7 x64.vmx' disconnected 2021-02-22T00:21:04.210+03:00| usbArb| I004: USBArb: pipe 4 closed by client 5622E98D8F90 2021-02-22T00:21:04.210+03:00| usbArb| I004: USBArb: removing client 5622E98D8F90: pid=2058, pipe=4 2021-02-22T00:21:04.210+03:00| usbArb| I005: USBArb: Client 2058 disconnected

stefantalpalaru commented 3 years ago

Network configurator does not work

"On Linux hosts, select Applications > System Tools > Virtual Network Editor to start the virtual network editor. The menu path might be different for your version of Linux. You can also start the network editor from the command line by using the vmware-netcfg command." - https://docs.vmware.com/en/VMware-Workstation-Pro/16.0/com.vmware.ws.using.doc/GUID-AC956B17-30BA-45F7-9A39-DCCB96B0A713.html

It will probably want root access to write that config file.

ghost commented 3 years ago

"On Linux hosts, select Applications > System Tools > Virtual Network Editor to start the virtual network editor. The menu path might be different for your version of Linux. You can also start the network editor from the command line by using the vmware-netcfg command." - https://docs.vmware.com/en/VMware-Workstation-Pro/16.0/com.vmware.ws.using.doc/GUID-AC956B17-30BA-45F7-9A39-DCCB96B0A713.html

It will probably want root access to write that config file.

Ok, cd /opt/vmware/bin && ./vmware-netcfg

[AppLoader] Use all shipped libraries.
[AppLoader] Use all shipped libraries.
NOT_IMPLEMENTED bora/lib/unicode/unicodeSimpleBase.c:741

VMware Workstation Error:
VMware Workstation unrecoverable error: (host-9470)
NOT_IMPLEMENTED bora/lib/unicode/unicodeSimpleBase.c:741
You can request support.  

To collect data to submit to VMware support, choose "Collect Support Data" from the Help menu.
You can also run the "vm-support" script in the Workstation folder directly.
We will respond on the basis of your support entitlement.

Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

Open window:

Fail
Network configuration is missing. Ensure that /etc/vmware/networking exists
ghost commented 3 years ago

5. nano /etc/portage/package.use

app-emulation/vmware-workstation vmware-tools-linux vmware-tools-windows

Didn't fix the problem with the dialog, Guest Additions are still not available.

p.s. Well, I really need vmware workstation ...

stefantalpalaru commented 3 years ago

cd /opt/vmware/bin

No, that should already be in your PATH. Do you know how to reload the environment after installing packages?

Something like: . /etc/profile; . ~/.bashrc in your regular shell. More details here: https://dev.gentoo.org/~zmedico/portage/doc/man/env-update.1.html

ghost commented 3 years ago

No, that should already be in your PATH. Do you know how to reload the environment after installing packages?

You're right, it's better this way and initially there were no problems with it. What can you do with everything else?

stefantalpalaru commented 3 years ago

What can you do with everything else?

If I can't replicate it, I can't fix it.

ghost commented 3 years ago

What other data is required from me?

stefantalpalaru commented 3 years ago

No data, just basic system administration. After compiling a new kernel, did you emerge again the package with external kernel modules?

Init scripts are just shell scripts. Do you know how to add set -v in them to see what's executed before a failure? Do you know where your system logs are? Do you run dmesg -T | less to see what the kernel has to say?

All of this is not something I can fix for you, because it's not due to a broken ebuild.

ghost commented 3 years ago

No data, just basic system administration. After compiling a new kernel, did you emerge again the package with external kernel modules?

I did differently:

  1. Put a clean system.
  2. I made a backup using clonezilla.
  3. Every time I roll back the changes to a clean OS to debug the work of vmware workstation.
ghost commented 3 years ago

lspci

00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM77 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 730M] (rev a1)
02:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetLink BCM57785 Gigabit Ethernet PCIe (rev 10)
02:00.1 SD Host controller: Broadcom Inc. and subsidiaries BCM57765/57785 SDXC/MMC Card Reader (rev 10)
02:00.2 System peripheral: Broadcom Inc. and subsidiaries BCM57765/57785 MS Card Reader (rev 10)
02:00.3 System peripheral: Broadcom Inc. and subsidiaries BCM57765/57785 xD-Picture Card Reader (rev 10)

lsusb

Bus 003 Device 004: ID 12d1:14db Huawei Technologies Co., Ltd. E353/E3131
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 001 Device 003: ID 1bcf:2c18 Sunplus Innovation Technology Inc. HD WebCam
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ghost commented 3 years ago

dmesg.txt kern.log syslog.txt

vmware-usbarb-1528.log vmware-usbarb-1545.log vmware-usbarb-1546.log vmware-usbarb-1549.log vmware-usbarb-1511.log vmware-usbarb-1525.log vmware-usbarb-1527.log

stefantalpalaru commented 3 years ago

Every time I roll back the changes to a clean OS to debug the work of vmware workstation.

Overkill.

Your "kern.log" shows "/dev/vmmon" being created, so it's just a matter of having the right permissions to access it. Add your regular user to the "vmware" group, logout and login.

"/etc/init.d/vmware" failing to start is probably due to incompatible kernel modules. Re-emerge "vmware-modules" for the new kernel or, better yet, get in the habit of running emerge @module-rebuild every time you build a new kernel.

ghost commented 3 years ago

Your "kern.log" shows "/dev/vmmon" being created, so it's just a matter of having the right permissions to access it. Add your regular user to the "vmware" group, logout and login.

I am root =) And what does all this have to do with it? I'm having problems with:

  1. vmware-netcfg
    
    [AppLoader] Use all shipped libraries.
    [AppLoader] Use all shipped libraries.
    NOT_IMPLEMENTED bora/lib/unicode/unicodeSimpleBase.c:741

VMware Workstation Error: VMware Workstation unrecoverable error: (host-9470) NOT_IMPLEMENTED bora/lib/unicode/unicodeSimpleBase.c:741 You can request support.

To collect data to submit to VMware support, choose "Collect Support Data" from the Help menu. You can also run the "vm-support" script in the Workstation folder directly. We will respond on the basis of your support entitlement.

Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.


Open window:

Fail Network configuration is missing. Ensure that /etc/vmware/networking exists


2.  When starting the virtual machine:

VMware Tools for this virtual machine have not been found on your computer. Without VMware Tools, Easy Install will not fully complete.

There may be a version available online; would you like to download and install VMware Tools if found?

stefantalpalaru commented 3 years ago

I am root =)

And you can connect to the X.org server as root?

ghost commented 3 years ago

Considering that I'm only testing (trying to make it work), then yes. Now i need to focus on the main thing. Without vmware workstation, i can not continue doing something further. I am familiar with firejail, sudo, and so on. But I need to get started with vmware workstation.

ghost commented 3 years ago

I compiled gentoo again. The system is clean. The problems are the same.