(EDITED)
I ever wondered why there's no solution to startup VMs by WOL 'til now, so I helped myself and wrote a bash script that I want to share. I called this baby dosthol (Do something on LAN) which will do other tasks some day, i.E. remote shutdown and others.
Maybe someone will find this small tool useful too. Feel free to comment, copy, extend ...
Copy dosthol.sh to /usr/local/bin and dosthol.service to /etc/systemd/system . Start (and enable) the service, then send a MagicPacket/MAC of a VM which can be a qemu or lxc one. The VM should start then.
Dependencies: PVE v4.x, vim, socat (got trouble with both netcat regarding broadcast).
I ever wondered why there's no solution to startup VMs by WOL 'til now, so I helped myself and wrote a bash script that I want to share. I called this baby dosthol (Do something on LAN) which will do other tasks some day, i.E. remote shutdown and others.
Maybe someone will find this small tool useful too. Feel free to comment, copy, extend ...
Copy dosthol.sh to /usr/local/bin and dosthol.service to /etc/systemd/system . Start (and enable) the service, then send a MagicPacket/MAC of a VM which can be a qemu or lxc one. The VM should start then.
Dependencies: PVE v4.x, vim, socat (got trouble with both netcat regarding broadcast).
Last edited: