rasa / vmware-tools-patches

Patch and build VMware tools automatically
https://github.com/rasa/vmware-tools-patches/wiki
MIT License
1.19k stars 198 forks source link

System hangs/panics on Fedora 22 ./compile.sh installation #46

Open alex-sherwin opened 9 years ago

alex-sherwin commented 9 years ago

System hangs/panics on Fedora 22 (kernel 4.0) ./compile.sh installation

Suspected it was thinprint, disabled it in the vmware-configure-tools.pl script before using ./compile.sh but no joy.

Everything compiles and installs but panics at the end when Starting vmware-tools (via systemctl)

Everything works fine on Fedora 21 with the 4.0 kernel

swilson62 commented 9 years ago

Same issue here. Reboot afterwards for me causes panic during boot. Booting into rescue kernel & running "systemctl disable vmware-tools.service" allowed system to boot. The "vmware-tools-thinprint.service" is still enabled & is active after boot.

After system boots, running "systemctl start vmware-tools.service" causes immediate panic. Tried but was unable to capture kdump. Reboots into crash kernel, runs awhile, then boots back into normal kernel, but there is no crash file to be found. Enabling vmware tools debug logging generated two log files.

/tmp/vmwaretoolsd.log: [Jun 03 15:25:24.270] [ debug] [vmtoolsd] CmdLine: "/usr/lib/vmware-tools/sbin64/vmtoolsd -n vmusr" [Jun 03 15:25:24.270] [ message] [vmtoolsd] Tools Version: 9.9.2.44151 (build-2496486) [Jun 03 15:25:25.610] [ debug] [vmtoolsd] Plugin 'hgfsServer' initialized. [Jun 03 15:25:25.610] [ debug] [vmtoolsd] Plugin 'vix' initialized. [Jun 03 15:25:25.640] [ debug] [vmtoolsd] Plugin 'desktopEvents' initialized. [Jun 03 15:25:25.663] [ debug] [vmtoolsd] Plugin 'dndCP' initialized. [Jun 03 15:25:25.670] [ debug] [vmtoolsd] Plugin 'resolutionSet' initialized. [Jun 03 15:25:25.911] [ debug] [vmtoolsd] Plugin 'unity' initialized. [Jun 03 15:25:25.913] [ debug] [vmtoolsd] Setting option 'synctime' to '1'. [Jun 03 15:25:25.913] [ debug] [vmtoolsd] Setting option 'copypaste' to '1'. [Jun 03 15:25:25.913] [ debug] [vmtoolsd] Setting option 'autohide' to '0'. [Jun 03 15:25:25.913] [ debug] [vmtoolsd] Setting option 'broadcastIP' to '1'. [Jun 03 15:25:25.913] [ debug] [vmtoolsd] Setting option 'enableDnD' to '1'. [Jun 03 15:25:25.915] [ debug] [vmtoolsd] Setting option 'synctime.period' to '0'. [Jun 03 15:25:25.915] [ debug] [vmtoolsd] Setting option 'time.synchronize.tools.enable' to '1'. [Jun 03 15:25:25.915] [ debug] [vmtoolsd] Setting option 'time.synchronize.tools.startup' to '1'. [Jun 03 15:25:25.915] [ debug] [vmtoolsd] Setting option 'toolScripts.afterPowerOn' to '1'. [Jun 03 15:25:25.915] [ debug] [vmtoolsd] Setting option 'toolScripts.beforePowerOff' to '1'. [Jun 03 15:25:25.915] [ debug] [vmtoolsd] Setting option 'toolScripts.afterResume' to '1'. [Jun 03 15:25:25.915] [ debug] [vmtoolsd] Setting option 'toolScripts.beforeSuspend' to '1'. [Jun 03 15:25:25.915] [ debug] [vmtoolsd] Setting option 'time.synchronize.tools.slewCorrection' to '1'. [Jun 03 15:25:25.915] [ debug] [vmtoolsd] Setting option 'time.synchronize.tools.percentCorrection' to '0'. [Jun 03 15:25:25.915] [ debug] [vmtoolsd] Setting option 'mapRootHgfsShare' to '0'. [Jun 03 15:25:25.916] [ debug] [vmtoolsd] Setting option 'linkRootHgfsShare' to '0'. [Jun 03 15:25:25.916] [ debug] [vmtoolsd] Setting option 'enableMessageBusTunnel' to '0'.

