Cool Solution - libvirt-wakeonlan

From Univention Wiki

Jump to: navigation, search
Produktlogo UCS Version 4.0

Note: Cool Solutions are articles documenting additional functionality based on Univention products. Packages provided by a Cool Solutions Repository are built by Univention, but will not be maintained. Not all of the shown steps in the article are covered by Univention Support. For questions about your support coverage contact your contact person at Univention before you want to implement one of the shown steps.

Also regard the legal notes at Terms of Service.

This article describes how to install and configure libvirt-wakeonlan, a third party extension by Simon Cadman for libvirt to start virtualized instanced via Wake on LAN. libvirt-wakeonlan must be installed on the system running a UVMM node. libvirt-wakeonlan listens on exactly one network interface.

Installation

After adding the Cool Solutions repository to your system, install the following package:

univention-install libvirt-wakeonlan

The package installs a new init script and registers it for an automatic start on the host.

Configuration

The interface on which libvirt-wakeonlan listens can be configured in the configuration file /etc/default/libvirt-wakeonlan. The file contains one single line which specifies the network interface, eg. eth0:

LIBVIRTDWOL_INTERFACE="eth0"

If the specified interface has no IP address assigned, libvirt-wakeonlan will crash with a Python traceback.

After the configuration is checked, libvirt-wakeonlan can be started manually by running the init script:

invoke-rc.d libvirt-wakeonlan start

A virtualized machine can now be started by sending a magic packet to the instance's MAC address:

wakeonlan 52:54:00:21:9a:f6

Hint: wakeonlan is not part of this package and must be installed separately.

Further information

Personal tools