Red Hat ENTERPRISE LINUX 5 - VIRTUALIZATION GUIDE Manual page 280

Hide thumbs Also See for ENTERPRISE LINUX 5 - VIRTUALIZATION GUIDE:
Table of Contents

Advertisement

Chapter 24. Managing guests with virsh
# virsh suspend {domain-id, domain-name or domain-uuid}
When a guest is in a suspended state, it consumes system RAM but not processor resources. Disk
and network I/O does not occur while the guest is suspended. This operation is immediate and the
(Resuming a
guest) option.
guest can be restarted with the resume
Resuming a guest
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 guest
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.
Restore a guest
(Save a
guest) using virsh:
Restore a guest previously saved with the virsh save command
# 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.
Shut down a guest
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.
Rebooting a guest
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.
266

Advertisement

Table of Contents
loading

Table of Contents