VMware Communities
russell11
Contributor
Contributor

After the Mac goes to sleep the vm powers off?

Hey,

 

I'm on OSX 10.15.7 and running the trial version of VMware Fusion 12.1.1.  Things work great, but as soon as the laptop goes to sleep the machine powers off. 

I would like to have the machine either suspend or not be powered off.  But i can't figure out how to change the behaviour.

 

I tried looking in syslog and could find that linux isn't notified about power state changes, so I think the VM is crashing, or being hard powered off by vmware.

Any suggestions for how i should go about debugging this?

Reply
0 Kudos
7 Replies
wila
Immortal
Immortal

Hi,

Are you passing the power state of the host to the VM?

You can check this via the menu, with the VM selected go to -> Virtual Machine -> Settings -> Advanced

Then see if the "Pass power status to this vm" check is checked.

--
Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos
russell11
Contributor
Contributor

No i'm not,  should i be?

I disabled it yesterday after hunting through the menus looking for anything power related.

Reply
0 Kudos
wila
Immortal
Immortal

If you want the VM to act on these type of things then I would suggest to have this checked.

--
Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos
russell11
Contributor
Contributor

Ah ok, so i'm assuming then that when the laptop goes to sleep that VMware powers off all vms?

Reply
0 Kudos
wila
Immortal
Immortal

Hi,

No I don't think so, I always have my VM's running when the host goes to sleep.
Never any issues and they just continue running.

When I'm on battery, the VM's will suspend automatically after I don't use them for a while.

Setting this checkbox will let your VM decide on what to do.

I expect it to be macOS to be closing all apps when sleeping, but I'm unsure as to what to change at your host. Sorry.

--
Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos
russell11
Contributor
Contributor

OK, so that is exactly what is was looking for.  So since this isn't normal behaviour i went looking around for logs.  I have attached the last bit of them, 

And it looks like when the keyboards are being detected, that vmware crashes.  I'll have to investigate further, but at least i now know where to start looking.

The keyboards i have are: Ergodox running QMK Firmware, and i'm also using Karabiner-Elements to help improve the bindings when editing text.  So I guess i should start trying to remove some of these and see if it makes a difference.

2021-04-21T18:12:08.113+02:00| vmx| I005: VNET: MACVNetLinkStateTimerHandler: 'ethernet0' state from 1 to 5.
2021-04-21T18:12:13.273+02:00| mks| I005: SWBWindow: Number of MKSWindows changed: 1 rendering MKSWindow(s) of total 1.
2021-04-21T18:12:13+02:00[+2.574]| keyboard| W003: Caught signal 11 -- tid 2224494 (addr 107556A14)
2021-04-21T18:12:13+02:00[+2.574]| keyboard| I005: SIGNAL: rip 0x7fff6b55a9c6 rsp 0x700009363de0 rbp 0x700009363de0
2021-04-21T18:12:13+02:00[+2.574]| keyboard| I005: SIGNAL: rax 0x107556a14 rbx 0x7ff0b887f1a8 rcx 0x0 rdx 0x1 rsi 0x7ff0b887f1a8 rdi 0x107556a14
2021-04-21T18:12:13+02:00[+2.574]| keyboard| I005:         r8 0x0 r9 0x0 r10 0x10b56ed58 r11 0xffff80104ecd786c r12 0x107556a14 r13 0x0 r14 0x107556a00 r15 0x1
2021-04-21T18:12:13+02:00[+2.574]| keyboard| I005: SIGNAL: stack 700009363DE0 : 0x0000700009363e20 0x00007fff34205d9b
2021-04-21T18:12:13+02:00[+2.574]| keyboard| I005: SIGNAL: stack 700009363DF0 : 0x0000000000001a00 0x0000000107555000
2021-04-21T18:12:13+02:00[+2.574]| keyboard| I005: SIGNAL: stack 700009363E00 : 0x00007ff09f42c190 0x00007ff0b88582a0
2021-04-21T18:12:13+02:00[+2.574]| keyboard| I005: SIGNAL: stack 700009363E10 : 0x0000000000010000 0x00007ff09f61b550
2021-04-21T18:12:13+02:00[+2.574]| keyboard| I005: SIGNAL: stack 700009363E20 : 0x0000700009363e70 0x000000010b5644b4
2021-04-21T18:12:13+02:00[+2.574]| keyboard| I005: SIGNAL: stack 700009363E30 : 0x00007ff0b887f170 0x000000006b51ad7a
2021-04-21T18:12:13+02:00[+2.574]| keyboard| I005: SIGNAL: stack 700009363E40 : 0x00007ff0b88874e0 0x00007fff6a1af800
2021-04-21T18:12:13+02:00[+2.574]| keyboard| I005: SIGNAL: stack 700009363E50 : 0x0000000000000000 0x00007ff0b887f0e0
2021-04-21T18:12:13+02:00[+2.574]| keyboard| I005: Backtrace:

 

Reply
0 Kudos
wila
Immortal
Immortal

Hi,

Ahh.. good catch, I completely forgot about that issue.

This is a problem that sometimes shows up when VMware Fusion's new keyboard logic tries to sync the keyboard LED lights...

 

See the workaround as provided by Darius here:

Re: Problem when host (Mac) is going to sleep

edit: updated the link as it no longer went straight to the correct reply (forum software was changed since then)

--
Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos