open-vm-tools icon indicating copy to clipboard operation
open-vm-tools copied to clipboard

Ubuntu 18.10 guest automatic screen resize not working

Open cjmeyer opened this issue 8 years ago • 54 comments

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.

cjmeyer avatar Oct 31 '18 15:10 cjmeyer

I've also the same problem. I've updated system from 18.04 to 18.10 and got that problem, which resolved every boot by:

systemctl restart open-vm-tools.service

ps aux | grep vmtoolsd:

root        418  0.1  0.0  60612 10860 ?        Ss   17:32   0:00 /usr/bin/vmtoolsd
test       1709  0.3  0.3 382016 35976 ?        Sl   17:33   0:00 /usr/bin/vmtoolsd -n vmusr --blockFd 3
test       1999  0.0  0.0   8864   824 pts/0    S+   17:34   0:00 grep --color=auto vmtoolsd

stiig avatar Nov 01 '18 12:11 stiig

I too have the same problem with Xubuntu 18.10, whether upgraded from 18.04 or clean installed. Restarting the open-vm-tools.service will get it working until rebooted.

titan99855 avatar Nov 01 '18 17:11 titan99855

Not sure if it matters but it is the same for both Wayland and Xorg for me. The issue is present right from the beginning with the login screen.

cjmeyer avatar Nov 01 '18 18:11 cjmeyer

This might be a dup of issue #253. Can you please try adding this line in the Unit section of open-vm-tools?

After=graphical.target

oliverkurth avatar Nov 01 '18 18:11 oliverkurth

That seems to fix it for me. Thank you.

cjmeyer avatar Nov 01 '18 20:11 cjmeyer

Yes, fixed

alextangent avatar Nov 01 '18 20:11 alextangent

Yes, that's works! Thanks!

stiig avatar Nov 02 '18 10:11 stiig

➜ ~ systemctl restart open-vm-tools.service Failed to restart open-vm-tools.service: Unit open-vm-tools.service not found.

why

king-gu avatar Nov 05 '18 09:11 king-gu

@king-gu try to reinstall open-vm-tools

stiig avatar Nov 05 '18 12:11 stiig

@king-gu try to reinstall open-vm-tools

I am a beginner, can attach code

king-gu avatar Nov 05 '18 14:11 king-gu

@king-gu try to reinstall open-vm-tools

Thank you very much for the

king-gu avatar Nov 05 '18 14:11 king-gu

sudo apt purge open-vm-tools sudo apt update sudo apt install open-vm-tools open-vm-tools-desktop

titan99855 avatar Nov 05 '18 15:11 titan99855

sudo apt purge open-vm-tools sudo apt update sudo apt install open-vm-tools open-vm-tools-desktop

错误:未找到目标:open-vm-tools-desktop

why

king-gu avatar Nov 05 '18 15:11 king-gu

Most of the Linux distributions ship two open-vm-tools packages, "open-vm-tools" and "open-vm-tools-desktop". "open-vm-tools" is the core package without any dependencies on X libraries and "open-vm-tools-desktop" is an additional package with dependencies on "open-vm-tools" core package and X libraries.

If your VM is using a desktop environment, you need the open-vm-tools-desktop to enable resizing.

titan99855 avatar Nov 05 '18 15:11 titan99855

sudo apt purge open-vm-tools sudo apt update sudo apt install open-vm-tools open-vm-tools-desktop

错误:未找到目标:open-vm-tools-desktop

why

@king-gu because you didn't install open-vm-tools, try only:

sudo apt install open-vm-tools open-vm-tools-desktop

stiig avatar Nov 06 '18 09:11 stiig

Here is how to fix it...

Edit: /etc/systemd/system/multi-user.target.wants/open-vm-tools.service

Add the following to the end of the "Unit" section:

Requires=graphical.target After=graphical.target

Reboot.

Thanks to Robert G @ askubuntu, and for your reference: https://askubuntu.com/questions/1085621/vmware-workstation-ubuntu-18-10-full-screen-problem

ManuelBerrueta avatar Nov 27 '18 14:11 ManuelBerrueta

Restarting the service and editing it haven't resolved this issue for me.

ps aux | grep vmtoolsd:

shuri      1496  0.1  1.7 390808 35992 tty2     Sl+  11:13   0:02 /usr/bin/vmtoolsd -n vmusr --blockFd 3
root       4437  0.0  0.5  69264 11088 ?        Ss   11:22   0:01 /usr/bin/vmtoolsd
shuri      8601  0.0  0.0  17480   956 pts/0    S+   11:46   0:00 grep --color=auto vmtoolsd

NTWarrior avatar Nov 28 '18 11:11 NTWarrior

This might be a dup of issue #253. Can you please try adding this line in the Unit section of open-vm-tools?

After=graphical.target

Here is how to fix it...

Edit: /etc/systemd/system/multi-user.target.wants/open-vm-tools.service

Add the following to the end of the "Unit" section:

Requires=graphical.target After=graphical.target

Reboot.

Thanks to Robert G @ askubuntu, and for your reference: https://askubuntu.com/questions/1085621/vmware-workstation-ubuntu-18-10-full-screen-problem

Both don't work here, so I'll have to stick to restarting the service. Any other ideas?

KaeLL avatar Dec 29 '18 19:12 KaeLL

None of the methods described above solved my problem. You can resolve the display resolution problem with this guide: https://www.sysnettechsolutions.com/en/install-vmware-tools-in-ubuntu-16-10/

TolgaBagci avatar Jan 21 '19 15:01 TolgaBagci

I managed to work around the issue by installing only open-vm-tools-desktop. Most of the times it works, and when it doesn't, I restart the service and it's good to go. Worth mentioning that it happens only in Ubuntu but not on Kubuntu, at least so far in my testing.

KaeLL avatar Jan 22 '19 09:01 KaeLL