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 1006650 - qemu should give a more friendly prompt when didn't specify read-only for VHDX format disk
Summary: qemu should give a more friendly prompt when didn't specify read-only for VHD...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.5
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Jeff Cody
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1006651
TreeView+ depends on / blocked
 
Reported: 2013-09-11 03:15 UTC by Sibiao Luo
Modified: 2014-10-14 06:51 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1006651 (view as bug list)
Environment:
Last Closed: 2014-10-14 06:51:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1490 0 normal SHIPPED_LIVE qemu-kvm bug fix and enhancement update 2014-10-14 01:28:27 UTC

Description Sibiao Luo 2013-09-11 03:15:02 UTC
Description of problem:
boot guest with a VHDX format disk which did not specify read-only, qemu will quit with a "'vhdx' invalid format" prompt, I suggest that QEMU should give a more friendly prompt for users, like: VHDX should use a read-only drive.

Version-Release number of selected component (if applicable):
host info:
2.6.32-414.el6.x86_64
qemu-kvm-0.12.1.2-2.400.el6.x86_64
guet info:
2.6.32-414.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.create a VHDX image via hyper-V.
2.copy the vhdx image into localhost and boot guest with this VHDX image as a data disk which did not specify read-only for it.
e.g:...-drive file=/home/sluo-win2012-64bit.vhdx,if=none,format=vhdx,id=drive-data-disk,cache=none,werror=stop,rerror=stop -device virtio-blk-pci,bus=pci.0,addr=0x7,drive=drive-data-disk,id=data-disk
qemu-kvm: -drive file=/home/sluo-win2012-64bit.vhdx,if=none,format=vhdx,id=drive-data-disk,cache=none,werror=stop,rerror=stop: 'vhdx' invalid format
/etc/qemu-ifdown: could not launch network script

Actual results:
after step 2, qemu will quit with a "'vhdx' invalid format" prompt.

Expected results:
I suggest that QEMU should give a more friendly prompt for users, like: VHDX should use a read-only drive(just like bug 999788).

Additional info:

Comment 5 Sibiao Luo 2014-07-28 09:19:14 UTC
Verify this issue on qemu-kvm-rhev-0.12.1.2-2.431.el6.x86_64.

host info:
# uname -r && rpm -q qemu-kvm-rhev
2.6.32-493.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.431.el6.x86_64

e.g.:...-drive file=/home/my-data-disk.vhdx,if=none,format=vhdx,id=drive-data-disk,cache=none,werror=stop,rerror=stop -device virtio-blk-pci,bus=pci.0,addr=0x7,drive=drive-data-disk,id=data-disk
qemu-kvm: -drive file=/home/my-data-disk.vhdx,if=none,format=vhdx,id=drive-data-disk,cache=none,werror=stop,rerror=stop: 'vhdx' can be only used as read-only device.

Best Regards,
sluo

Comment 6 errata-xmlrpc 2014-10-14 06:51:01 UTC
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.

http://rhn.redhat.com/errata/RHBA-2014-1490.html


Note You need to log in before you can comment on or make changes to this bug.