Bug 2016296

Summary: Openshift virtualization : Create Windows Server 2019 VM using template : Fails
Product: OpenShift Container Platform Reporter: Prageetika <Prageetika.Sharma>
Component: Console Kubevirt PluginAssignee: Matan Schatzman <mschatzm>
Status: CLOSED ERRATA QA Contact: Leon Kladnitsky <lkladnit>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.7CC: aos-bugs, cnv-qe-bugs, gouyang, lkladnit
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-10 16:21:07 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
screenshot of default value selected for the rootdisk-install
none
create windows vm from iso none

Description Prageetika 2021-10-21 08:36:48 UTC
Created attachment 1835485 [details]
screenshot of default value selected for the rootdisk-install

Description of problem:
Create Windows Server 2019 VM using template fails. 

Version-Release number of selected component (if applicable):
Openshift virtualization operator v2.6.6

How reproducible:
Always 

Steps to Reproduce:
1. Select create virtual machine from template 
2. Select Microsoft Windows Server 2019 VM 
3. Select the boot source type -- selected import via URL 
4. Review and create the VM 

Actual results:
Creation Failed

Expected results:
VM creation should be successful

Additional info:
Workaround :: 

Edit the virtual machine configuration -- > Advanced --> Storage --> For disk "rootdisk-install" change the interface from "virtio" to "sata". VM creation successful.

Comment 1 Sebastian Soto 2021-10-25 17:10:06 UTC
This is assigned to the wrong project, this product is for running Windows containers on OpenShift, not the creation of Windows virtual machines.
Moving this to CNV, but I am not sure if that is the right place either.

Comment 2 sgott 2021-10-26 16:30:30 UTC
Dominik, assigning this to the SSP component as this issue is about templates. Please let me know if you believe this is in error.

Comment 3 Dominik Holler 2021-10-28 09:09:14 UTC
Prageetika, can you confirm that there is an additional step 3a like this to reproduce:

1. Select create virtual machine from template 
2. Select Microsoft Windows Server 2019 VM 
3. Select the boot source type -- selected import via URL 
3a. Enable "Mount this as a CD-ROM boot source"
4. Review and create the VM

Comment 4 Prageetika 2021-10-28 09:44:56 UTC
Hi Dominik, 

Yes, that right. Step 3a is required.

Comment 5 Guohua Ouyang 2021-10-28 10:08:59 UTC
(In reply to Dominik Holler from comment #3)
> Prageetika, can you confirm that there is an additional step 3a like this to
> reproduce:
> 
> 1. Select create virtual machine from template 
> 2. Select Microsoft Windows Server 2019 VM 
> 3. Select the boot source type -- selected import via URL 
> 3a. Enable "Mount this as a CD-ROM boot source"
> 4. Review and create the VM

Could not reproduce it on CNV v2.6.8 + OCP 4.7-35 by following these steps.

Comment 6 Guohua Ouyang 2021-10-28 10:10:26 UTC
Created attachment 1837883 [details]
create windows vm from iso

Comment 7 Guohua Ouyang 2021-10-28 11:16:40 UTC
Could reproduce the issue while creating the VM via customize wizard.
The root cause is the interface of rootdisk-install is "virtio" in customize wizard.
If create the windows VM via the default wizard, it has no such issue.

Comment 9 Leon Kladnitsky 2022-01-04 10:03:37 UTC
Verified on 4.10.0-0.ci-2022-01-03-042630

Comment 13 errata-xmlrpc 2022-03-10 16:21:07 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 (Moderate: OpenShift Container Platform 4.10.3 security update), 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://access.redhat.com/errata/RHSA-2022:0056