Installation guide
and network I/O does not occur while the guest is suspended. This operation is immediate and the
guest can be restarted with the resume (Resuming a guest) option.
Resu min g a gu est
Restore a suspended guest with virsh using the resume option:
# virsh resume {domain-id, domain-name or domain-uuid}
This operation is immediate and the guest parameters are preserved for suspend and resume
operations.
Save a gu est
Save the current state of a guest to a file using the virsh command:
# virsh save {domain-name, domain-id or domain-uuid} filename
This stops the guest you specify and saves the data to a file, which may take some time given the
amount of memory in use by your guest. You can restore the state of the guest with the restore
(Restore a guest) option. Save is similar to pause, instead of just pausing a guest the present state of
the guest is saved.
Rest ore a g u est
Restore a guest previously saved with the virsh save command (Save a guest) using virsh:
# virsh restore filename
This restarts the saved guest, which may take some time. The guest's name and UUID are preserved
but are allocated for a new id.
Sh u t d o wn a g u est
Shut down a guest using the virsh command:
# virsh shutdown {domain-id, domain-name or domain-uuid}
You can control the behavior of the rebooting guest by modifying the on_shutdown parameter in the
guest's configuration file.
Reb o o t in g a g u est
Reboot a guest using virsh command:
#virsh reboot {domain-id, domain-name or domain-uuid}
You can control the behavior of the rebooting guest by modifying the on_reboot element in the
guest's configuration file.
Forcin g a g u est to st o p
Force a guest to stop with the virsh command:
# virsh destroy {domain-id, domain-name or domain-uuid}
Chapt er 2 6 . Man aging guest s wit h virsh
261