vmware / open-vm-tools

Official repository of VMware open-vm-tools project
http://sourceforge.net/projects/open-vm-tools/
2.25k stars 425 forks source link

Ubuntu 18.10 guest automatic screen resize not working #303

Closed cjmeyer closed 5 years ago

cjmeyer commented 5 years ago

I am running Ubuntu 18.10 as a guest using VMWare 15 player on a Windows 10 host.

I go through the install process for Ubuntu, restart, and everything looks fine. I restart the VM again and the screen wont resize, it is stuck at its default. Resizing the VM window doesn't have any affect.

running "ps aux | grep vmtoolsd" I get the following:

root        385  0.4  0.0 142756 10844 ?        Ssl  11:19   0:00 /usr/bin/vmtoolsd
corrin     1859  0.3  0.2 391940 36704 tty2     Sl+  11:19   0:00 /usr/bin/vmtoolsd -n vmusr --blockFd 3
corrin     2278  0.0  0.0  17480   956 pts/0    S+   11:20   0:00 grep --color=auto vmtoolsd

Copy and paste between host and guest works fine.

If I execute "systemctl restart open-vm-tools.service" automatic resizing to the VM window works again.

dbummy commented 3 years ago

I was struggling with this on 18.04 and 20.04 running on ESXi. When I was reinstalling after messing with everything on this page, I selected to install third-party software during install and now it works perfectly right out the box. Hope this helps someone!

mdontu commented 3 years ago

I encountered something similar with Ubuntu Desktop 20.04 and VMware vSphere 6.7. Just increasing the available video memory from 4MiB to 16MiB did the trick. It does not kick in immediately after boot. A cycle of enter-exit fullscreen is needed.

freemedom commented 7 months ago

I spent five hours trying various things, but nothing worked. Ubuntu 18.04.5 LTS VMware® Workstation 16 Pro install in Windows 10 Home, 64-bit (Build 19042.1288) 10.0.19042 Copying and pasting between my windows and Ubuntu was fine, as was dragging of files. The only problem is the resolution, 640x480.

$ xrandr xrandr: Failed to get size of gamma for output default Screen 0: minimum 640 x 480, current 640 x 480, maximum 640 x 480 default connected primary 640x480+0+0 0mm x 0mm 640x480 73.00*

sudo ./vmware-install.pl sudo vmware-uninstall-tools.pl sudo apt-get autoremove open-vm-tools sudo apt-get install open-vm-tools open-vm-tools-desktop sudo apt install open-vm-tools-desktop -y sudo rm -rf /etc/vmware-tools sudo apt-get remove --purge open-vm-tools open-vm-tools-desktop sudo apt-get install --reinstall open-vm-tools sudo apt-get install --reinstall open-vm-tools-desktop sudo gedit open-vm-tools.service systemctl restart open-vm-tools.service sudo gedit /etc/systemd/system/multi-user.target.wants/open-vm-tools.service systemctl status open-vm-tools vmtoolsd -v systemctl daemon-reload systemctl restart open-vm-tools ps awx | grep vmtoolsd sudo apt purge open-vm-tools sudo apt update sudo apt install open-vm-tools open-vm-tools-desktop sudo gedit /lib/systemd/system/open-vm-tools.service systemctl restart vmtoolsd

search Truncated maximum resolution for register modes to VRAM size: VRAM=8388608 bytes, max wh(1672, 1254) in .log file

add svga.minVRAMSize=16777216 svga.minVRAM8MB=TRUE in .vmx file

dpkg -s open-vm-tools Package: open-vm-tools Status: install ok installed Priority: optional Section: admin Installed-Size: 2093 Maintainer: Ubuntu Developers ubuntu-devel-discuss@lists.ubuntu.com Architecture: amd64 Version: 2:11.0.5-4ubuntu0.18.04.3 Replaces: open-vm-tools-desktop (<< 2:10.0.7-3227872-2~)

