-
Ensure that your VMs can shutdown gracefully when the power-button is pressed.
-
Place the file
vm-boot-order.py
in/opt
directory -
Make it executable:
chmod +x /opt/vm-boot-order.py
-
Check that the script starts and shuts down your VMs as expected. The script can be executed as follows:
/opt/vm-boot-order.py start /opt/vm-boot-order.py stop /opt/vm-boot-order.py status
-
Make a systemd service to execute the script when booting or shutting down the hypervisor:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script that will download, compile and install PulseView and its dependencies | |
# For more information visit: | |
# https://www.onetransistor.eu/2017/11/script-to-compile-and-install-pulseview.html | |
set -e | |
echo "PulseView: Download, build and install" | |
echo "Installing dependencies" |