Start a Proxmox VM by sending a wake-on-lan packet.
Important
You must have Node.js installed. Any recent version should work.
- Copy
wol.js
to/opt/pve-wol/wol.js
- Copy
pve-wol.service
to/etc/systemd/system/pve-wol.service
. Update theExecStart
line with your VM conf directory as needed. systemct daemon-reload
systemctl start pve-wol
systemctl enable pve-wol
- Test it!
wakeonlan <VM-MAC-addr>
Tip
The mapping table of mac address -> vm id automatically updates when a file in the config directory is changed.
If a change is not detected, it can be manually reloaded with systemctl reload pve-wol
or by sending a SIGHUP
.
- Docker image
- lxc container template
- Switch from
qm
to pve API - WOL for lxc containers