/var/log/vmware-vmsvc.log /var/log/vmware-vmsvc-root.log [2024-02-22T12:03:23.269Z] [ message] [vmsvc] Log caching is enabled with maxCacheEntries=4096. [2024-02-22T12:03:23.270Z] [ message] [vmsvc] Core dump limit set to -1 [2024-02-22T12:03:23.270Z] [ message] [vmtoolsd] Tools Version: 10.3.10.11 (build-13959562) [2024-02-22T12:03:23.605Z] [ message] [vmsvc] Cannot load message catalog for domain 'hgfsServer', language 'zh', catalog dir '/etc/vmware-tools'. [2024-02-22T12:03:23.607Z] [ message] [vmtoolsd] Plugin 'hgfsServer' initialized. [2024-02-22T12:03:23.607Z] [ message] [vix] QueryVGAuthConfig: vgauth usage is: 1 [2024-02-22T12:03:23.607Z] [ message] [vmsvc] Cannot load message catalog for domain 'vix', language 'zh', catalog dir '/etc/vmware-tools'. [2024-02-22T12:03:23.607Z] [ message] [vmtoolsd] Plugin 'vix' initialized. [2024-02-22T12:03:23.607Z] [ message] [vmsvc] Cannot load message catalog for domain 'autoUpgrade', language 'zh', catalog dir '/etc/vmware-tools'. [2024-02-22T12:03:23.607Z] [ message] [vmtoolsd] Plugin 'autoUpgrade' initialized. [2024-02-22T12:03:23.607Z] [ message] [vmsvc] Cannot load message catalog for domain 'deployPkg', language 'zh', catalog dir '/etc/vmware-tools'. [2024-02-22T12:03:23.607Z] [ message] [vmtoolsd] Plugin 'deployPkg' initialized. [2024-02-22T12:03:23.685Z] [ message] [vmsvc] Cannot load message catalog for domain 'grabbitmqProxy', language 'zh', catalog dir '/etc/vmware-tools'. [2024-02-22T12:03:23.685Z] [ message] [vmtoolsd] Plugin 'grabbitmqProxy' initialized. [2024-02-22T12:03:23.685Z] [ message] [vmsvc] Cannot load message catalog for domain 'guestInfo', language 'zh', catalog dir '/etc/vmware-tools'. [2024-02-22T12:03:23.685Z] [ message] [vmtoolsd] Plugin 'guestInfo' initialized. [2024-02-22T12:03:23.685Z] [ message] [vmsvc] Cannot load message catalog for domain 'powerops', language 'zh', catalog dir '/etc/vmware-tools'. [2024-02-22T12:03:23.685Z] [ message] [vmtoolsd] Plugin 'powerops' initialized. [2024-02-22T12:03:23.689Z] [ message] [resolutionCommon] resolutionCheckForKMS: dlopen succeeded. [2024-02-22T12:03:24.144Z] [ warning] [resolutionCommon] resolutionCheckForKMS: No system support for resolutionKMS. [2024-02-22T12:03:24.144Z] [ message] [vmsvc] Cannot load message catalog for domain 'timeSync', language 'zh', catalog dir '/etc/vmware-tools'. [2024-02-22T12:03:24.144Z] [ message] [vmtoolsd] Plugin 'timeSync' initialized. [2024-02-22T12:03:24.144Z] [ message] [vmsvc] Cannot load message catalog for domain 'vmbackup', language 'zh', catalog dir '/etc/vmware-tools'. [2024-02-22T12:03:24.144Z] [ message] [vmtoolsd] Plugin 'vmbackup' initialized. [2024-02-22T12:03:27.149Z] [ warning] [vmsvc] SimpleSock: failed to connect (1022 => 976), error 110: 连接超时 [2024-02-22T12:08:02.671Z] [ message] [vmtoolsd] Unloading plugin 'vmbackup'. [2024-02-22T12:08:02.671Z] [ message] [vmtoolsd] Unloading plugin 'timeSync'. [2024-02-22T12:08:02.671Z] [ message] [vmtoolsd] Unloading plugin 'powerops'. [2024-02-22T12:08:02.671Z] [ message] [vmtoolsd] Unloading plugin 'guestInfo'. [2024-02-22T12:08:02.671Z] [ message] [vmtoolsd] Unloading plugin 'grabbitmqProxy'. [2024-02-22T12:08:02.671Z] [ message] [vmtoolsd] Unloading plugin 'deployPkg'. [2024-02-22T12:08:02.671Z] [ message] [vmtoolsd] Unloading plugin 'autoUpgrade'. [2024-02-22T12:08:02.671Z] [ message] [vmtoolsd] Unloading plugin 'vix'. [2024-02-22T12:08:02.671Z] [ message] [vmtoolsd] Unloading plugin 'hgfsServer'.

https://bugs.launchpad.net/ubuntu/+source/open-vm-tools/+bug/1818473

/etc/vmware/tools.conf vmsvc.level = debug [2024-02-21T17:15:26.559Z] [ debug] [resolutionCommon] resolutionXorgDriverVersion: Scanning for VMWare Xorg drivers. [2024-02-21T17:15:26.559Z] [ debug] [resolutionCommon] resolutionXorgDriverVersion: Looking for "/usr/lib64/xorg/modules/drivers/vmware_drv.so". [2024-02-21T17:15:26.559Z] [ debug] [resolutionCommon] resolutionXorgDriverVersion: Looking for "/usr/lib/xorg/modules/drivers/vmware_drv.so". [2024-02-21T17:15:26.560Z] [ debug] [resolutionCommon] resolutionXorgDriverVersion: Driver found. Looking for version info. [2024-02-21T17:15:26.562Z] [ debug] [resolutionCommon] resolutionXorgDriverVersion: Version info found: 13.3.0 [2024-02-21T17:15:26.562Z] [ debug] [resolutionCommon] resolutionCheckForKMS: ResolutionKMS enabled based on Xorg driver version. [2024-02-21T17:15:26.563Z] [ message] [resolutionCommon] resolutionCheckForKMS: dlopen succeeded. [2024-02-21T17:15:26.767Z] [ debug] [resolutionCommon] resolutionDRMRPrimaryCheckOpen: Failed to open DRM render node. [2024-02-21T17:15:26.884Z] [ debug] [resolutionCommon] resolutionDRMRPrimaryCheckOpen: Failed to open DRM card node. [2024-02-21T17:15:26.885Z] [ warning] [resolutionCommon] resolutionCheckForKMS: No system support for resolutionKMS.


This problem is caused by my own modification of the files in VMware Workstation. ( ̄▽ ̄) I forgot that I ran a program a year ago to modify some files related to preventing virtualization detection in C:\Program Files (x86)\VMware\VMware Workstation\x64 directory. I have just reinstalled/repaired VMware Workstation 16 and the resolution Autofit Guest is back to normal.

bzed commented 7 months ago

@freemedom your Ubuntu is way too old. Basically 5, almost 6 years old. Update Ubuntu and try again.