Not sure I understand this one and haven’t poked around much yet, myself, but just a quick wonkiness report to mention that WOL is no longer responsive after powering down from IncusOS on my device with the default network setup. BIOS settings are all good, can wake this device when poweroff-ing from two other distributions (Ubuntu Core, Fedora).
Interestingly, the lights are still on the ethernet port after poweroff like they are when the device does wake from lan so I don’t think the NIC is being placed in a totally powered down state.
Any info that would be helpful or any steps I should try? Will play with it later today to try to better understand, regardless. Thank you!
I’ve already said it in fewer words but I’ve never been truly satisfied with the existing offerings that serve as a low maintenance hyper visor so have been doing my own thing on various base systems for tens of years. IncusOS is the first real contender in my book. Thank you so much!
I may have spoken too soon. Added wakeonlan but it’s still ignoring the magic packet. Have also tried with disable_energy_efficient.
Poked around a bit and wonder if I’m doing something wrong. The reported hwaddr is the factory nic address which is what I’m sending but noticed MACAddressPolicy=random. Don’t see any other address but am I sending the wrong one?
I guess the first thing I’d check is whether the NIC turns off when the computer is shut down. For wake on lan to function, the NIC should maintain a link with the switch.
The port remains on as far as I can tell. The power led is constant and the activity led flashes at the same cadence as when shutdown from the other distributions.
Okay. That’s pretty odd. Anything wake on lan related in incus admin os debug log?
Sadly I don’t have any system that I can test that on here as on the physical side of things, I either have laptops using dongles for ethernet or servers with bonded 100GbE cards which aren’t terribly likely to do WoL
Powered off a second time it and it started waking up instantly. Set the modes back to “magic”, powered off, instantly restarted. Powered off a second time, now not responding to a magic packet.
So I guess applying the network config isn’t enough and a power cycle is required to have modes take effect. But my nic is still not responding to magic packet alone.
(and nothing interesting regarding wol or the nic in the logs.)
I’m still leaning toward MACAddressPolicy=random maybe contributing. I’ll try to build with persistent or none and see if that does it.
That would cause problems of its own though. On IncusOS, we operated everything through bridges. The reason why we give a random MAC address to the physical NIC is because we’re giving the physical MAC address to the host interface instead.
That assumes an interface named enp5s0. In this scenario, the interface actually carrying the physical NIC is _venp5s0 which is par of a veth pair. Everything else is on random MACs as they shouldn’t themselves originate any outside traffic.
Did you try using the secureon mode for Wake-On-LAN? This seems to use a magic packet with a user controlled secret (MAC formatted), so maybe that works regardless of the configured MAC?
@stgraber found something! I have tailscale enabled and it logged out the interface properties, including the reported hwaddr of the physical nic (which was random, consistent with your explanation). Sent a magic packet with that address and it started right up.
Okay, I’m looking at adding some logic to restore the MAC address of physical interfaces on system shutdown for any interface that’s got WoL enabled, that should take care of that.