14.5. Domain Commands
A domain name is required for most of these commands as they manipulate the specified domain directly. The domain may be given as a short integer (0,1,2...), a name, or a full UUID.
14.5.1. Configuring a Domain to be Started Automatically at Boot
$ virsh autostart [--disable] domain
will automatically start the specified domain at boot. Using the --disable
option disables autostart.
# virsh autostart rhel6
In the example above, the rhel6 guest virtual machine will automatically start when the host physical machine boots
# virsh autostart rhel6 --disable
In the example above, the autostart function is disabled and the guest virtual machine will no longer start automatically when the host physical machine boots.