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 788399

Summary: libvirt restore guest fail with low probability and report qemu-kvm smbios error
Product: Red Hat Enterprise Linux 6 Reporter: Huang Wenlong <whuang>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 6.3CC: acathrow, cwei, dyuan, jyang, mzhan, rwu, yupzhang
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-08 09:01:54 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 Huang Wenlong 2012-02-08 07:31:31 UTC
Description of problem:
libvirt restore guest fail  with low probability and report qemu-kvm smbios error.
virsh restore $guest fail. but if you try again , it will be successed .

libvirt-0.9.8-1.el6.x86_64 can not reproduce this bug  so it is a regression 

Version-Release number of selected component (if applicable):
libvirt-0.9.9-2.el6.x86_64
qemu-kvm-0.12.1.2-2.222.el6.x86_64


How reproducible:
about 5%

Steps to Reproduce:
1. define a guest with xml like (RHEV's guest has smbios setting ) :
...
<sysinfo type='smbios'>
<system>
<entry name='manufacturer'>Red Hat</entry>
<entry name='product'>RHEV Hypervisor</entry>
<entry name='version'>6Server-6.2.0.3.el6</entry>
<entry name='serial'>44454C4C-4A00-1047-804A-C2C04F4D3258_00:23:19:2D:52:90</entry>
<entry name='uuid'>b075feff-dfb5-6b29-3734-e0aa0d8ed56a</entry>
</system>
</sysinfo>
<os>
<type arch='x86_64' machine='rhel6.2.0'>hvm</type>
<boot dev='hd'/>
<boot dev='network'/>
<bootmenu enable='yes'/>
<smbios mode='sysinfo'/>
</os>
...


2.  create  this guest
# virsh create ruth.xml
3.  let guest  save and restore  in the loop

#while true ;do virsh save rr62 /tmp/save && virsh restore /tmp/save ;done


note: when virsh restore fail  error is :
error: Failed to restore domain from /tmp/save
error: unsupported configuration: the QEMU binary /usr/libexec/qemu-kvm does not support smbios settings

4.in the same time  watch the libvirt log   , then restore fail  the error show up

#tail -f  /var/log/libvirt/libvirtd.log
...
2012-02-08 05:55:46.241+0000: 29371: error : qemuBuildCommandLine:3681 : unsupported configuration: the QEMU binary /usr/libexec/qemu-kvm does not support kvm
2012-02-08 05:55:46.241+0000: 29371: error : qemuBuildCommandLine:3815 : unsupported configuration: the QEMU binary /usr/libexec/qemu-kvm does not support smbios settings
....



RUTH test can reproduce this issue 100%


#ruth -ld -vvv ../config/vmTests-new.conf -f vmTests.HibernateVmTests.repeatedHibernationCycle

result is fail    the log is the same with  pure libvirt .




Actual results:
virsh restore fail

Expected results:
no fail

Additional info:
this issue is hard to reproduce with pure libvirt ,but it can reproduce easily with RUTH

Comment 2 Huang Wenlong 2012-02-08 08:26:27 UTC
I just update libvirt to libvirt-0.9.10-0rc2.el6.x86_64 ,
and run the RUTH test , the case PASS , no error .

Comment 3 Huang Wenlong 2012-02-08 09:01:54 UTC
I test it using  libvirt-0.9.10-0rc2.el6.x86_64 in pure libvirt environment 300 tims save and restore and can not reproduce this issue , 
so I close it with currentrelease .