Bug 624714
Summary: | Virt-install to a qcow2 disk gets error at end of kickstart | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | David Knierim <dknierim> | ||||||
Component: | python-virtinst | Assignee: | Cole Robinson <crobinso> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||||
Severity: | low | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | 6.0 | CC: | berrange, dallan, eblake, kxiong, mhideo, xen-maint, zpeng | ||||||
Target Milestone: | rc | Keywords: | RHELNAK | ||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: |
Previous versions of virt-install checked the first bytes of the disk image's master boot to ensure the disk image was valid. However, this check only worked with raw disk. This update skips the check on non-raw disks.
|
Story Points: | --- | ||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2011-05-19 13:45:53 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: | |||||||||
Attachments: |
|
Description
David Knierim
2010-08-17 14:42:42 UTC
Can you provide the XML which was generated for the guest ? virsh dumpxml dave-b thanks, Daniel as well as installed versions for libvirt and python-virtinst, please Daniel This issue has been proposed when we are only considering blocker issues in the current Red Hat Enterprise Linux release. ** If you would still like this issue considered for the current release, ask your support representative to file as a blocker on your behalf. Otherwise ask that it be considered for the next Red Hat Enterprise Linux release. ** Created attachment 439171 [details]
XML file for domain in question
Created attachment 439172 [details]
List of package versions for for host
Actually the XML was a red-herring. The problem is easy > Error shown above occurs. Guest ends in a "shut off" state. > After manually starting guest, the guest boots and runs normally with no > issues. This shows that installation was successfull. > Domain installation does not appear to have been > successful. If it was, you can restart your domain > by running 'virsh start dave-b'; otherwise, please > restart your installation. This message is the result of a hueristic that virt-install does. It checks the first bytes of the disk image to see if they are 0xaa55 which is what the DOS MBR has as a signature. This is great with a raw disk. Not so great with a qcow2 disk, because virt-install will read the qcow2 magic instead of the actual guest data ! Virt-install's post_install_check() needs to skip this check on non-raw disks. Thank you for your bug report. This issue was evaluated for inclusion in the current release of Red Hat Enterprise Linux. Unfortunately, we are unable to address this request in the current release. Because we are in the final stage of Red Hat Enterprise Linux 6 development, only significant, release-blocking issues involving serious regressions and data corruption can be considered. If you believe this issue meets the release blocking criteria as defined and communicated to you by your Red Hat Support representative, please ask your representative to file this issue as a blocker for the current release. Otherwise, ask that it be evaluated for inclusion in the next minor release of Red Hat Enterprise Linux. Should be fixed now upstream: http://hg.fedorahosted.org/hg/python-virtinst/rev/312e23391971 Fix built in python-virtinst-0.500.5-1.el6 Verified with python-virtinst-0.500.5-1.el6 and libvirt-0.8.7-1.el6.x86_64 1.Run virt-install --accelerate --hvm --connect qemu:///system --cdrom=/dev/cdrom --name dave --ram=4096 --vcpus=1 -os-type=linux --os-variant=rhel5 --disk /var/lib/libvirt/images/dave-b.qcow2,size=20,format=qcow2 2.After the completion of the installation of the guest,the guest can be started up. So when the guest image is qcow2 format,the installation is correct. Verification is passed. verified this bug with: Linux localhost.localdomain 2.6.32-130.el6.x86_64 #1 SMP Tue Apr 5 19:58:31 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux python-virtinst-0.500.5-3.el6.noarch libvirt-0.8.7-17.el6.x86_64 passed. Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: * Previous versions of virt-install checked the first bytes of the disk image's master boot to ensure the disk image was valid. However, this check only worked with raw disk. This update skips the check on non-raw disks. (BZ#624714) Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1 +1 @@ -* Previous versions of virt-install checked the first bytes of the disk image's master boot to ensure the disk image was valid. However, this check only worked with raw disk. This update skips the check on non-raw disks. (BZ#624714)+Previous versions of virt-install checked the first bytes of the disk image's master boot to ensure the disk image was valid. However, this check only worked with raw disk. This update skips the check on non-raw disks. 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-0636.html |