Bug 518936

Summary: vm with sourceless cdrom fails to start
Product: [Community] Virtualization Tools Reporter: Aleksander Trofimowicz <aatrof>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: berrange, crobinso, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-11 15:04:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
check whether src is not null, then insert the file directive none

Description Aleksander Trofimowicz 2009-08-24 09:17:30 UTC
Created attachment 358427 [details]
check whether src is not null, then insert the file directive

Description of problem:
qemu-kvm no longer accepts '-drive' option in the following form 'file=,if=...' with 'file' sub-option pointing to nowhere.
consequently a vm fails to start. 

Version-Release number of selected component (if applicable):
qemu-kvm head: bee37f32d47a6c04ff57d18e01cf296607e22b30
libvirt head: 777fc2e9d60844a7387355d9cef06bd25190d146

How reproducible:

always

Steps to Reproduce:
1. define a vm with cdrom drive
2. disconnect it from any source
3. try to start the vm
  
Actual results:

fails to start

Expected results:
runs smoothly

Additional info:

a quick fix attached

Comment 1 Daniel Berrangé 2010-02-11 15:04:32 UTC
This is fixed in the 0.7.6 release