#743628 Jessie freezes sometimes when run in a virtual machine when host is suspended/resumed

Package:
qemu-kvm
Source:
qemu
Submitter:
"Christian W."
Date:
2025-08-13 06:53:03 UTC
Severity:
important
Tags:
#743628#5
Date:
2014-04-04 11:36:04 UTC
From:
To:
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)?!

#743628#12
Date:
2014-05-29 19:18:46 UTC
From:
To:
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

#743628#17
Date:
2014-05-30 06:46:12 UTC
From:
To:
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

#743628#24
Date:
2014-07-09 06:19:13 UTC
From:
To:
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

#743628#29
Date:
2014-07-09 07:32:05 UTC
From:
To:
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

#743628#36
Date:
2016-10-22 22:13:44 UTC
From:
To:
Dear Customer,

We could not deliver your item.
Delivery Label is attached to this email.

Sincerely,
Charles Monroe,
Sr. Operation Manager.

#743628#45
Date:
2025-08-13 06:52:10 UTC
From:
To:
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