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.
Description:
migration failed with error when configure guest with OVMF bios + machine type=rhel6.5.0
when machine type is set lower than rhel6.5.0, such as rhel6.4.0, migration failed with the same error.
Product version
libvirt-1.2.8-10.el7.x86_64
qemu-kvm-rhev-2.1.2-15.el7.x86_64
OVMF-20140822-7.git9ece15a.el7.x86_64
How producible
100%
Steps:
1. Prepare a migration env with nfs img between source and target host
2. make sure source and target host has been installed OVMF
# rpm -q OVMF
OVMF-20140822-7.git9ece15a.el7.x86_64
3. install a UEFI guest with virt-manger, make sure the guest with below configuration, set machine type='rhel6.5.0', and OVMF bios in guest xml
# virsh dumpxml rhel7new
...
<os>
<type arch='x86_64' machine='rhel6.5.0'>hvm</type>
<loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader>
<nvram template='/usr/share/OVMF/OVMF_VARS.fd'>/var/lib/libvirt/qemu/nvram/rhel7new_VARS.fd</nvram>
<boot dev='hd'/>
</os>
...
4. start guest, it works well
# # virsh list --all
Id Name State
----------------------------------------------------
27 rhel7new running
5. do migration for this guest, met qemu-kvm error
# virsh migrate rhel7new --live qemu+ssh://10.66.6.205/system --verbose
root.6.205's password:
Migration: [100 %]error: internal error: early end of file from monitor: possible problem:
RHEL-6 compat: ich9-usb-uhci1: irq_pin = 3
RHEL-6 compat: ich9-usb-uhci2: irq_pin = 3
RHEL-6 compat: ich9-usb-uhci3: irq_pin = 3
qemu-kvm: /builddir/build/BUILD/qemu-2.1.2/savevm.c:906: shadow_bios: Assertion `bios != ((void *)0)' failed.
6. when modify machine type to pc-i440fx-rhel7.1.0 or pc-i440fx-rhel7.0.0, migration could success
7. when delete OVMF bios configuration <nvram template='/usr/share/OVMF/OVMF_VARS.fd'></nvram>, migration could also success
Actual result:
migration failed with error
Expected result:
migration should success when configure guest with OVMF bios + machine type=rhel6.5.0
Additional info:
similar issue refer bug 1170093, but that patch not fix this bug, so filed a new to track this issue
with qemu-kvm-rhev-2.2.0-8.el7
machine types from 6.0.0 - 6.6.0 all fail to start VM w/ pflash.
pc and pc-i440fx-rhel7.0.0, and pc-i440fx-rhel7.1.0 success
[root@dhcp-11-50 ~]# sh uefi-rhel66.sh
char device redirected to /dev/pts/1 (label charserial0)
QEMU 2.2.0 monitor - type 'help' for more information
(qemu) 2015-03-19T10:08:54.159087Z qemu-kvm: flash-based firmware is not supported by machine rhel6.1.0
[root@dhcp-11-50 ~]# vim uefi-rhel66.sh
[root@dhcp-11-50 ~]# sh uefi-rhel66.sh
char device redirected to /dev/pts/1 (label charserial0)
QEMU 2.2.0 monitor - type 'help' for more information
(qemu) 2015-03-19T10:09:01.570037Z qemu-kvm: flash-based firmware is not supported by machine rhel6.2.0
[root@dhcp-11-50 ~]# vim uefi-rhel66.sh
[root@dhcp-11-50 ~]# sh uefi-rhel66.sh
char device redirected to /dev/pts/1 (label charserial0)
QEMU 2.2.0 monitor - type 'help' for more information
(qemu) 2015-03-19T10:09:11.423035Z qemu-kvm: flash-based firmware is not supported by machine rhel6.3.0
[root@dhcp-11-50 ~]# vim uefi-rhel66.sh
[root@dhcp-11-50 ~]# sh uefi-rhel66.sh
char device redirected to /dev/pts/1 (label charserial0)
QEMU 2.2.0 monitor - type 'help' for more information
(qemu) 2015-03-19T10:09:20.637068Z qemu-kvm: flash-based firmware is not supported by machine rhel6.4.0
[root@dhcp-11-50 ~]# vim uefi-rhel66.sh
[root@dhcp-11-50 ~]# sh uefi-rhel66.sh
char device redirected to /dev/pts/1 (label charserial0)
QEMU 2.2.0 monitor - type 'help' for more information
(qemu) 2015-03-19T10:09:27.803100Z qemu-kvm: flash-based firmware is not supported by machine rhel6.5.0
[root@dhcp-11-50 ~]# vim uefi-rhel66.sh
[root@dhcp-11-50 ~]# sh uefi-rhel66.sh
qemu-kvm: -machine rhel6.6.0,accel=kvm,usb=off: Unsupported machine type
Use -machine help to list supported machines!
[root@dhcp-11-50 ~]# vim uefi-rhel66.sh
[root@dhcp-11-50 ~]# sh uefi-rhel66.sh
char device redirected to /dev/pts/1 (label charserial0)
QEMU 2.2.0 monitor - type 'help' for more information
(qemu) q
Based on above, move to VERIFIED.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2015-2546.html
Description: migration failed with error when configure guest with OVMF bios + machine type=rhel6.5.0 when machine type is set lower than rhel6.5.0, such as rhel6.4.0, migration failed with the same error. Product version libvirt-1.2.8-10.el7.x86_64 qemu-kvm-rhev-2.1.2-15.el7.x86_64 OVMF-20140822-7.git9ece15a.el7.x86_64 How producible 100% Steps: 1. Prepare a migration env with nfs img between source and target host 2. make sure source and target host has been installed OVMF # rpm -q OVMF OVMF-20140822-7.git9ece15a.el7.x86_64 3. install a UEFI guest with virt-manger, make sure the guest with below configuration, set machine type='rhel6.5.0', and OVMF bios in guest xml # virsh dumpxml rhel7new ... <os> <type arch='x86_64' machine='rhel6.5.0'>hvm</type> <loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader> <nvram template='/usr/share/OVMF/OVMF_VARS.fd'>/var/lib/libvirt/qemu/nvram/rhel7new_VARS.fd</nvram> <boot dev='hd'/> </os> ... 4. start guest, it works well # # virsh list --all Id Name State ---------------------------------------------------- 27 rhel7new running 5. do migration for this guest, met qemu-kvm error # virsh migrate rhel7new --live qemu+ssh://10.66.6.205/system --verbose root.6.205's password: Migration: [100 %]error: internal error: early end of file from monitor: possible problem: RHEL-6 compat: ich9-usb-uhci1: irq_pin = 3 RHEL-6 compat: ich9-usb-uhci2: irq_pin = 3 RHEL-6 compat: ich9-usb-uhci3: irq_pin = 3 qemu-kvm: /builddir/build/BUILD/qemu-2.1.2/savevm.c:906: shadow_bios: Assertion `bios != ((void *)0)' failed. 6. when modify machine type to pc-i440fx-rhel7.1.0 or pc-i440fx-rhel7.0.0, migration could success 7. when delete OVMF bios configuration <nvram template='/usr/share/OVMF/OVMF_VARS.fd'></nvram>, migration could also success Actual result: migration failed with error Expected result: migration should success when configure guest with OVMF bios + machine type=rhel6.5.0 Additional info: similar issue refer bug 1170093, but that patch not fix this bug, so filed a new to track this issue