Description of problem: Attempt to add hardware to an aarch64 guest fails with "Error launching hardware dialog: 'NoneType' object is not iterable" Version-Release number of selected component (if applicable): virt-manager-1.4.3-1.fc27.noarch How reproducible: Always, reproducible on any arch with an aarch64 guest. Steps to Reproduce: 1. Attempt to add hardware to an existing aarch64 guest using virt-manager Actual results: Error launching hardware dialog: 'NoneType' object is not iterable Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/details.py", line 1407, in add_hardware self.addhw = vmmAddHardware(self.vm, self.is_customize_dialog) File "/usr/share/virt-manager/virtManager/addhardware.py", line 120, in __init__ self._set_initial_state() File "/usr/share/virt-manager/virtManager/addhardware.py", line 320, in _set_initial_state self._build_panic_models(combo) File "/usr/share/virt-manager/virtManager/addhardware.py", line 980, in _build_panic_models for m in virtinst.VirtualPanicDevice.get_models(self.vm.get_xmlobj().os): TypeError: 'NoneType' object is not iterable Expected results: Add hardware dialog.
Thanks for the report, please provide the affected VMs XML. sudo virsh dumpxml $VM-NAME
The vm didnt get created due to the error. To reproduce, use Virt-Manager to create an AArch64 guest, selecting the "Customize configuration before install." option, then click on "Add Hardware" and you will see the error. It isnt specific to aarch64 and will fail for an armhfp guest as well. x86_64 works as expected.
Hmm that's an unfortunate bug. Fixed upstream now, I'll do builds next week: commit f7c8cf9f667f2b0122f5689009d74c94c38c7316 Author: Cole Robinson <crobinso> Date: Fri Oct 27 09:42:54 2017 +0200 devicepanic: Don't return empty model list (bz #1505532)
*** Bug 1508715 has been marked as a duplicate of this bug. ***
This error also occurs for sparc architecture: New VM -> Architecture -> sparc Machine Type -> SS-5 OS Type -> Solaris Version -> Solaris 9 RAM -> 256 Select customize configuration before install Click on "+ Add Hardware"
(In reply to Cole Robinson from comment #3) > Hmm that's an unfortunate bug. Fixed upstream now, I'll do builds next week: > > commit f7c8cf9f667f2b0122f5689009d74c94c38c7316 > Author: Cole Robinson <crobinso> > Date: Fri Oct 27 09:42:54 2017 +0200 > > devicepanic: Don't return empty model list (bz #1505532) Any update on this?
Sorry for the delay, I'll do a build today
virt-manager-1.4.3-2.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-c617798fcc
Verifed that on rawhide/aarch64/hikey I can add devices without this error using: virt-manager-1.4.3-2.fc28.noarch Thanks!
Add hardware working for aarch64 guests using virt-manager-1.4.3-2.fc27. Thanks Cole!
virt-manager-1.4.3-2.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.