Hide Forgot
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
vpc needs to be added to the rpm spec template drive r/o whitelist
(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)
*** Bug 879234 has been marked as a duplicate of this bug. ***
*** Bug 1006662 has been marked as a duplicate of this bug. ***
Fix included in qemu-kvm-1.5.3-15.el7
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
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.