Bug #1140
[virt-install] Error pops up after click on Forward in wizard when creating new VM
100%
Description
Steps to reproduce:
1. Open virt-manager and make sure that the connection is added (for example, QEMU/KVM).
2. Click to create new VM (either using the appropriate button from the toolbar, or using File - New Virtual Machine).
3. Click Forward in the appeared popup (it doesn't matter which one of the radio-button options is selected).
Expected results:
The next screen is shown, it's possible to successfully create a new VM using this wizard.
Actual results:
The following error message is shown:
Error setting up default devices:'_OsVariant' object has no attribute '_get_urldistro'
Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/create.py", line 1681, in _build_guest guest.add_default_devices() File "/usr/share/virt-manager/virtinst/guest.py", line 636, in add_default_devices self.add_default_channels() File "/usr/share/virt-manager/virtinst/guest.py", line 611, in add_default_channels self._os_object.supports_qemu_ga() and File "/usr/share/virt-manager/virtinst/guest.py", line 228, in _get_os_object self._set_os_object(None) File "/usr/share/virt-manager/virtinst/guest.py", line 222, in _set_os_object obj = OSDB.lookup_os(variant) File "/usr/share/virt-manager/virtinst/osdict.py", line 179, in lookup_os return self._all_variants.get(key) File "/usr/share/virt-manager/virtinst/osdict.py", line 162, in _all_variants allvariants = self._make_default_variants() File "/usr/share/virt-manager/virtinst/osdict.py", line 145, in _make_default_variants v = _OsVariant(None) File "/usr/share/virt-manager/virtinst/osdict.py", line 230, in __init__ self.urldistro = self._get_urldistro() AttributeError: '_OsVariant' object has no attribute '_get_urldistro'
Related issues
History
Updated by nRoof over 7 years ago
It seems that the issue is caused by the removal _get_urldistro in the following commit:
https://git.parabola.nu/abslibre.git/commit/?id=c3b38983c0582c49cb517d676f263d3e3a8eb2ba
Updated by Anonymous over 7 years ago
- Subject changed from [virt-manager] Error pops up after click on Forward in wizard when creating new VM to [virt-install] Error pops up after click on Forward in wizard when creating new VM
Updated by Megver83 over 7 years ago
I've also get that error recently. Solved by installing community/virt-manager.
Updated by Anonymous over 7 years ago
- Status changed from open to in progress
i pushed a new revision to [libre-testing], could you test it to see if works well?
Updated by nRoof over 7 years ago
Updated virt-install from [libre-testing], and now it shows another error:
Error setting up default devices:'_OsVariant' object has no attribute 'supports_qemu_ga' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/create.py", line 1681, in _build_guest guest.add_default_devices() File "/usr/share/virt-manager/virtinst/guest.py", line 636, in add_default_devices self.add_default_channels() File "/usr/share/virt-manager/virtinst/guest.py", line 611, in add_default_channels self._os_object.supports_qemu_ga() and AttributeError: '_OsVariant' object has no attribute 'supports_qemu_ga'
Updated by nRoof over 7 years ago
Unable to reproduce the issue with the steps from the Description after todays update of virt-install from [libre].
But if the user proceeds to the end of the wizard and clicks Finish, then the following error pops up. It seems it doesn't matter which entries were made on all the steps of the wizard.
Unable to complete install: ''_OsVariant' object has no attribute 'is_windows'' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 88, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/create.py", line 2276, in _do_async_install guest.start_install(meter=meter) File "/usr/share/virt-manager/virtinst/guest.py", line 441, in start_install self.set_install_defaults() File "/usr/share/virt-manager/virtinst/guest.py", line 545, in set_install_defaults self._set_defaults() File "/usr/share/virt-manager/virtinst/guest.py", line 665, in _set_defaults self._set_clock_defaults() File "/usr/share/virt-manager/virtinst/guest.py", line 708, in _set_clock_defaults self.clock.offset = self._os_object.get_clock() File "/usr/share/virt-manager/virtinst/osdict.py", line 324, in get_clock if self.is_windows() or self._family in ['solaris']: AttributeError: '_OsVariant' object has no attribute 'is_windows'
Updated by Anonymous over 7 years ago
Temporary solution with the previous version, virt-install Version 1.4.0-2. Downgrade
Updated by Anonymous over 7 years ago
nRoof wrote:
Updated virt-install from [libre-testing], and now it shows another error:
[...]
Test the latest revision (1.4.0-2.parabola4) from [libre-testing] and let me know if works well.
Updated by Anonymous over 7 years ago
- Related to Freedom Issue #1130: [virt-install] non-fsdg compliant distros and OS with libvirt+qemu-headless added
Updated by Anonymous over 7 years ago
- % Done changed from 0 to 100
- Status changed from in progress to fixed