/etc/libvirt/hooks/daemon
^^^^^^^^^^^^^^^^^^^^^^^^^
-- | When the libvirt daemon is started, this script is called as:
+- When the libvirt daemon is started, this script is called as:
::
/etc/libvirt/hooks/daemon - start - start
-- | When the libvirt daemon is shut down, this script is called as:
+- When the libvirt daemon is shut down, this script is called as:
::
/etc/libvirt/hooks/daemon - shutdown - shutdown
-- | When the libvirt daemon receives the SIGHUP signal, it reloads its
- configuration and triggers the hook script as:
+- When the libvirt daemon receives the SIGHUP signal, it reloads its
+ configuration and triggers the hook script as:
::
/etc/libvirt/hooks/qemu
^^^^^^^^^^^^^^^^^^^^^^^
-- | Before a QEMU guest is started, the qemu hook script is called in three
- locations; if any location fails, the guest is not started. The first
- location, :since:`since 0.9.0` , is before libvirt performs any resource
- labeling, and the hook can allocate resources not managed by libvirt such
- as DRBD or missing bridges. This is called as:
+- Before a QEMU guest is started, the qemu hook script is called in three
+ locations; if any location fails, the guest is not started. The first
+ location, :since:`since 0.9.0` , is before libvirt performs any resource
+ labeling, and the hook can allocate resources not managed by libvirt such
+ as DRBD or missing bridges. This is called as:
::
/etc/libvirt/hooks/qemu guest_name prepare begin -
- | The second location, available :since:`Since 0.8.0` , occurs after libvirt
- has finished labeling all resources, but has not yet started the guest,
- called as:
+ The second location, available :since:`Since 0.8.0` , occurs after libvirt
+ has finished labeling all resources, but has not yet started the guest,
+ called as:
::
/etc/libvirt/hooks/qemu guest_name start begin -
- | The third location, :since:`0.9.13` , occurs after the QEMU process has
- successfully started up:
+ The third location, :since:`0.9.13` , occurs after the QEMU process has
+ successfully started up:
::
/etc/libvirt/hooks/qemu guest_name started begin -
-- | When a QEMU guest is stopped, the qemu hook script is called in two
- locations, to match the startup. First, :since:`since 0.8.0` , the hook is
- called before libvirt restores any labels:
+- When a QEMU guest is stopped, the qemu hook script is called in two
+ locations, to match the startup. First, :since:`since 0.8.0` , the hook is
+ called before libvirt restores any labels:
::
/etc/libvirt/hooks/qemu guest_name stopped end -
- | Then, after libvirt has released all resources, the hook is called again,
- :since:`since 0.9.0` , to allow any additional resource cleanup:
+ Then, after libvirt has released all resources, the hook is called again,
+ :since:`since 0.9.0` , to allow any additional resource cleanup:
::
/etc/libvirt/hooks/lxc
^^^^^^^^^^^^^^^^^^^^^^
-- | Before a LXC guest is started, the lxc hook script is called in three
- locations; if any location fails, the guest is not started. The first
- location, :since:`since 0.9.13` , is before libvirt performs any resource
- labeling, and the hook can allocate resources not managed by libvirt such
- as DRBD or missing bridges. This is called as:
+- Before a LXC guest is started, the lxc hook script is called in three
+ locations; if any location fails, the guest is not started. The first
+ location, :since:`since 0.9.13` , is before libvirt performs any resource
+ labeling, and the hook can allocate resources not managed by libvirt such
+ as DRBD or missing bridges. This is called as:
::
/etc/libvirt/hooks/lxc guest_name prepare begin -
- | The second location, available :since:`Since 0.8.0` , occurs after libvirt
- has finished labeling all resources, but has not yet started the guest,
- called as:
+ The second location, available :since:`Since 0.8.0` , occurs after libvirt
+ has finished labeling all resources, but has not yet started the guest,
+ called as:
::
/etc/libvirt/hooks/lxc guest_name start begin -
- | The third location, :since:`0.9.13` , occurs after the LXC process has
- successfully started up:
+ The third location, :since:`0.9.13` , occurs after the LXC process has
+ successfully started up:
::
/etc/libvirt/hooks/lxc guest_name started begin -
-- | When a LXC guest is stopped, the lxc hook script is called in two
- locations, to match the startup. First, :since:`since 0.8.0` , the hook is
- called before libvirt restores any labels:
+- When a LXC guest is stopped, the lxc hook script is called in two
+ locations, to match the startup. First, :since:`since 0.8.0` , the hook is
+ called before libvirt restores any labels:
::
/etc/libvirt/hooks/lxc guest_name stopped end -
- | Then, after libvirt has released all resources, the hook is called again,
- :since:`since 0.9.0` , to allow any additional resource cleanup:
+ Then, after libvirt has released all resources, the hook is called again,
+ :since:`since 0.9.0` , to allow any additional resource cleanup:
::
/etc/libvirt/hooks/libxl
^^^^^^^^^^^^^^^^^^^^^^^^
-- | Before a Xen guest is started using libxl driver, the libxl hook script is
- called in three locations; if any location fails, the guest is not started.
- The first location, :since:`since 2.1.0` , is before libvirt performs any
- resource labeling, and the hook can allocate resources not managed by
- libvirt. This is called as:
+- Before a Xen guest is started using libxl driver, the libxl hook script is
+ called in three locations; if any location fails, the guest is not started.
+ The first location, :since:`since 2.1.0` , is before libvirt performs any
+ resource labeling, and the hook can allocate resources not managed by
+ libvirt. This is called as:
::
/etc/libvirt/hooks/libxl guest_name prepare begin -
- | The second location, available :since:`Since 2.1.0` , occurs after libvirt
- has finished labeling all resources, but has not yet started the guest,
- called as:
+ The second location, available :since:`Since 2.1.0` , occurs after libvirt
+ has finished labeling all resources, but has not yet started the guest,
+ called as:
::
/etc/libvirt/hooks/libxl guest_name start begin -
- | The third location, :since:`2.1.0` , occurs after the domain has
- successfully started up:
+ The third location, :since:`2.1.0` , occurs after the domain has
+ successfully started up:
::
/etc/libvirt/hooks/libxl guest_name started begin -
-- | When a libxl-handled Xen guest is stopped, the libxl hook script is called
- in two locations, to match the startup. First, :since:`since 2.1.0` , the
- hook is called before libvirt restores any labels:
+- When a libxl-handled Xen guest is stopped, the libxl hook script is called
+ in two locations, to match the startup. First, :since:`since 2.1.0` , the
+ hook is called before libvirt restores any labels:
::
/etc/libvirt/hooks/libxl guest_name stopped end -
- | Then, after libvirt has released all resources, the hook is called again,
- :since:`since 2.1.0` , to allow any additional resource cleanup:
+ Then, after libvirt has released all resources, the hook is called again,
+ :since:`since 2.1.0` , to allow any additional resource cleanup:
::
/etc/libvirt/hooks/bhyve
^^^^^^^^^^^^^^^^^^^^^^^^
-- | Before an bhyve guest is started, the bhyve hook script is called in three
- locations; if any location fails, the guest is not started. The first
- location, :since:`since 6.1.0` , is before libvirt performs any resource
- labeling, and the hook can allocate resources not managed by libvirt. This is
- called as:
+- Before an bhyve guest is started, the bhyve hook script is called in three
+ locations; if any location fails, the guest is not started. The first
+ location, :since:`since 6.1.0` , is before libvirt performs any resource
+ labeling, and the hook can allocate resources not managed by libvirt. This is
+ called as:
::
/etc/libvirt/hooks/bhyve guest_name prepare begin -
- | The second location, available :since:`Since 6.1.0` , occurs after libvirt
- has finished labeling all resources, but has not yet started the guest,
- called as:
+ The second location, available :since:`Since 6.1.0` , occurs after libvirt
+ has finished labeling all resources, but has not yet started the guest,
+ called as:
::
/etc/libvirt/hooks/bhyve guest_name start begin -
- | The third location, :since:`6.1.0` , occurs after the bhyve process has
- successfully started up:
+ The third location, :since:`6.1.0` , occurs after the bhyve process has
+ successfully started up:
::
/etc/libvirt/hooks/bhyve guest_name started begin -
-- | When an bhyve guest is stopped, the bhyve hook script is called in two
- locations, to match the startup. First, :since:`since 6.1.0` , the hook is
- called before libvirt restores any labels:
+- When an bhyve guest is stopped, the bhyve hook script is called in two
+ locations, to match the startup. First, :since:`since 6.1.0` , the hook is
+ called before libvirt restores any labels:
::
/etc/libvirt/hooks/bhyve guest_name stopped end -
- | Then, after libvirt has released all resources, the hook is called again,
- :since:`since 6.1.0` , to allow any additional resource cleanup:
+ Then, after libvirt has released all resources, the hook is called again,
+ :since:`since 6.1.0` , to allow any additional resource cleanup:
::
/etc/libvirt/hooks/network
^^^^^^^^^^^^^^^^^^^^^^^^^^
-- | :since:`Since 1.2.2` , before a network is started, this script is called
- as:
+- :since:`Since 1.2.2` , before a network is started, this script is called
+ as:
::
/etc/libvirt/hooks/network network_name start begin -
-- | After the network is started, up & running, the script is called as:
+- After the network is started, up & running, the script is called as:
::
/etc/libvirt/hooks/network network_name started begin -
-- | When a network is shut down, this script is called as:
+- When a network is shut down, this script is called as:
::
/etc/libvirt/hooks/network network_name stopped end -
-- | Later, when network is started and there's an interface from a domain to be
- plugged into the network, the hook script is called as:
+- Later, when network is started and there's an interface from a domain to be
+ plugged into the network, the hook script is called as:
::
Please note, that in this case, the script is passed both network and port
XMLs on its stdin.
-- | When network is updated, the hook script is called as:
+- When network is updated, the hook script is called as:
::
/etc/libvirt/hooks/network network_name updated begin -
-- | When the domain from previous case is shutting down, the interface is
- unplugged. This leads to another script invocation:
+- When the domain from previous case is shutting down, the interface is
+ unplugged. This leads to another script invocation:
::