/tmp/vmware-swilson/vmware-apploader-2005.log: 2015-06-03T15:25:24.183-06:00| appLoader| I120: Log for appLoader pid=2005 version=9.9.2 build=build-2496486 option=Release 2015-06-03T15:25:24.183-06:00| appLoader| I120: The process is 64-bit. 2015-06-03T15:25:24.183-06:00| appLoader| I120: Host codepage=UTF-8 encoding=UTF-8 2015-06-03T15:25:24.183-06:00| appLoader| I120: Host is Linux 4.0.4-303.fc22.x86_64 Fedora release 22 (Twenty Two) 2015-06-03T15:25:24.231-06:00| appLoader| I120: Invocation: "/usr/lib/vmware-tools/sbin64/vmtoolsd -n vmusr" 2015-06-03T15:25:24.235-06:00| appLoader| I120: Calling: "/usr/lib/vmware-tools/sbin64/vmtoolsd -n vmusr" 2015-06-03T15:25:24.235-06:00| appLoader| I120: VMDEVEL not set. 2015-06-03T15:25:24.235-06:00| appLoader| I120: VMWARE_SHIPPED_LIBS_LIST is not set. 2015-06-03T15:25:24.235-06:00| appLoader| I120: VMWARE_SYSTEM_LIBS_LIST is not set. 2015-06-03T15:25:24.235-06:00| appLoader| I120: VMWARE_USE_SHIPPED_LIBS is not set. 2015-06-03T15:25:24.235-06:00| appLoader| I120: VMWARE_USE_SYSTEM_LIBS is not set. 2015-06-03T15:25:24.235-06:00| appLoader| I120: Using configuration file /etc/vmware-tools/config. 2015-06-03T15:25:24.235-06:00| appLoader| I120: Using library directory: /usr/lib/vmware-tools. 2015-06-03T15:25:24.248-06:00| appLoader| I120: Shipped glib version is 2.24 2015-06-03T15:25:24.248-06:00| appLoader| I120: System glib version is 2.44 2015-06-03T15:25:24.248-06:00| appLoader| I120: Using system version of glib. 2015-06-03T15:25:24.248-06:00| appLoader| I120: Detected VMware library libvmtoolsd.so. 2015-06-03T15:25:24.248-06:00| appLoader| I120: Marking libvmtoolsd.so node as SHIPPED. 2015-06-03T15:25:24.248-06:00| appLoader| I120: Marking libgcc_s.so.1 node as INVALID. 2015-06-03T15:25:24.248-06:00| appLoader| I120: Detected VMware library libvmtools.so. 2015-06-03T15:25:24.248-06:00| appLoader| I120: Marking libvmtools.so node as SHIPPED. 2015-06-03T15:25:24.249-06:00| appLoader| I120: Marking libgthread-2.0.so.0 node as INVALID. 2015-06-03T15:25:24.249-06:00| appLoader| I120: Marking libgobject-2.0.so.0 node as INVALID. 2015-06-03T15:25:24.249-06:00| appLoader| I120: Marking libgmodule-2.0.so.0 node as INVALID. 2015-06-03T15:25:24.249-06:00| appLoader| I120: Marking libglib-2.0.so.0 node as INVALID. 2015-06-03T15:25:24.249-06:00| appLoader| I120: Created dependency tree. 2015-06-03T15:25:24.249-06:00| appLoader| I120: -- Processing libglib-2.0.so.0 -- 2015-06-03T15:25:24.249-06:00| appLoader| I120: GLib: glib_major_version: Comparing 2 with 2 2015-06-03T15:25:24.249-06:00| appLoader| I120: GLib: glib_minor_version: Comparing 44 with 44 2015-06-03T15:25:24.249-06:00| appLoader| I120: libglib-2.0.so.0 validator returned true. 2015-06-03T15:25:24.249-06:00| appLoader| I120: Marking libglib-2.0.so.0 node as SYSTEM. 2015-06-03T15:25:24.249-06:00| appLoader| I120: -- Finished processing libglib-2.0.so.0 -- 2015-06-03T15:25:24.249-06:00| appLoader| I120: Marking libgmodule-2.0.so.0 node as SYSTEM. 2015-06-03T15:25:24.249-06:00| appLoader| I120: Marking libgobject-2.0.so.0 node as SYSTEM. 2015-06-03T15:25:24.249-06:00| appLoader| I120: Marking libgthread-2.0.so.0 node as SYSTEM. 2015-06-03T15:25:24.249-06:00| appLoader| I120: Marking libgcc_s.so.1 node as SYSTEM. 2015-06-03T15:25:24.249-06:00| appLoader| I120: libvmtoolsd.so 2015-06-03T15:25:24.249-06:00| appLoader| I120: libgthread-2.0.so.0 2015-06-03T15:25:24.249-06:00| appLoader| I120: libgmodule-2.0.so.0 2015-06-03T15:25:24.249-06:00| appLoader| I120: libgobject-2.0.so.0 2015-06-03T15:25:24.249-06:00| appLoader| I120: libglib-2.0.so.0 2015-06-03T15:25:24.249-06:00| appLoader| I120: libvmtools.so 2015-06-03T15:25:24.249-06:00| appLoader| I120: libgcc_s.so.1 2015-06-03T15:25:24.264-06:00| appLoader| I120: Shipped glib version is 2.24 2015-06-03T15:25:24.264-06:00| appLoader| I120: System glib version is 2.44 2015-06-03T15:25:24.264-06:00| appLoader| I120: Using system version of glib. 2015-06-03T15:25:24.265-06:00| appLoader| I120: Loading system version of libglib-2.0.so.0. 2015-06-03T15:25:24.265-06:00| appLoader| I120: Loading system version of libgmodule-2.0.so.0. 2015-06-03T15:25:24.265-06:00| appLoader| I120: Loading system version of libgthread-2.0.so.0. 2015-06-03T15:25:24.265-06:00| appLoader| I120: Loading system version of libgobject-2.0.so.0. 2015-06-03T15:25:24.265-06:00| appLoader| I120: Loading shipped version of libvmtools.so. 2015-06-03T15:25:24.265-06:00| appLoader| I120: Loading system version of libgcc_s.so.1.

