Open polarathene opened 1 year ago
Related is systemctl suspend
(S3). I was filing a separate issue for that, with logs collected but I when I returned to complete the bug report Windows had decided to force restart the system to apply an update... 😫
That took a while to prepare, and I don't have time to go through that again. Gist of it was:
Thank you for reporting the problem. We have informed the product team responsible for this issue. As this issue is not related to open-vm-tools, please use VMTN (https://communities.vmware.com/) or VMware Support service for further updates on this issue or other product issues unrelated to open-vm-tools.
As this issue is not related to open-vm-tools
How do you determine when it is related? There is clearly log entries from open-vm-tools
related to the failure.
Guest hibernate is not an open-vm-tools feature. The log messages about "Tools heartbeat timeout" or GuestRpc timeout/error are result of hibernate/power-off indicating loss of connection between vmx and tools. Those errors messages are not causing hibernate failure.
Describe the bug
On a Linux VM guest, hibernating fails to complete, leaving the VM guest stuck until powering off via VMware Workstation Player UI. Upon reboot, resume from hibernation is not successful.
Normally I do not need this functionality, as the VMware Workstation "Suspend" works well. When I did need to hibernate, I was surprised that it does not appear functional.
Reproduction steps
systemctl hibernate
to hibernate the system.Expected behavior
Successfully hibernate via OS.
Additional context
17.0.2 build-21581411
)open-vm-tools
version12.2.5
installed in the guest OS..vmdk
file.vmx file
``` .encoding = "windows-1252" config.version = "8" virtualHW.version = "20" pciBridge0.present = "TRUE" pciBridge4.present = "TRUE" pciBridge4.virtualDev = "pcieRootPort" pciBridge4.functions = "8" pciBridge5.present = "TRUE" pciBridge5.virtualDev = "pcieRootPort" pciBridge5.functions = "8" pciBridge6.present = "TRUE" pciBridge6.virtualDev = "pcieRootPort" pciBridge6.functions = "8" pciBridge7.present = "TRUE" pciBridge7.virtualDev = "pcieRootPort" pciBridge7.functions = "8" vmci0.present = "TRUE" hpet0.present = "TRUE" nvram = "linux_throwaway.nvram" virtualHW.productCompatibility = "hosted" gui.exitOnCLIHLT = "FALSE" powerType.powerOff = "soft" powerType.powerOn = "soft" powerType.suspend = "soft" powerType.reset = "soft" displayName = "linux_throwaway" guestOS = "other5xlinux-64" vhv.enable = "TRUE" vpmc.enable = "TRUE" tools.syncTime = "FALSE" sound.autoDetect = "TRUE" sound.fileName = "-1" sound.present = "TRUE" numvcpus = "12" cpuid.coresPerSocket = "3" vcpu.hotadd = "TRUE" memsize = "4096" mem.hotadd = "TRUE" scsi0.virtualDev = "lsilogic" scsi0.present = "TRUE" scsi0:0.fileName = "linux_throwaway.vmdk" scsi0:0.present = "TRUE" ide1:0.deviceType = "cdrom-image" ide1:0.fileName = "D:\iso\cachyos-kde-linux-230709.iso" ide1:0.present = "TRUE" usb.present = "TRUE" ehci.present = "TRUE" svga.graphicsMemoryKB = "2097152" ethernet0.connectionType = "nat" ethernet0.addressType = "generated" ethernet0.virtualDev = "e1000" ethernet0.present = "TRUE" extendedConfigFile = "linux_throwaway.vmxf" floppy0.present = "FALSE" firmware = "efi" vmxstats.filename = "linux_throwaway.scoreboard" uuid.bios = "56 4d 35 ee 8a 05 85 bf-ce 57 43 17 6a 1b 0c 74" uuid.location = "56 4d 35 ee 8a 05 85 bf-ce 57 43 17 6a 1b 0c 74" pciBridge0.pciSlotNumber = "17" pciBridge4.pciSlotNumber = "21" pciBridge5.pciSlotNumber = "22" pciBridge6.pciSlotNumber = "23" pciBridge7.pciSlotNumber = "24" scsi0.pciSlotNumber = "16" usb.pciSlotNumber = "32" ethernet0.pciSlotNumber = "33" sound.pciSlotNumber = "34" ehci.pciSlotNumber = "35" usb_xhci.pciSlotNumber = "160" scsi0:0.redo = "" svga.vramSize = "268435456" vmotion.checkpointFBSize = "4194304" vmotion.checkpointSVGAPrimarySize = "268435456" vmotion.svga.mobMaxSize = "1073741824" vmotion.svga.graphicsMemoryKB = "2097152" vmotion.svga.supports3D = "1" vmotion.svga.baseCapsLevel = "9" vmotion.svga.maxPointSize = "1" vmotion.svga.maxTextureSize = "16384" vmotion.svga.maxVolumeExtent = "2048" vmotion.svga.maxTextureAnisotropy = "16" vmotion.svga.lineStipple = "0" vmotion.svga.dxMaxConstantBuffers = "15" vmotion.svga.dxProvokingVertex = "0" vmotion.svga.sm41 = "1" vmotion.svga.multisample2x = "1" vmotion.svga.multisample4x = "1" vmotion.svga.msFullQuality = "1" vmotion.svga.logicOps = "1" vmotion.svga.bc67 = "9" vmotion.svga.sm5 = "1" vmotion.svga.multisample8x = "1" vmotion.svga.logicBlendOps = "0" vmotion.svga.maxForcedSampleCount = "16" vmotion.svga.gl43 = "1" ethernet0.generatedAddress = "00:0c:29:1b:0c:74" ethernet0.generatedAddressOffset = "0" vmci0.id = "1780157556" monitor.phys_bits_used = "45" cleanShutdown = "TRUE" softPowerOff = "TRUE" ide1:0.startConnected = "FALSE" usb.generic.allowHID = "TRUE" svga.guestBackedPrimaryAware = "TRUE" guestInfo.detailed.data = "architecture='X86' bitness='64' buildNumber='rolling' distroName='CachyOS Linux' familyName='Linux' kernelVersion='6.4.8-2-cachyos' prettyName='CachyOS'" tools.remindInstall = "FALSE" gui.lastPoweredViewMode = "fullscreen" scsi0:1.fileName = "data.vmdk" scsi0:1.present = "TRUE" scsi0:1.redo = "" checkpoint.vmState = "" usb_xhci:6.speed = "2" usb_xhci:6.present = "TRUE" usb_xhci:6.deviceType = "hub" usb_xhci:6.port = "6" usb_xhci:6.parent = "-1" usb_xhci:7.speed = "4" usb_xhci:7.present = "TRUE" usb_xhci:7.deviceType = "hub" usb_xhci:7.port = "7" usb_xhci:7.parent = "-1" scsi0:2.fileName = "linux_throwaway-swap.vmdk" scsi0:2.present = "TRUE" scsi0:2.redo = "" usb:1.speed = "2" usb:1.present = "TRUE" usb:1.deviceType = "hub" usb:1.port = "1" usb:1.parent = "-1" mks.enable3d = "TRUE" usb_xhci.present = "TRUE" usb_xhci:4.present = "TRUE" usb_xhci:4.deviceType = "hid" usb_xhci:4.port = "4" usb_xhci:4.parent = "-1" ```vmware.log
just prior to runningsystemctl hibernate
:Click to expand
``` 2023-08-31T06:24:05.002Z In(05) vmx GuestInfo: HostinfoDetailedDataHeader version: 1 2023-08-31T06:24:05.002Z No(00) vmx ConfigDB: Setting guestInfo.detailed.data =When 3D accel feature is not enabled.
systemctl hibernate
instead fails differently:vmware.log
:Click to expand
``` 2023-08-31T06:06:14.698Z In(05) vmx GuestRpc: Got error for channel 0 connection 6: Remote disconnected 2023-08-31T06:06:14.698Z In(05) vmx GuestRpc: GuestRpcResetVsockChannel: channel 0 2023-08-31T06:06:14.698Z In(05) vmx GuestRpc: Closing channel 0 connection 6 2023-08-31T06:06:14.698Z In(05) vmx GuestRpc: Got error for channel 1 connection 7: Remote disconnected 2023-08-31T06:06:14.698Z In(05) vmx GuestRpc: GuestRpcResetVsockChannel: channel 1 2023-08-31T06:06:14.698Z In(05) vmx GuestRpc: Closing channel 1 connection 7 2023-08-31T06:06:14.699Z In(05) svga SWBScreen: Screen 1 Destroyed: xywh(0, 0, 1280, 800) flags=0x2 2023-08-31T06:06:14.700Z In(05) svga SVGA-ScreenMgr: Screen type changed to RegisterMode 2023-08-31T06:06:14.700Z In(05) svga SWBScreen: Screen 1 Defined: xywh(0, 0, 1024, 768) flags=0x2 2023-08-31T06:06:14.707Z In(05) svga SWBScreen: Screen 1 Destroyed: xywh(0, 0, 1024, 768) flags=0x2 2023-08-31T06:06:14.708Z In(05) svga SVGA-ScreenMgr: Screen type changed to ScreenTarget 2023-08-31T06:06:14.708Z In(05) svga SWBScreen: Screen 1 Defined: xywh(0, 0, 1280, 800) flags=0x2 2023-08-31T06:06:15.234Z In(05) vcpu-11 VMMouse: Disabling VMMouse mode 2023-08-31T06:06:15.234Z In(05) vcpu-11 VMMouse: CMD Read ID 2023-08-31T06:06:15.236Z In(05) vcpu-10 SOUND 235.267058 ES1371Win32GetMixerCtl mixerGetLineInfo error 1024 2023-08-31T06:06:15.951Z In(05) vcpu-1 VMCI QueuePair: VMCIQueuePairDetach failed --- handle 6a1b0c74:400 not found. 2023-08-31T06:06:15.952Z In(05) vmx GuestRpc: Got RPCI vsocket connection 8, assigned to channel 0. ```This variation allows for some additional log info:
journalctl -b | grep -i hibernation
:Click to expand
``` Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff] Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0x00001000-0x00001fff] Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000bffff] Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0x000c0000-0x000fffff] Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0x0dbb7000-0x0dbb7fff] Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0x0dbb8000-0x0dbb8fff] Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0x0dbb9000-0x0dbb9fff] Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0x0dbbb000-0x0dbbbfff] Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0x0dbbc000-0x0dbbcfff] Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0x0dbc4000-0x0dbc4fff] Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0x0dbc6000-0x0dbc6fff] Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0x0e04b000-0x0e050fff] Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0x0fb6f000-0x0fbdefff] Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0x0fbdf000-0x0fbfafff] Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0x0fbfb000-0x0fbfefff] Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0xc0000000-0xffbfffff] Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0xffc00000-0xffc29fff] Aug 31 18:01:29 vm-cachyos kernel: PM: hibernation: Registered nosave memory: [mem 0xffc2a000-0xffffffff] Aug 31 18:06:04 vm-cachyos kernel: PM: hibernation: hibernation entry Aug 31 18:06:12 vm-cachyos kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00001fff] Aug 31 18:06:12 vm-cachyos kernel: PM: hibernation: Marking nosave pages: [mem 0x000a0000-0x000fffff] Aug 31 18:06:12 vm-cachyos kernel: PM: hibernation: Marking nosave pages: [mem 0x0dbb7000-0x0dbb9fff] Aug 31 18:06:12 vm-cachyos kernel: PM: hibernation: Marking nosave pages: [mem 0x0dbbb000-0x0dbbcfff] Aug 31 18:06:12 vm-cachyos kernel: PM: hibernation: Marking nosave pages: [mem 0x0dbc4000-0x0dbc4fff] Aug 31 18:06:12 vm-cachyos kernel: PM: hibernation: Marking nosave pages: [mem 0x0dbc6000-0x0dbc6fff] Aug 31 18:06:12 vm-cachyos kernel: PM: hibernation: Marking nosave pages: [mem 0x0e04b000-0x0e050fff] Aug 31 18:06:12 vm-cachyos kernel: PM: hibernation: Marking nosave pages: [mem 0x0fb6f000-0x0fbfefff] Aug 31 18:06:12 vm-cachyos kernel: PM: hibernation: Marking nosave pages: [mem 0xc0000000-0xffffffff] Aug 31 18:06:12 vm-cachyos kernel: PM: hibernation: Basic memory bitmaps created Aug 31 18:06:12 vm-cachyos kernel: PM: hibernation: Preallocating image memory Aug 31 18:06:12 vm-cachyos kernel: PM: hibernation: Allocated 364819 pages for snapshot Aug 31 18:06:12 vm-cachyos kernel: PM: hibernation: Allocated 1459276 kbytes in 7.40 seconds (197.19 MB/s) Aug 31 18:06:12 vm-cachyos kernel: PM: hibernation: Basic memory bitmaps freed Aug 31 18:06:12 vm-cachyos kernel: PM: hibernation: hibernation exit Aug 31 18:06:12 vm-cachyos systemd[1]: Dependency failed for System Hibernation. ```systemctl status systemd-hibernate
Click to expand
``` × systemd-hibernate.service - Hibernate Loaded: loaded (/usr/lib/systemd/system/systemd-hibernate.service; static) Active: failed (Result: exit-code) since Thu 2023-08-31 18:06:12 NZST; 6min ago Docs: man:systemd-hibernate.service(8) Process: 3899 ExecStart=/usr/lib/systemd/systemd-sleep hibernate (code=exited, status=1/FAILURE) Main PID: 3899 (code=exited, status=1/FAILURE) CPU: 7.427s Aug 31 18:06:04 vm-cachyos systemd[1]: Starting Hibernate... Aug 31 18:06:04 vm-cachyos systemd-sleep[3899]: Entering sleep state 'hibernate'... Aug 31 18:06:12 vm-cachyos systemd-sleep[3899]: Failed to put system to sleep. System resumed again: Device or resource busy Aug 31 18:06:12 vm-cachyos systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=1/FAILURE Aug 31 18:06:12 vm-cachyos systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'. Aug 31 18:06:12 vm-cachyos systemd[1]: Failed to start Hibernate. Aug 31 18:06:12 vm-cachyos systemd[1]: systemd-hibernate.service: Consumed 7.427s CPU time. ```Avoiding
systemctl hibernate
and instead trying to hibernate directly (suspend to disk) fails for the same reason:Due to that failure, the VM guest is still functional, but some of the functionality is not restored. Such as the VM guest cursor has become invisible as part of the hibernation attempt.