8.5. Automatically Starting Guest Virtual Machines
This section covers how to make guest virtual machines start automatically during the host physical machine system's boot phase.
This example uses
virsh
to set a guest virtual machine, TestServer
, to automatically start when the host physical machine boots.
# virsh autostart TestServer
Domain TestServer marked as autostarted
The guest virtual machine now automatically starts with the host physical machine.
To stop a guest virtual machine automatically booting use the
--disable
parameter
# virsh autostart --disable TestServer
Domain TestServer unmarked as autostarted
The guest virtual machine no longer automatically starts with the host physical machine.