Bug 1810558

Summary: Q35: VM with Windows OS type failed to run
Product: [oVirt] ovirt-engine Reporter: Nisim Simsolo <nsimsolo>
Component: BLL.VirtAssignee: Michal Skrivanek <michal.skrivanek>
Status: CLOSED DUPLICATE QA Contact: meital avital <mavital>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.4.0CC: bugs, nsimsolo, rbarry
Target Milestone: ---   
Target Release: ---   
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-10 15:07:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log
none
vdsm.log
none
qemu log
none
i440fx&legacy BIOS vdsm.log
none
i440fx&legacy BIOS engine.log
none
i440fx&legacy BIOS qemu.log none

Description Nisim Simsolo 2020-03-05 13:53:18 UTC
Description of problem:
- When running VM with:
Operating system - Windows (any of them)
BIOS type: Q35 Chipset with Legacy BIOS
Custom Emulated Machine - Q35

The VM failed to run with the net vdsm.log ERROR:

2020-03-05T13:38:45.582848Z qemu-kvm: kvm_init_vcpu failed: Function not implemented (code=1) (vm:1598)
2020-03-05 15:38:47,110+0200 ERROR (jsonrpc/3) [virt.vm] (vmId='b5e31069-0911-4527-a8b8-861f528cc468') Operation failed (vm:4788)
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/vdsm/virt/vm.py", line 4753, in setCpuTuneQuota
    self._dom.setSchedulerParameters({'vcpu_quota': int(quota)})
  File "/usr/lib/python3.6/site-packages/vdsm/virt/virdomain.py", line 101, in f
    ret = attr(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/vdsm/common/libvirtconnection.py", line 131, in wrapper
    ret = f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/vdsm/common/function.py", line 94, in wrapper
    return func(inst, *args, **kwargs)
  File "/usr/lib64/python3.6/site-packages/libvirt.py", line 2555, in setSchedulerParameters
    if ret == -1: raise libvirtError ('virDomainSetSchedulerParameters() failed', dom=self)
libvirt.libvirtError: Requested operation is not valid: cgroup CPU controller is not mounted

- The VM is running successfully when changing BIOS to legacy and custom emulated machine to pc-i440fx


Version-Release number of selected component (if applicable):
ovirt-engine-4.4.0-0.24.master.el8ev
vdsm-4.40.5-1.el8ev.x86_64
qemu-kvm-4.2.0-13.module+el8.2.0+5898+fb4bceae.x86_64
libvirt-daemon-6.0.0-7.module+el8.2.0+5869+c23fe68b.x86_64


How reproducible:
100%

Steps to Reproduce:
1. Create new VM with Operating system - Windows (any of them)
BIOS type: Q35 Chipset with Legacy BIOS
Custom Emulated Machine - Q35
2. Run VM
3.

Actual results:
VM failed to run

Expected results:
It should be possible to run VM with Q35 chipset.

Additional info:
vdsm.log and engine.log attached

Comment 1 Nisim Simsolo 2020-03-05 13:58:03 UTC
Created attachment 1667768 [details]
engine.log

Comment 2 Nisim Simsolo 2020-03-05 13:58:47 UTC
Created attachment 1667769 [details]
vdsm.log

Comment 3 Nisim Simsolo 2020-03-05 13:59:51 UTC
Created attachment 1667770 [details]
qemu log

Comment 4 Michal Skrivanek 2020-03-06 09:03:10 UTC
this is basically a duplicate of bug 1782882 which is currently partially fixed already. 

interesting that it works with i440fx, can you please attach log from that run?

Comment 5 Nisim Simsolo 2020-03-08 09:11:00 UTC
Created attachment 1668393 [details]
i440fx&legacy BIOS  vdsm.log

Comment 6 Nisim Simsolo 2020-03-08 09:11:36 UTC
Created attachment 1668394 [details]
i440fx&legacy BIOS engine.log

Comment 7 Nisim Simsolo 2020-03-08 09:12:22 UTC
Created attachment 1668395 [details]
i440fx&legacy BIOS qemu.log

Comment 8 Nisim Simsolo 2020-03-08 09:13:10 UTC
(In reply to Michal Skrivanek from comment #4)
> this is basically a duplicate of bug 1782882 which is currently partially
> fixed already. 
> 
> interesting that it works with i440fx, can you please attach log from that
> run?

Please see logs started with i440fx&legacy BIOS.

Comment 9 Michal Skrivanek 2020-03-10 12:33:35 UTC
did you specifically select i440fx-7.6.0? that is going to work (as per the linked bug). You are supposed to run i440fx-8.2.0

Comment 10 Ryan Barry 2020-03-10 15:07:09 UTC

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

Comment 12 Red Hat Bugzilla 2023-09-14 05:53:54 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days