Skip to content

Resuming suspended VM... VirtualMachine going sleep after few minutes #508

@alexey-shishkin

Description

@alexey-shishkin

Hello!

I have strange issue with my VM.

Im using Parallels Desktop, MacOS 15.4.1.

After few minutes VM going to sleep.

I have tried to fix by changing few settings:

  1. sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
  2. Created /etc/systemd/sleep.conf.d/no-suspend-hibernate.conf with contents
[Sleep]
# disable hibernation
AllowSuspend=no
AllowHibernation=no
AllowHybridSleep=no
AllowSuspendThenHibernate=no
  1. Changed MacOS settings:
pmset -g                                                          
System-wide power settings:
 SleepDisabled		1
Currently in use:
 standby              0
 Sleep On Power Button 1
 autorestart          0
 SleepServices        0
 powernap             0
 networkoversleep     0
 disksleep            0
 sleep                0 (sleep prevented by powerd, bluetoothd, sharingd)
 ttyskeepawake        1
 displaysleep         0
 tcpkeepalive         1
 lowpowermode         0
 womp                 0

Maybe I missed something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions