Bug 1049108

Summary: qemu-kvm do not check media while '-drive' only specified 'serial' with '-M q35'
Product: Red Hat Enterprise Linux 7 Reporter: Xu Han <xuhan>
Component: qemu-kvm-rhevAssignee: Marcel Apfelbaum <marcel>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 7.0CC: ailan, hhuang, juzhang, knoel, lmiksik, mrezanin, rbalakri, virt-maint, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-rhev-2.3.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-04 16:13:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1227278    

Description Xu Han 2014-01-07 03:11:28 UTC
Description of problem:
qemu-kvm do not check media while '-drive' only specified 'serial' with '-M q35'
# /usr/libexec/qemu-kvm -M q35 -drive serial=dsfs
VNC server running on `::1:5900'

With '-M pc' would not hit this issue.
# /usr/libexec/qemu-kvm -M pc -drive serial=dsfs
qemu-kvm: Device needs media, but drive is empty
qemu-kvm: Device initialization failed.
qemu-kvm: Initialization of device ide-hd failed

Version-Release number of selected component (if applicable):
qemu-kvm-1.5.3-31.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. # /usr/libexec/qemu-kvm -M q35 -drive serial=dsfs
or # /usr/libexec/qemu-kvm -M q35 -drive if=ide

Actual results:
qemu-kvm do not check whether specified media.

Expected results:
Should check media and give error messages.

Additional info:

Comment 5 Marcel Apfelbaum 2015-05-05 15:08:29 UTC
Working on QEMU 2.3.

Comment 7 Jun Li 2015-06-25 06:53:15 UTC
Verify:

Version of components:
qemu-kvm-rhev-2.3.0-4.el7.x86_64


# /usr/libexec/qemu-kvm -M q35 -drive serial=dsfs
qemu-kvm: Device needs media, but drive is empty
qemu-kvm: Initialization of device ide-hd failed: Device initialization failed.

# /usr/libexec/qemu-kvm -M q35 -drive if=ide
qemu-kvm: Device needs media, but drive is empty
qemu-kvm: Initialization of device ide-hd failed: Device initialization failed.


As above show, this bz have been verified.

Double-checked with Xu Han, so set this bz as verified. 

Any issue, free to correct me. Thx.

Comment 10 errata-xmlrpc 2015-12-04 16:13:59 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.

https://rhn.redhat.com/errata/RHBA-2015-2546.html