From Fedora Project Wiki
(Create this page) |
(Fix command formatting) |
||
Line 14: | Line 14: | ||
# Start a VM, connect to the graphical console with virt-manager | # Start a VM, connect to the graphical console with virt-manager | ||
# From inside the guest, as root, run: | # From inside the guest, as root, run:<br><pre># pm-suspend</pre> | ||
# Verify the state changes to 'suspended' in the main virt-manager window | # Verify the state changes to 'suspended' in the main virt-manager window | ||
# Click inside the black VM guest console, and press any key on the keyboard | # Click inside the black VM guest console, and press any key on the keyboard | ||
# Verify the VM resumes right where it left off. | # Verify the VM resumes right where it left off. | ||
# From inside the guest, as root, run: | # From inside the guest, as root, run: <br><pre># pm-hibernate</pre> | ||
# Verify the guest appears to shutdown in the main virt-manager window | # Verify the guest appears to shutdown in the main virt-manager window | ||
# Start the guest again | # Start the guest again | ||
Line 29: | Line 27: | ||
# Start a VM, connect to the graphical console with virt-manager | # Start a VM, connect to the graphical console with virt-manager | ||
# From the host machine, as root, suspend the guest with virsh: | # From the host machine, as root, suspend the guest with virsh: <br><pre># virsh dompmsuspend --target mem</pre> | ||
# Watch virsh until the VM is listed as 'suspended': <br><pre># virsh list --all</pre> | |||
# Watch virsh until the VM is listed as 'suspended': | # Wake the guest up with virsh: <br><pre># virsh dompmwakeup</pre> | ||
# Wake the guest up with virsh: | |||
# Using the graphical console, verify the guest appeared to resume correctly | # Using the graphical console, verify the guest appeared to resume correctly | ||
# From the host machine, as root, hibernate the guest with virsh: | # From the host machine, as root, hibernate the guest with virsh: <br><pre># virsh dompmsuspend --target disk</pre> | ||
# Watch virsh until the VM is listed as shutoff: <br><pre># virsh list --all</pre> | |||
# Watch virsh until the VM is listed as shutoff: | # Wake the guest up with virsh: <br><pre># virsh dompmwakeup</pre> | ||
# Wake the guest up with virsh: | |||
# Verify that the VM resumes right where it left off | # Verify that the VM resumes right where it left off | ||
Revision as of 01:54, 30 October 2012
Description
Suspend and Hibernate a VM. Verify it resumes as expected. For more details, see:
http://fedoraproject.org/wiki/Features/Virt_Guest_Suspend_Hibernate
Setup
Nothing beyond the initial test day setup (basically a function F18 VM).
How to test
Initiating suspend/hibernate from inside the guest
- Start a VM, connect to the graphical console with virt-manager
- From inside the guest, as root, run:
# pm-suspend
- Verify the state changes to 'suspended' in the main virt-manager window
- Click inside the black VM guest console, and press any key on the keyboard
- Verify the VM resumes right where it left off.
- From inside the guest, as root, run:
# pm-hibernate
- Verify the guest appears to shutdown in the main virt-manager window
- Start the guest again
- Verify that the VM resumes right where it left off
Initiating suspend/hibernate from the host
- Start a VM, connect to the graphical console with virt-manager
- From the host machine, as root, suspend the guest with virsh:
# virsh dompmsuspend --target mem
- Watch virsh until the VM is listed as 'suspended':
# virsh list --all
- Wake the guest up with virsh:
# virsh dompmwakeup
- Using the graphical console, verify the guest appeared to resume correctly
- From the host machine, as root, hibernate the guest with virsh:
# virsh dompmsuspend --target disk
- Watch virsh until the VM is listed as shutoff:
# virsh list --all
- Wake the guest up with virsh:
# virsh dompmwakeup
- Verify that the VM resumes right where it left off
Expected Results
No obvious errors encountered, guests seem to be functioning as normal after resuming.