swilson62 commented 9 years ago

Was able to get kernel dump. Captured the following panic in the log:

[ 119.230414] vmhgfs: module verification failed: signature and/or required key missing - tainting kernel [ 119.246665] PANIC: double fault, error_code: 0x0 [ 119.246669] CPU: 0 PID: 3790 Comm: mount.vmhgfs Tainted: G OE 4.0.4-303.fc22.x86_64 #1 [ 119.246669] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 05/20/2014 [ 119.246670] task: ffff880094bd1dd0 ti: ffff88009e134000 task.ti: ffff88009e134000 [ 119.246671] RIP: 0010:[] [] calloc+0x9/0x20 [vmhgfs] [ 119.246675] RSP: 0018:ffff88009e125000 EFLAGS: 00010202 [ 119.246675] RAX: 0000000000000000 RBX: ffffffffa04db3d8 RCX: ffff88009e137cd0 [ 119.246676] RDX: ffffffffa04dbb90 RSI: 0000000000000001 RDI: 0000000000000008 [ 119.246676] RBP: ffff88009e125008 R08: ffffffffa04dbb90 R09: 0000000000000000 [ 119.246677] R10: ffff880138aaa000 R11: 0000000000018dc8 R12: ffffffffa04db3a0 [ 119.246677] R13: ffff880138aaa000 R14: 0000000000000000 R15: ffff88009e137c5e [ 119.246678] FS: 00007f615d266700(0000) GS:ffff88013a600000(0000) knlGS:0000000000000000 [ 119.246679] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 119.246679] CR2: ffff88009e124ff8 CR3: 000000009721c000 CR4: 00000000001407f0 [ 119.246711] Stack: [ 119.246712] ffffffffa04d8db7 ffff88009e125018 ffffffffa04d8db7 ffff88009e125028 [ 119.246713] ffffffffa04d8db7 ffff88009e125038 ffffffffa04d8db7 ffff88009e125048 [ 119.246714] ffffffffa04d8db7 ffff88009e125058 ffffffffa04d8db7 ffff88009e125068 [ 119.246715] Call Trace: [ 119.246715] [ 119.246716] Code: [ 119.246716] 00 00 0f 1f 44 00 00 48 85 ff 74 0e 55 48 83 ef 08 48 89 e5 e8 89 51 d2 e0 5d f3 c3 66 0f 1f 44 00 00 0f 1f 44 00 00 48 0f af fe <55> [ 119.246723] swap_dup: Bad swap file entry 287fffc4004f0980 [ 119.246724] swap_dup: Bad swap file entry 287fffc4004f0981 [ 119.246724] be 01 00 00 00 48 89 [ 119.246726] swap_dup: Bad swap file entry 287fffc4004f0982 [ 119.246726] swap_dup: Bad swap file entry 287fffc4004f0983 [ 119.246727] swap_dup: Bad swap file entry 287fffc4004f0984 [ 119.246727] swap_dup: Bad swap file entry 287fffc4004f0985 [ 119.246728] swap_dup: Bad swap file entry 287fffc4004f0986 [ 119.246728] swap_dup: Bad swap file entry 287fffc4004f0987 [ 119.246729] e5 [ 119.246729] swap_dup: Bad swap file entry 287fffc4004f0983 [ 119.246729] e8 e9 ff ff ff 5d c3 0f 1f 80 00 00 [ 119.246733] Kernel panic - not syncing: Machine halted. [ 119.246734] CPU: 0 PID: 3790 Comm: mount.vmhgfs Tainted: G OE 4.0.4-303.fc22.x86_64 #1 [ 119.246734] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 05/20/2014 [ 119.246735] 0000000000000000 000000001d12b713 ffff88013a604e78 ffffffff81783124 [ 119.246736] 0000000000000000 ffffffff81a3ee1f ffff88013a604ef8 ffffffff81781e94 [ 119.246737] ffff880000000008 ffff88013a604f08 ffff88013a604ea8 000000001d12b713 [ 119.246738] Call Trace: [ 119.246738] <#DF> [] dump_stack+0x45/0x57 [ 119.246743] [] panic+0xd0/0x203 [ 119.246746] [] df_debug+0x35/0x40 [ 119.246748] [] do_double_fault+0x87/0x100 [ 119.246750] [] double_fault+0x28/0x30 [ 119.246752] [] ? calloc+0x9/0x20 [vmhgfs]

askmeaks commented 9 years ago

I'm facing the same issue while compiling and starting the vmware-tools service.

likan999 commented 9 years ago

Same issue here. I believe it is caused by vmhgfs, because before upgrading to VMWare-Tools-9.9.3, the vmhgfs in VMWare-Tools-9.9.2 failed to compile, and there was no crash; after I manually fixed the compile errors, then it crashed the system. Hope this is helpful for you guys to debug.

rasa commented 9 years ago

Please try upgrading to VMWare-Tools-9.9.3.

askmeaks commented 9 years ago

Still failing with VMWare-Tools-9.9.3 and Linux kernel 4.0.5.

christopher-henderson commented 9 years ago

As per likan999's hunch, disabling vmhgfs worked around the issue for me.

mikechen163 commented 9 years ago

I got same problem. after disable vmhgfs, it worked, but copy and paste can't work

hirodotp commented 9 years ago

Same issue here. Fedora 22, Kernel 4.0.8-300.fc22.x86_64, VMWare Tools 9.9.3-2759765.

ramanark commented 9 years ago

Cent OS 2.6.32-431.11.2.el6.x86_64, ESXi 6. no issues with installing vmware-tools RPM's. i experience similar issue. please advise on how to disable "vmhgfs".