Configure Systems To Launch Virtual Machines At Boot
General Information
For a VM to start on host boot, two things need auto-starting; the KVM service and the virtual machine itself.
Auto Start on Boot
Configure KVM to auto start specific virtual machines at boot.
Ensure libvirtd is enabled, enable if not
systemctl status libvirtd
systemctl enable libvirtd
Configure each VM with the autostart option using virsh
# list all VMs virsh list --all # Configure VM name to autostart virsh autostart <vm-name>
Show if VM has autostart enabled or not
# List all VMs with autostart enabled virsh list --autostart # View info on a specific VM (including "Autostart" info) virsh dominfo <vm-name>