WOL (wak on Lan) for Proxmox-Host not working :(

weitnow

New Member
Dec 20, 2019
3
1
3
42
Hello together, I am a linux-hobbiest and just started using proxmox for private experiments recently.....

It seems I can't get WOL working. Maybe someone can help me :) would be much appeciated....

So what I was able to do:

ethtool -s enp4s0 wol g -> works until next restart/reboot of the system

I edited /etc/network/interfaces and added ethernet-wol g to the file like that:
Code:
auto lo
iface lo inet loopback

iface enp4s0 inet manual
    ethernet-wol g
    
auto vmbr0
iface vmbr0 inet static
    adress 192.168.178.10
    etc........

if I reboot the system ethtool enp4s0 shows: Wake-on: d

Some can give me an advice? Thank you :)
 
I had the same problem since I upgraded to VE 6

I had this solution of another forum user.
It works for me. Some workaround for you problem.


apt-get update && apt-get install ethtool

vi /etc/systemd/system/wol.service
Insert the following:

[Unit]
Description=Wake-on-LAN for enp2s0
Requires=network.target
After=network.target

[Service]
ExecStart=/sbin/ethtool -s enp2s0 wol g
ExecStop=/sbin/ethtool -s enp2s0 wol g

[Install]
WantedBy=multi-user.target


Save the file

Then type :
systemctl daemon-reload
systemctl start wol.service
systemctl enable wol.service
systemctl is-enabled wol.service
 
Last edited:
  • Like
Reactions: weitnow
Thanks a lot bolh for the detailed solution....I will try out your workaround:)

I am happy to report: it works!

Thank you very much :)
 
Last edited:
  • Like
Reactions: bolh
iface enp4s0 inet manual ethernet-wol g

I've also set it on the bridge which the physical port is a slave to.

Instead of the systemd-unit you also could add a post-up command on the interface, e.g.:

Code:
auto vmbr0
iface vmbr0 inet static
    adress 192.168.178.10
    ...
    post-up /sbin/ethtool -s enp2s0 wol g
 
Thanks Thomas....diden't know the post-up command in the interfaces-configuration.....seems like a nice way to do it as well....
 
Thank you to @t.lamprecht for pointing me/us in the right direction.

A little experimentation showed me that adding post-up /sbin/ethtool -s enp2s0 wol g only to the vmbr0 interface is sufficient.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!