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

open-vm-tools does not auto resize the display on Fedora 27

Open lvii opened this issue 9 years ago • 13 comments

I have installed open-vm-tools and open-vm-tools-desktop in Fedora 27 :

[root@fedora ~]# uname -a
Linux fedora 4.13.5-300.fc27.x86_64 #1 SMP Thu Oct 5 16:57:11 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

[root@fedora ~]# rpm -qa|grep open-vm
open-vm-tools-10.1.10-3.fc27.x86_64
open-vm-tools-desktop-10.1.10-3.fc27.x86_64

vmtoolsd service was auto start on boot :

[root@fedora ~]# systemctl status vmtoolsd.service
● vmtoolsd.service - Service for virtual machines hosted on VMware
   Loaded: loaded (/usr/lib/systemd/system/vmtoolsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2017-10-24 13:32:13 CST; 1min 4s ago
     Docs: http://github.com/vmware/open-vm-tools
 Main PID: 373 (vmtoolsd)
    Tasks: 1 (limit: 19660)
   CGroup: /system.slice/vmtoolsd.service
           └─373 /usr/bin/vmtoolsd

Oct 24 13:32:13 fedora systemd[1]: Started Service for virtual machines hosted on VMware.

I have to restart vmtoolsd service manually, VM could auto fit the screen.

Running vmware-user-suid-wrapper & with this error :

$ vmware-user-suid-wrapper &
[1] 1017 vmware-user: could not open /proc/fs/vmblock/dev
[1]+  Done            vmware-user-suid-wrapper

lvii avatar Oct 24 '17 05:10 lvii

Same problem on Arch linux (kernel 4.13.11)

ralves-uu avatar Nov 09 '17 11:11 ralves-uu

Same problem here after I upgraded my arch install to 4.13, although I guess kernel version maybe unrelated. For me vmtoolsd.service is started fine and I can simply run vmware-user-suid-wrapper & and resize+copypaste start working again, maybe this isn't being run on session start anymore, if it was?

Bigsy avatar Nov 11 '17 20:11 Bigsy

@Bigsy I am using archlinux too, I noticed that the launcher here:

/etc/xdg/autostart/vmware-user.desktop

is a symlink pointing to

/usr/share/applications/vmware-user.desktop

which does not exist.

Creating the file manually with the content below :

[Desktop Entry]
Type=Application
Encoding=UTF-8
Exec=/usr/bin/vmware-user-suid-wrapper
Name=VMware User Agent
# KDE bug 190522: KDE does not autostart items with NoDisplay=true...
# NoDisplay=true
X-KDE-autostart-phase=1

should restore the autostart feature.

stefcl avatar Nov 17 '17 07:11 stefcl

@Bigsy thanks, had the same problem on arch.

zbindenren avatar Nov 30 '17 06:11 zbindenren

I posted the solution above (should work for all arch flavoured distros), the root cause is a faulty symlink. However, I do not know whether this should be solved by open-vm-tools devs or reported to arch package maintainers.

stefcl avatar Nov 30 '17 07:11 stefcl

我已经安装open-vm-tools,并open-vm-tools-desktop在Fedora的27:

[root@fedora ~]# uname -a
Linux fedora 4.13.5-300.fc27.x86_64 #1 SMP Thu Oct 5 16:57:11 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

[root@fedora ~]# rpm -qa|grep open-vm
open-vm-tools-10.1.10-3.fc27.x86_64
open-vm-tools-desktop-10.1.10-3.fc27.x86_64

vmtoolsd 服务是在启动时自动启动:

[root@fedora ~]# systemctl status vmtoolsd.service
● vmtoolsd.service - Service for virtual machines hosted on VMware
   Loaded: loaded (/usr/lib/systemd/system/vmtoolsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2017-10-24 13:32:13 CST; 1min 4s ago
     Docs: http://github.com/vmware/open-vm-tools
 Main PID: 373 (vmtoolsd)
    Tasks: 1 (limit: 19660)
   CGroup: /system.slice/vmtoolsd.service
           └─373 /usr/bin/vmtoolsd

Oct 24 13:32:13 fedora systemd[1]: Started Service for virtual machines hosted on VMware.

我必须手动重启 vmtoolsd服务,VM可以自动适应屏幕。

运行vmware-user-suid-wrapper &此错误:

$ vmware-user-suid-wrapper &
[1] 1017 vmware-user: could not open /proc/fs/vmblock/dev
[1]+  Done            vmware-user-suid-wrapper

vmware-user-suid-wrapper & [1] 3605 [1] + 3605 done vmware-user-suid-wrapper
vmware-user: could not open /proc/fs/vmblock/dev /usr/bin/vmtoolsd: error while loading shared libraries: libicui18n.so.62: cannot open shared object file: No such file or directory

why

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

@Bigsy 我也在使用archlinux,我注意到这里的启动器:

/etc/xdg/autostart/vmware-user.desktop

是指向的符号链接

/usr/share/applications/vmware-user.desktop

哪个不存在。

使用以下内容手动创建文件:

[Desktop Entry]
Type=Application
Encoding=UTF-8
Exec=/usr/bin/vmware-user-suid-wrapper
Name=VMware User Agent
# KDE bug 190522: KDE does not autostart items with NoDisplay=true...
# NoDisplay=true
X-KDE-autostart-phase=1

应该恢复自动启动功能。 zsh: bad pattern: [Desktop

why

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

我已经安装open-vm-tools,并open-vm-tools-desktop在Fedora的27:

[root@fedora ~]# uname -a
Linux fedora 4.13.5-300.fc27.x86_64 #1 SMP Thu Oct 5 16:57:11 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

[root@fedora ~]# rpm -qa|grep open-vm
open-vm-tools-10.1.10-3.fc27.x86_64
open-vm-tools-desktop-10.1.10-3.fc27.x86_64

vmtoolsd 服务是在启动时自动启动:

[root@fedora ~]# systemctl status vmtoolsd.service
● vmtoolsd.service - Service for virtual machines hosted on VMware
   Loaded: loaded (/usr/lib/systemd/system/vmtoolsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2017-10-24 13:32:13 CST; 1min 4s ago
     Docs: http://github.com/vmware/open-vm-tools
 Main PID: 373 (vmtoolsd)
    Tasks: 1 (limit: 19660)
   CGroup: /system.slice/vmtoolsd.service
           └─373 /usr/bin/vmtoolsd

Oct 24 13:32:13 fedora systemd[1]: Started Service for virtual machines hosted on VMware.

我必须手动重启 vmtoolsd服务,VM可以自动适应屏幕。

运行vmware-user-suid-wrapper &此错误:

$ vmware-user-suid-wrapper &
[1] 1017 vmware-user: could not open /proc/fs/vmblock/dev
[1]+  Done            vmware-user-suid-wrapper

`vmtoolsd.service - Open Virtual Machine Tools (VMware Tools) Loaded: loaded (/usr/lib/systemd/system/vmtoolsd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2018-11-05 16:25:46 CST; 1h 57min ago Process: 338 ExecStart=/usr/bin/vmtoolsd (code=exited, status=127) Main PID: 338 (code=exited, status=127)

11月 05 16:25:45 Manjaro systemd[1]: Started Open Virtual Machine Tools (VMware Tools). 11月 05 16:25:46 Manjaro vmtoolsd[338]: /usr/bin/vmtoolsd: error while loading shared libraries: l> 11月 05 16:25:46 Manjaro systemd[1]: vmtoolsd.service: Main process exited, code=exited, status=12> 11月 05 16:25:46 Manjaro systemd[1]: vmtoolsd.service: Failed with result 'exit-code'. lines 1-10/10 (END) `

why

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

Same problem on Fedora 33, VMware Workstation 16.

msdisatis avatar Jan 18 '21 08:01 msdisatis

Same problem on Fedora 33, VMware Workstation 16.

Switch to an X based session, it does not work in Wayland.

ghost avatar Mar 26 '21 21:03 ghost

Have you checked recent comments and updates in https://github.com/vmware/open-vm-tools/issues/491

Thanks!

steve-goddard-brcm avatar Mar 28 '21 07:03 steve-goddard-brcm

I have gnome installed, and of course I am running a x-session.

msdisatis avatar Mar 28 '21 09:03 msdisatis

I believe that this issue is fixed in currently supported Fedora releases with open-vm-tools 11.3.0 or later.

johnwvmw avatar May 15 '22 17:05 johnwvmw