Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 670278

Summary: guest system is paused after reboot
Product: Red Hat Enterprise Linux 6 Reporter: Pavel Lisý <pavel.lisy>
Component: libvirtAssignee: Eric Blake <eblake>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 6.0CC: eblake, jdenemar, mjenner, mzhan, xen-maint, yoyzhang
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-0.8.7-5.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:25:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pavel Lisý 2011-01-17 18:50:02 UTC
Description of problem:
Host system RHEL6, guest system is RHEL5, guest system is set in autoboot state.
When I reboot host system guest system stays paused. I suppose it should be running.

Version-Release number of selected component (if applicable):
libvirt-0.8.1-27.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. install RHEL5 guest system
2. set is autobooting
3. reboot host system
  
Actual results:
guest system is paused

Expected results:
guest system is running

Additional info:

virsh list
 Id Name                 State
----------------------------------
  1 hosea                paused

In /var/log/messages I can see error:

libvirtd: 19:20:12.055: error : qemuMonitorJSONCheckError:316 : internal error unable to execute QEMU command 'cont': An incoming migration is expected before this command can be executed

I can resume it: 
virsh resume hosea

than uptime is longer than uptime of host (I suppose it is intentional)

uptime 
 19:44:51 up 4 days,  4:37,  1 user,  load average: 0.49, 0.11, 0.04

Comment 1 Pavel Lisý 2011-01-17 18:51:56 UTC
Correct version of RHEL is 6.0

Comment 3 Pavel Lisý 2011-02-02 14:30:36 UTC
Ping. Is somebody reading this?

Comment 4 Eric Blake 2011-02-02 14:56:44 UTC
Yes - in fact, this sounds suspiciously like this upstream patch is the solution:
https://www.redhat.com/archives/libvir-list/2011-January/msg00877.html

Comment 7 Pavel Lisý 2011-02-05 09:11:08 UTC
Hello I see you have made patched version. Cam I try it now? Is it available to download?

Comment 8 Jiri Denemark 2011-02-07 09:37:53 UTC
(In reply to comment #7)
> Hello I see you have made patched version. Cam I try it now? Is it available to
> download?

Yes, you can find some pre-release packages for testing at
http://veillard.com/libvirt/6.1/

Comment 9 Pavel Lisý 2011-02-07 12:51:10 UTC
Perfect. 

I've updated libvirt from this source and it is working now! All guests have been resumed correctly after reboot. Thanks a lot.

Comment 10 Min Zhan 2011-02-12 10:22:30 UTC
Verified as Passed in below environment:
# uname -a
Linux dhcp-65-85.nay.redhat.com 2.6.32-112.el6.x86_64 #1 SMP Wed Feb 2 14:17:15
EST 2011 x86_64 x86_64 x86_64 GNU/Linux
kernel-2.6.32-112.el6.x86_64
qemu-kvm-0.12.1.2-2.132.el6.x86_64
libvirt-0.8.7-6.el6.x86_64

Steps:
1. # cat /etc/sysconfig/libvirt-guest
make sure the ON_BOOT=start,ON_SHUTDOWN=suspend

2. Make sure the guest is in running status, also do some operations in the guest. 

3. Reboot the host,check the guest status and log.
# virsh list --all
 Id Name                 State
----------------------------------
  1 libvirt5             running


-------------
I can reproduce this bug with libvirt-0.8.1-27.el6.x86_64.

# virsh list --all
 Id Name                 State
----------------------------------
  1 libvirt5             paused

The log has below information:
...
16:42:43.444: debug : virJSONValueToString:1059 : result={"error":{"class":"MigrationExpected","desc":"An incoming migration is expected before this command can be executed","data":{}}}
16:42:43.444: debug : virEventRunOnce:593 : Poll on 8 handles 0x7f32e4081fd0 timeout -1
16:42:43.444: debug : qemuMonitorJSONCheckError:305 : unable to execute QEMU command {"execute":"cont"}: {"error":{"class":"MigrationExpected","desc":"An incoming migration is expected before this command can be executed","data":{}}}
16:42:43.444: error : qemuMonitorJSONCheckError:316 : internal error unable to execute QEMU command 'cont': An incoming migration is expected before this command can be executed
16:42:43.444: info : qemuSecurityDACRestoreSecurityFileLabel:80 : Restoring DAC user and group on '/var/lib/libvirt/qemu/save//libvirt5.save'
...

Comment 13 Pavel Lisý 2011-05-04 09:08:11 UTC
What kind of info do you need?

Comment 14 Pavel Lisý 2011-05-04 10:12:40 UTC
(In reply to comment #10)
> Verified as Passed in below environment:
> # uname -a
> Linux dhcp-65-85.nay.redhat.com 2.6.32-112.el6.x86_64 #1 SMP Wed Feb 2 14:17:15
> EST 2011 x86_64 x86_64 x86_64 GNU/Linux
> kernel-2.6.32-112.el6.x86_64
> qemu-kvm-0.12.1.2-2.132.el6.x86_64
> libvirt-0.8.7-6.el6.x86_64
> 
> Steps:
> 1. # cat /etc/sysconfig/libvirt-guest
> make sure the ON_BOOT=start,ON_SHUTDOWN=suspend
> 
> 2. Make sure the guest is in running status, also do some operations in the
> guest. 
> 
> 3. Reboot the host,check the guest status and log.
> # virsh list --all
>  Id Name                 State
> ----------------------------------
>   1 libvirt5             running
> 
> 
> -------------
> I can reproduce this bug with libvirt-0.8.1-27.el6.x86_64.
> 
> # virsh list --all
>  Id Name                 State
> ----------------------------------
>   1 libvirt5             paused

With this version: libvirt-0.8.7-5.el6.x86_64

it works correctly

Comment 15 errata-xmlrpc 2011-05-19 13:25:39 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0596.html