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 1006662 - fail to boot guest attaching with VHDX format data disk(virito/virtio-scsi interface)
Summary: fail to boot guest attaching with VHDX format data disk(virito/virtio-scsi in...
Keywords:
Status: CLOSED DUPLICATE of bug 1007176
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Jeff Cody
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-11 04:35 UTC by Sibiao Luo
Modified: 2013-11-06 19:41 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-06 19:41:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sibiao Luo 2013-09-11 04:35:24 UTC
Description of problem:
create a VHDX format image, then attach it to guest with virtio/virtio-scsi interface specified readonly=on, but qemu fail to boot up.

Version-Release number of selected component (if applicable):
host info:
3.10.0-18.el7.x86_64
qemu-kvm-1.5.3-2.el7.x86_64
seabios-bin-1.7.2.2-2.el7.noarch
guest info:
3.10.0-18.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.create a VHDX image via hyper-V and copy the vhdx image into localhost.
# qemu-img info /home/sluo-rhel6.5-64bit.vhdx
image: /home/sluo-rhel6.5-64bit.vhdx
file format: vhdx
virtual size: 10G (10737418240 bytes)
disk size: 5.8G
2.attach the VHDX image to guest as a data disk with virtio/virtio-scsi interface specified readonly=on.
e.g:...-drive file=/home/sluo-rhel6.5-64bit.vhdx,if=none,format=vhdx,id=drive-data-disk,werror=stop,rerror=stop,readonly=on -device virtio-blk-pci,bus=pci.0,addr=0x7,drive=drive-data-disk,id=data-disk
Warning: option deprecated, use lost_tick_policy property of kvm-pit instead.
qemu-kvm: -drive file=/home/sluo-rhel6.5-64bit.vhdx,if=none,format=vhdx,id=drive-data-disk,werror=stop,rerror=stop,readonly=on: 'vhdx' invalid format
/etc/qemu-ifdown: could not launch network script
e.g:...-drive file=/home/sluo-rhel6.5-64bit.vhdx,if=none,format=vhdx,id=drive-data-disk,werror=stop,rerror=stop,readonly=on -device virtio-scsi-pci,bus=pci.0,addr=0x7,id=scsi0 -device scsi-hd,drive=drive-data-disk,id=data-disk,bus=scsi0.0
Warning: option deprecated, use lost_tick_policy property of kvm-pit instead.
qemu-kvm: -drive file=/home/sluo-rhel6.5-64bit.vhdx,if=none,format=vhdx,id=drive-data-disk,werror=stop,rerror=stop,readonly=on: 'vhdx' invalid format
/etc/qemu-ifdown: could not launch network script

Actual results:

Expected results:
it could boot guest attaching with VHDX data disk(virtio/virtio-scsi) specified readonly=on successfully.

Additional info:
QEMU has supported format=vhdx.
# /usr/libexec/qemu-kvm -drive format=?
Supported formats: vvfat vpc vmdk vhdx vdi sheepdog sheepdog sheepdog raw host_cdrom host_floppy host_device file qed qcow2 qcow parallels nbd nbd nbd iscsi gluster gluster gluster gluster dmg cow cloop bochs blkverify blkdebug

Comment 2 Jeff Cody 2013-09-13 19:25:24 UTC
vhdx needs to be added to the rpm spec template in the drive r/o whitelist

Comment 3 Jeff Cody 2013-11-06 19:41:41 UTC
Closing this as a dupe of BZ 1007176 - it wasn't a dupe when written, but we've consolidated the BZs for adding vpc and vhdx formats to the whitelist.

*** This bug has been marked as a duplicate of bug 1007176 ***


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