Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm doing virtualization with KVM and managing it via the Libvirt daemon.

How do I configure Libvirt or KVM to listen for Wake-On-Lan packets sent the the Virtual Machine's NIC's MAC address and to start the Virtual Machine when such a packet is received?

share|improve this question

Wake-On-LAN is Wake-On-LAN, wether you use a virtual machine or a physical machine. If your virtualization software supports it then just use a WoL tool against the MAC address.

share|improve this answer
But how do I do this with KVM+libvirt? – user130356 Feb 1 '13 at 12:15
About as helpful as is is is. He knows what wake on lan is. You answer made no attempt to answer the question. How to start a vm with wake on lan, assuming kvm and libvirt support it. As I would still very much like to know, I'll need to look else ware for an answer – Keith Reynolds Oct 21 '15 at 23:37

I've found Libvirt-wakeonlan which seems to do it. I have no idea how mature it is and how well it works. The approach seems right.

share|improve this answer
From the author when asked about maturity: It's not particularly mature, it lacks things like logging, and has only really been properly tested under Gentoo Linux. I've been using it for a development environment for about 9 months and it's been completely stable so far, but as far as I know nobody has used in a production environment. – user130356 Feb 2 '13 at 22:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.