Hello,
I'm trying to find a way to wake up a host when a wol-packet is send to the address of a contained guest (virtual machine).
The situation is: I have several Logitech Squeezeboxes, which connect to my Logitech Music Server (a Windows machine); the Squeezeboxes send a WOL-packet to wake up the server if needed. Now, there is an alternative music server (https://music-server.net/ ) which contains a Logitech Music Server and integrates with my Loxone home automation. The problem is that it runs on Linux, and I don't want to change the main OS.
My first idea was to run it in docker, but I don't manage to get it to work. Installation of the server is by means of a script and it uses some things (e.g. systemd) that are more difficult in docker. It also got a bit too complicated as a long term solution from a maintenance perspective.
Next I have tried installing it in a virtual machine (hyper-v) with its own IP address on the external network, while this works, the Squeezeboxes are unable to wake up the server as the WOL packet is sent to the mac address of the guest (but this is unreachable as the host is switched off).
As an alternative option, I have tried to put the guest behind a host-NAT and forward ports at the level of the virtual switch (https://tewarid.github.io/2019/06/26...n-hyper-v.html ). I could then set the Squeezeboxes connect to the IP of the host who then passes it on to the guest. This was my most successful attempt and while most things work but there is an issue with some broadcasts/unicasts that are not passed (known issue). This affects some functionality, so it also does not resolve the issue.
Now I thought: what if I add a second NIC and dedicate that one to the guest system? Hyper-V has such an option, but I cannot find what the effect would be of sending a WOL packet to that NIC... Any thoughts? Would it wake up the host? Any other ideas?
If that would not work, my best bet is to try forwarding the ports again... maybe I will find a configuration that works... Another option I thought is to use my home automation server to catch the WOL packet that was sent to the guest and send a WOL packet to the host as a result. The Squeezeboxes broadcast the WOL packet to 255.255.255.255, but I fear the Loxone filters incoming traffic somewhat as it does not show up.
Thanks,
Jörg
I'm trying to find a way to wake up a host when a wol-packet is send to the address of a contained guest (virtual machine).
The situation is: I have several Logitech Squeezeboxes, which connect to my Logitech Music Server (a Windows machine); the Squeezeboxes send a WOL-packet to wake up the server if needed. Now, there is an alternative music server (https://music-server.net/ ) which contains a Logitech Music Server and integrates with my Loxone home automation. The problem is that it runs on Linux, and I don't want to change the main OS.
My first idea was to run it in docker, but I don't manage to get it to work. Installation of the server is by means of a script and it uses some things (e.g. systemd) that are more difficult in docker. It also got a bit too complicated as a long term solution from a maintenance perspective.
Next I have tried installing it in a virtual machine (hyper-v) with its own IP address on the external network, while this works, the Squeezeboxes are unable to wake up the server as the WOL packet is sent to the mac address of the guest (but this is unreachable as the host is switched off).
As an alternative option, I have tried to put the guest behind a host-NAT and forward ports at the level of the virtual switch (https://tewarid.github.io/2019/06/26...n-hyper-v.html ). I could then set the Squeezeboxes connect to the IP of the host who then passes it on to the guest. This was my most successful attempt and while most things work but there is an issue with some broadcasts/unicasts that are not passed (known issue). This affects some functionality, so it also does not resolve the issue.
Now I thought: what if I add a second NIC and dedicate that one to the guest system? Hyper-V has such an option, but I cannot find what the effect would be of sending a WOL packet to that NIC... Any thoughts? Would it wake up the host? Any other ideas?
If that would not work, my best bet is to try forwarding the ports again... maybe I will find a configuration that works... Another option I thought is to use my home automation server to catch the WOL packet that was sent to the guest and send a WOL packet to the host as a result. The Squeezeboxes broadcast the WOL packet to 255.255.255.255, but I fear the Loxone filters incoming traffic somewhat as it does not show up.
Thanks,
Jörg
Comment