Bug 1800638

Summary: Windows VM Fails to boot after repetetive CD ROM attachment
Product: Container Native Virtualization (CNV) Reporter: Radim Hrazdil <rhrazdil>
Component: VirtualizationAssignee: Petr Kotas <pkotas>
Status: CLOSED DUPLICATE QA Contact: Israel Pinto <ipinto>
Severity: high Docs Contact:
Priority: medium    
Version: 2.2.0CC: aos-bugs, cnv-qe-bugs, fdeutsch, sgott
Target Milestone: ---   
Target Release: 2.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-12 19:44: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:
Attachments:
Description Flags
virt launcher log none

Description Radim Hrazdil 2020-02-07 15:32:59 UTC
Created attachment 1661716 [details]
virt launcher log

Description of problem:
When a user adds a CD to a windows machine and then removes it and decides to add a different one, the VM fails to boot with the following error:

Generated from virt-handler
server error. command SyncVMI failed: "LibvirtError(Code=67, Domain=10, Message='unsupported configuration: disk type 'virtio' of 'vdb' does not support ejectable media')"



Version-Release number of selected component (if applicable):
OCP 4.3
CNV 2.2

How reproducible:
100%

Steps to Reproduce:
1. Create a Windows VM
2. Attach a CD ROM, for example windows guest disk
 - registry.redhat.io/container-native-virtualization/virtio-win
3. Start the VM. Wait for VM to boot up. Stop the VM
4. Detach the CD ROM and attach a different one
 - for example container: kubevirt/virtio-container-disk
5. Start the VM

Actual results:
Error stated above

Expected results:
Successful boot

Additional info:

Comment 2 Petr Kotas 2020-03-10 08:44:49 UTC
Hi Radim, please do file the VM yaml.

@stu I do believe this would be related to the CDROM virtio error.

Comment 3 sgott 2020-03-12 19:44:59 UTC
Yes, this is the same issue as reported here: https://bugzilla.redhat.com/show_bug.cgi?id=1802001

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

Comment 4 Radim Hrazdil 2020-03-16 08:38:54 UTC
After discussion with Petr Kotas, I have opened BZ1813198 for User interface to always attach CD-ROMs with sata bus.