How to Wake your Proxmox server UP with WOL.

When you have different servers running it add up to the electricity bill so it would be nice to start your Proxmox server from your workstation, laptop or even your phone after you shut in down when you finished or go to sleep.

Lets start.

  1. First check in your BIOS settings that “wake on lan” is active Google this to see different bios settings for your motherboard.
  2. Update your repositories
  3. If you enabled the WOL in the BIOS start your Proxmox and login.
  4. Open Network and write down the name of your network port look the screenshot bellow maybe the number is different but choose the lowest one witch is the ethernet on your motherboard.
  1. Select your Node and open the shell window
  2. Enter the following command to install a program called Ethtool.
apt install ethtool -y
  1. After the install is finished run the following command to get the MAC address of your onboard network addapter
ip addr
  1. Look for your adapter’s MAC Address and write it down we need it later for the Magic Packet.
  1. Enter the following command to see if your adapter is ready for WOL.
# replace enp1 with the device name to test
sudo ethtool enp1
  1. Look for the Line “Supports Wake-on : pumbg” if you see the letter “g ” your device supports WOL.
  1. Enable WOL on the Ethernet card.
ethtool -s enp1 wol g
  1. Now we have to edit the interfaces file enter the next command.
nano /etc/network/interfaces
  1. Write the following line under the iface enp1 .
post-up /usr/sbin/ethtool -s enp1 wol g
  1. Press CTRL+O – Enter then CTRL+X to write the changes to the file.

Send the Magic Packet and start your server.

  1. Shutdown the server and test the server by sending a Magic Packet i use windows and use this small program “Easy Wol” you get it here
  1. For the configuration fill in the IP address of your server, the MAC address and the port 8006.

Thats it

Now you not have to come out of your chair to startup your Homelab Proxmox server.

And don’t forget my coffee

if you have any questions just send email to RikkieBkk

3239