This shows you the differences between two versions of the page.
virt:kvmquirks [2013/10/05 08:25] tschulz created |
virt:kvmquirks [2014/01/08 12:47] (current) tschulz |
||
---|---|---|---|
Line 13: | Line 13: | ||
**Fix:** Go to application volume and set it to the max level | **Fix:** Go to application volume and set it to the max level | ||
- | **Why:** For some reason pluseaudio sets audio levels for spice client to very low level. | + | **Why:** For some reason pluseaudio sets audio levels for spice client to very low level. |
+ | |||
+ | ====== Power Management issues ====== | ||
+ | If you have a computer that goes to sleep running KVM some guest OSs can go crazy on resume. Use this script to suspend kvm when your computer goes to sleep or hibernates | ||
+ | |||
+ | <file bash /etc/pm/sleep.d/suspendvm.sh> | ||
+ | #!/bin/sh | ||
+ | ## | ||
+ | ## suspend-example.sh | ||
+ | ## | ||
+ | |||
+ | VMNAME="windows7" | ||
+ | |||
+ | case $1 in | ||
+ | suspend) | ||
+ | ## COMMANDS THAT YOU WISH TO RUN BEFORE SUSPEND | ||
+ | virsh suspend ${VMNAME} | ||
+ | ;; | ||
+ | resume) | ||
+ | ## COMMANDS THAT YOU WISH TO RUN AFTER RESUME | ||
+ | virsh resume ${VMNAME} | ||
+ | ;; | ||
+ | hibernate) | ||
+ | ## COMMANDS THAT YOU WISH TO RUN BEFORE HIBERNATE | ||
+ | virsh suspend ${VMNAME} | ||
+ | ;; | ||
+ | thaw) | ||
+ | ## COMMANDS THAT YOU WISH TO RUN AFTER RESUME FROM SUSPEND TO DISK | ||
+ | virsh resume ${VMNAME} | ||
+ | ;; | ||
+ | esac | ||
+ | </file> | ||
+ |