Bug 2317260

Summary: i440FX chipset: Unable to complete install: 'XML error: The PCI controller with index='0' must be model='pci-root' for this machine type, but model='pcie-root' was found instead'
Product: [Fedora] Fedora Reporter: Frantisek Hanzlik <franta>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 41CC: berrange, crobinso, nixuser, philip.wyett
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: virt-manager-5.0.0-1.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-12-15 02:27:40 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:

Description Frantisek Hanzlik 2024-10-08 16:11:28 UTC
Creating new VM in Virtual Manager, when selecting "i440FX" chipset for it, it is impossible to save VM configuration and begin its installation, because error "Unable to complete install: 'XML error: The PCI controller with index='0' must be model='pci-root' for this machine type, but model='pcie-root' was found instead'

and it is not possible to easily remove this error.


Reproducible: Always

Steps to Reproduce:
1. Create new VM in Virtual Manager
2. Check "Customize configuration before install" 
3. select "Chipset: i440FX" in Hypervisor Details menu, click "Apply"
4. Click "Begin installation" cause error window appears, with message:

Unable to complete install: 'XML error: The PCI controller with index='0' must be model='pci-root' for this machine type, but model='pcie-root' was found instead'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/createvm.py", line 2008, in _do_async_install
    installer.start_install(guest, meter=meter)
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 695, in start_install
    domain = self._create_guest(
             ^^^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 637, in _create_guest
    domain = self.conn.createXML(initial_xml or final_xml, 0)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/libvirt.py", line 4529, in createXML
    raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: XML error: The PCI controller with index='0' must be model='pci-root' for this machine type, but model='pcie-root' was found instead


Actual Results:  
IMO It is not possible to resolve this problem from virtual-manager menu without editing XML configuration file.
VM thus is not possible to install.

Expected Results:  
PCI controller should be configured automatically when choosing i440FX chipset, or should be possible manually remove PCIe controller and add PCI controller instead.

Comment 1 Fedora Update System 2024-12-06 19:02:09 UTC
FEDORA-2024-eb0b085f84 (virt-manager-5.0.0-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-eb0b085f84

Comment 2 Fedora Update System 2024-12-07 07:25:33 UTC
FEDORA-2024-eb0b085f84 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-eb0b085f84`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-eb0b085f84

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2024-12-15 02:27:40 UTC
FEDORA-2024-eb0b085f84 (virt-manager-5.0.0-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.