I got this working some time ago, but I infrequently get an edge case where the entire server crashes and shuts down if I don't have my VM in sleep. It's likely related to this command I set up to send after wake:
virsh dompmwakeup "VM"
I usually have the VM active and sleeping, but not always. Does anyone know why it crashes and/or a possible solution to this problem? It's likely to be exacerbated if I set up more VMs (and not all will be on at the time)