sonofdbn Posted July 9 Share Posted July 9 (edited) EDIT: PLEASE IGNORE - ALL SEEMS TO BE WORKING NOW! I'm trying to get this to work on a couple of Win 11 VMs that I have, but have been unable to wake the VMs from my Win 10 PC. I use a WOL utility that works fine with other physical PCs and I can "see" the VMs on it, just can't wake them. Is there anything I need to set up on the VM side? If it's relevant, for the VMs, Network Source is br0 and Network Model is e1000. When I look inside the VMs at the network adapter (comes up as Intel PRO/1000 MT) properties, there doesn't seem to be an option for Wake on Magic Packet and the "Allow this device to wake the computer" option is greyed out. Perhaps I'm totally misunderstanding how WOL works for VMs. I read about a libvirt WOL option, but it looks like that was a plug-in that is now no longer available on the app store. Diagnostics are attached in case they're helpful. t2-diagnostics-20240709-0925.zip Edited July 9 by sonofdbn WOL is working now Quote Link to comment
Jorgen Posted July 21 Share Posted July 21 Just wanted to say thanks for this plugin! It works perfectly for my simple use case of starting a VM with a WOL packet from my phone. I was using dmacias wake-on-lan plugin that required an additional pyton2 plugin to run on newer unraid versions. But after the upgrade to unraid 6.12.11 the python plugin did not install anymore and the WOL plugin stopped working. 1 Quote Link to comment
KoNeko Posted August 4 Share Posted August 4 How can i get this to work? i did try to add the Yaml to my HA automation. but when i add the code im getting error Message malformed: required key not provided @ data['trigger'][0]['platform'] I took from 1 of the posted here and eddited the mac and name Quote alias: WOL_Win10VM description: "" trigger: - platform: state entity_id: - input_button.win10vm_boot condition: [] action: - service: wake_on_lan.send_magic_packet metadata: {} data: broadcast_port: 9 mac: 52:54:00:78:32:c0 mode: single Quote Link to comment
alturismo Posted August 5 Share Posted August 5 6 hours ago, KoNeko said: How can i get this to work? i did try to add the Yaml to my HA automation. but when i add the code im getting error Message malformed: i would suggest to ask these questions in the proper places, like HA Forums, or at least the HA docker thread, not related to this plugin here ... Quote Link to comment
chilman408 Posted August 14 Share Posted August 14 Hello, I got this Plugin to work with homeassistant's WOL function for turning ON an Ubuntu VM. However, I could not get the shutdown function to work. Is there any trick to this? In general, I am not familiar with how WOL does a shutdown.... Quote Link to comment
SimonF Posted August 14 Author Share Posted August 14 1 hour ago, chilman408 said: Hello, I got this Plugin to work with homeassistant's WOL function for turning ON an Ubuntu VM. However, I could not get the shutdown function to work. Is there any trick to this? In general, I am not familiar with how WOL does a shutdown.... Have you enabled in the settings and then set the vm from enabled to the shutdown enabled option? Quote Link to comment
chilman408 Posted August 14 Share Posted August 14 Yes, in the settings, I have enabled Yes on the "Enable Shutdown / Suspend Action". Do I need to copy the "Suspend Command" setting as well? I didn't do that part. Quote Link to comment
SimonF Posted August 14 Author Share Posted August 14 Just now, chilman408 said: Yes, in the settings, I have enabled Yes on the "Enable Shutdown / Suspend Action". Do I need to copy the "Suspend Command" setting as well? I didn't do that part. No if using shutdown. But also goto tools->Wol 4 services and set the shutdown option against the vm. Will only be enabled by default. Needs to. be set to enabled and shutdown. Quote Link to comment
chilman408 Posted August 14 Share Posted August 14 Thx for the quick reply! Yes, I have set the setting under Tools as well to have "Enable and Shutdown". Then I created a switch in HA. Turning on this switch turns the VM on and switching off the switch does not do anything. Quote Link to comment
SimonF Posted August 14 Author Share Posted August 14 5 minutes ago, chilman408 said: Thx for the quick reply! Yes, I have set the setting under Tools as well to have "Enable and Shutdown". Then I created a switch in HA. Turning on this switch turns the VM on and switching off the switch does not do anything. What messages do you see in the log? Quote Link to comment
chilman408 Posted August 14 Share Posted August 14 Good question, when I switch off the HA switch, nothing. Switch On shows this: Aug 14 14:11:54 UNRAID-R7-98TB Unraidwold[3458011]: 2024/08/14 14:11:54 Found 52:xx:xx:xx:xx:xx VM HomeLab Aug 14 14:11:56 UNRAID-R7-98TB kernel: br0: port 3(vnet6) entered learning state Aug 14 14:11:58 UNRAID-R7-98TB kernel: br0: port 3(vnet6) entered forwarding state Aug 14 14:11:58 UNRAID-R7-98TB kernel: br0: topology change detected, propagating Quote Link to comment
SimonF Posted August 14 Author Share Posted August 14 14 minutes ago, chilman408 said: Good question, when I switch off the HA switch, nothing. Switch On shows this: Aug 14 14:11:54 UNRAID-R7-98TB Unraidwold[3458011]: 2024/08/14 14:11:54 Found 52:xx:xx:xx:xx:xx VM HomeLab Aug 14 14:11:56 UNRAID-R7-98TB kernel: br0: port 3(vnet6) entered learning state Aug 14 14:11:58 UNRAID-R7-98TB kernel: br0: port 3(vnet6) entered forwarding state Aug 14 14:11:58 UNRAID-R7-98TB kernel: br0: topology change detected, propagating So looks like switch does not send wol packet when it is turned off. I am mot an HA expert so not sure how to fix that. https://www.home-assistant.io/integrations/wake_on_lan/ 1 Quote Link to comment
chilman408 Posted August 14 Share Posted August 14 Yes, you are right. Sending another WOL packet via some other means trigger the shutdown. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.