Auto-starting guest VM’s using Virsh

Running this command for each individual VM, will ensure that they are automatically started and suspended when starting up and shutting down your server.

Enable autostart for VM.

sudo virsh autostart guest-vm-name

Disable autostart for VM.

sudo virsh autostart --disable guest-vm-name

Kind of a nice feature that the VMs are automatically suspended and restored when you need to restart, meaning the VMs will resume to their previous state before you restarted.. as if nothing ever happened.

Leave a Reply

Your email address will not be published. Required fields are marked *