Wake-On-Lan fail with VM
From ESS-WIKI
How Wake-On-Lan Work
- Cloud server will request "Agent1" to wake up another "Agent2"
- Agent1 will send broadcast magic packet which payload is the MAC address of Agent2.
- When Agent2 receive magic packet, it power on device.
Routing Table Problem with VM installed
- There are two broadcast address.
- Routing priority of windows:
- Small metric rule will pick up first.
- Then it will pick up the first interface that avaliable.
- PowerOnOff plugin will choose "255.255.255.255 | 192.168.189.1" rule from routing table in this example.
Possible Solution
- Send WOL packet with local broadcast address to each interface in current agent.