2
0
mirror of https://github.com/pikvm/pikvm synced 2024-11-16 12:12:57 +00:00
pikvm/docs/wol.md

29 lines
919 B
Markdown
Raw Normal View History

2021-07-16 23:38:38 +00:00
# Wake-on-LAN
2021-10-12 18:45:00 +00:00
## Simplified method (one host)
2021-07-16 23:38:38 +00:00
To use Wake-on-LAN with your server you must define some options such as the server's MAC address and (optionally) IP address. Use `/etc/kvmd/override.yaml`. The format is:
2021-10-12 18:45:00 +00:00
2021-07-16 23:38:38 +00:00
```yaml
kvmd:
wol:
mac: ff:ff:ff:ff:ff:ff
```
2021-10-12 18:45:00 +00:00
2021-07-16 23:38:38 +00:00
Replace `ff:ff:ff:ff:ff:ff` with the MAC of your server. By default, a packet is sent via a broadcast request to the entire IPv4 network (`255.255.255.255`, port `9`), but you can address it to a specific static address:
2021-10-12 18:45:00 +00:00
2021-07-16 23:38:38 +00:00
```yaml
kvmd:
wol:
mac: ff:ff:ff:ff:ff:ff
ip: 192.168.0.100
# port: 9 # By default
```
2021-10-12 18:45:00 +00:00
... then restart `kvmd` using `systemctl restart kvmd`. It will now show up in the system button in the upper right corner.
## GPIO method (multiple hosts)
2021-07-16 23:41:16 +00:00
Follow the [manual for building the GPIO menu](gpio.md) and use the `wol` driver to build a menu with many buttons tied to different hosts.