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 1007176 - Add VPC and VHDX file formats as supported in qemu-kvm (read-only)
Summary: Add VPC and VHDX file formats as supported in qemu-kvm (read-only)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Jeff Cody
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 1006662 (view as bug list)
Depends On:
Blocks: 961854 977441 1006159
TreeView+ depends on / blocked
 
Reported: 2013-09-12 04:48 UTC by Sibiao Luo
Modified: 2014-06-18 03:36 UTC (History)
10 users (show)

Fixed In Version: qemu-kvm-1.5.3-15.el7
Doc Type: Release Note
Doc Text:
VPC and VHDX File Formats KVM in Red Hat Enterprise Linux 7.0 Beta includes support for the Microsoft Virtual PC (VPC) and Microsoft Hyper-V virtual hard disk (VHDX) file formats.
Clone Of:
Environment:
Last Closed: 2014-06-13 10:02:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sibiao Luo 2013-09-12 04:48:58 UTC
Description of problem:
fail to boot guest with vpc file format disk in qemu-kvm. we has fixed this issue in rhel6.5(bug 999779), so we need to backport the code to rhel7 also.

Version-Release number of selected component (if applicable):
host info:
# uname -r && rpm -q qemu-kvm
3.10.0-18.el7.x86_64
qemu-kvm-1.5.3-2.el7.x86_64
guest info:
3.10.0-18.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.create a vpc file format disk.
# qemu-img create -f vpc sluo-data-disk.vpc 10G
Formatting 'sluo-data-disk.vpc', fmt=vpc size=10737418240 
# qemu-img info sluo-data-disk.vpc
image: sluo-data-disk.vpc
file format: vpc
virtual size: 10G (10737893376 bytes)
disk size: 24K
2.boot guest with vpc format file in KVM.
e.g:...-drive file=/home/sluo-data-disk.vpc,if=none,format=vpc,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

Actual results:
after step 2, qemu will quit with prompt that 'vpc' invalid format, like:
Warning: option deprecated, use lost_tick_policy property of kvm-pit instead.
qemu-kvm: -drive file=/home/sluo-data-disk.vpc,if=none,format=vpc,id=drive-data-disk,werror=stop,rerror=stop,readonly=on: 'vpc' invalid format
/etc/qemu-ifdown: could not launch network script

Expected results:
Qemu should support the vpc file format.

Additional info:
# /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 1 Jeff Cody 2013-09-13 19:25:57 UTC
vpc needs to be added to the rpm spec template drive r/o whitelist

Comment 2 Ademar Reis 2013-11-05 19:41:35 UTC
(In reply to Jeff Cody from comment #1)
> vpc needs to be added to the rpm spec template drive r/o whitelist

And so does VHDX (until read/write support is added)

Comment 3 Jeff Cody 2013-11-06 15:33:58 UTC
*** Bug 879234 has been marked as a duplicate of this bug. ***

Comment 4 Jeff Cody 2013-11-06 19:41:41 UTC
*** Bug 1006662 has been marked as a duplicate of this bug. ***

Comment 5 Miroslav Rezanina 2013-11-07 08:26:23 UTC
Fix included in qemu-kvm-1.5.3-15.el7

Comment 7 Sibiao Luo 2013-11-18 03:34:37 UTC
Verify this issue on qemu-kvm-1.5.3-19.el7.x86_64 that with VPC and VHDX format disk, it can boot up with vpc/vhdx format disk specified readonly=on, so this issue has been fixed correctly.

host info:
# uname -r && rpm -q qemu-kvm
3.10.0-41.el7.x86_64
qemu-kvm-1.5.3-19.el7.x86_64

Best regards,
sluo

Comment 8 Ludek Smid 2014-06-13 10:02:41 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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