Hi all, for my current work I need a more recent debian version so I installed Debian 8 into a virtual machine. The host OS is Debian 7 and the emulation is done using libvirt with kvm. Now it sometimes happens that after suspending my host OS the guest OS doesn't wake up again. Instead its CPU usage rises to 100% and I can't use it any more. Normally I work on the command line so I installed sshd in the guest. Even through SSH the guest isn't reachable any more (ping also doesn't work). I will attach my /var/log/messages containing lots of kernel messages. When I have understood it the right way, the time jumps back at one point (rather at the end)?!
I'm sorry to say that, but when you suspend the host, unsuspecting guests just aren't prepared for the timers to stop. This is something which should not be done. Thanks, /mjt
29.05.2014 23:18, Michael Tokarev wrote: I'll mark it as wontfix for now, due to the above, because there's not much really we can do here and this bugreport will always pop up in my regular qemu bugfixing. Thanks, /mjt
Hi,
I've found a viable solution to this problem.
I've putted following script into /etc/pm/sleep.d:
#!/bin/bash
#
# A script to pause virtual machines before going into suspend
declare -r SAVES_DIRECTORY="/var/lib/libvirt/qemu/save"
for_each_line() {
while read -r line; do $1 "$line"; done
}
save_virtual_machine() {
TARGET_FILE="$SAVES_DIRECTORY/$1.save"
echo "Saving $1 (to $TARGET_FILE)"
virsh "connect qemu:///system;save $1 '$TARGET_FILE'"
}
virsh 'connect qemu:///system;list' | \
sed -n '/^\s\+[0-9]\+\s\+.\+\s\+running.*/p' | \
sed -e 's/^\s\+[0-9]\+\s\+\(.\+\)\s\+running.*/\1/' | \
for_each_line save_virtual_machine
This saves all running virtual machines when going to sleep.
Maybe this solution can find its way into debian? I could write
a python-script that uses the libvirt instead of this shell
script...
Chris
09.07.2014 08:19, C. Wolf writes: This does not save any qemu virtual machines except the ones which are started by libvirt. So it is not very useful to put it into qemu package. You can ping libvirt guys for this. Thanks, /mjt
Dear Customer, We could not deliver your item. Delivery Label is attached to this email. Sincerely, Charles Monroe, Sr. Operation Manager.
https://bugs.debian.org/743628 Replying to a bug report which is more than 10 years old now. Do you happen to know if this issue is still present on current debian system (bookworm or trixie)? Thanks, /mjt