Enabling Wake on LAN on Proxmox on a 2011 MacBook Pro

xavax

New Member
Dec 13, 2023
7
0
1
Hello,

I have Proxmox installed on a 2011 MacBook Pro, and I would like to enable Wake on LAN. Is this possible?

Thank you.
 
There are two prerequisites:
  • WOL must be enabled in the NIC driver
  • Your BIOS (or EFI) must be configured correctly
I can't really help you with the latter (you should be able to look that up though), but regarding the driver, you can do the following:
  1. Check whether WOL is enabled on your NIC:
    Code:
    ethtool <NIC> | grep 'Wake-on:'
    The output should show Wake-on: g - that means it's enabled.

  2. If WOL isn't enabled like shown above, you have to insert a line with ethernet-wol g into your network configuration in /etc/network/interfaces, like so for example:
    Code:
    iface <NIC> inet manual
            # [...]
            ethernet-wol g

  3. Alternatively, you can also use post-up /sbin/ethtool -s <NIC> wol g instead of ethernet-wol g:
    Code:
    iface <NIC> inet manual
            # [...]
            post-up /sbin/ethtool -s <NIC> wol g
Note: In the above, <NIC> obviously refers to the name of your network interface. Make sure to configure your actual (physical) NIC and not for example the bridge you use for your VMs (vmbr0 or similar). Usually goes without saying, but still wanted to mention it, just to make sure.

To provide a complete example -- since my NIC is named enp5s0, my configuration looks something like this:
Code:
auto enp5s0
iface enp5s0 inet static
        address 192.168.1.100/24
        gateway 192.168.1.1
        post-up /sbin/ethtool -s enp5s0 wol g

Hope this helps!
 
Thank you, I don't know how to do this part on a Mac; the rest is done.
• Your BIOS (or EFI) must be configured correctly
 
Having a quick look around [1] There seems to be no way to get into bios/efi on a macbook, so it is either already set up correctly and it works, or you're out of luck. If it doesn't work, the only thing I can think of, is that you first need to have it set up earlier on mac itself [2] which then sets it into the 'hidden' bios/efi, which then allows it for other OS's as well.

[1] https://macpaw.com/how-to/mac-bios-mode
[2] https://technotim.live/posts/wake-on-lan/
 
  • Like
Reactions: Max Carrara
Hi

I installed macOS on an external SSD connected to the same machine, but I couldn't configure Wake on LAN or automatic startup.

Here's what I did:

Start macOS from the external SSD:

I started my MacBook Pro 2011 using macOS installed on the external SSD.
1721391950664.png
 
I did this:


Code:
ethtool -s enp2s0f0 wol g


Code:
root@pve:~# ethtool enp2s0f0 | grep 'Wake-on:'
Supports Wake-on: g
Wake-on: g

After rebooting, it reverts to d:


Code:
root@pve:~# ethtool enp2s0f0 | grep 'Wake-on:'
Supports Wake-on: g
Wake-on: d

I don't understand how to make it persistent.
 
I don't understand how to make it persistent.

Try editing your network configuration at /etc/network/interfaces as I had described above. Does WOL work, even it it's not persistent?
 

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!