mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-18 06:03:58 +03:00
78064728e6
The commit db8305ad explicitly adds pcie-root and pcie root ports for q35. If the user selects i440FX chipset instead of Q35(default) from customize dialog, The pre-defined pcie-root and ports cause failure when starting i440fx VM installation because they're not applicable to i440fx. It fails with below error message: summary=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' details=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 2088, in _do_async_install installer.start_install(guest, meter=meter) File "/usr/share/virt-manager/virtinst/install/installer.py", line 737, in start_install domain = self._create_guest( File "/usr/share/virt-manager/virtinst/install/installer.py", line 679, in _create_guest domain = self.conn.createXML(initial_xml or final_xml, 0) File "/usr/lib64/python3.10/site-packages/libvirt.py", line 4442, 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 This patch fixes it by removing the pcie-root and ports for i440fx in apply_overview. Resolves: https://github.com/virt-manager/virt-manager/issues/444 Signed-off-by: Lin Ma <lma@suse.com>