kimchi-project / kimchi

An HTML5 management interface for KVM guests
https://github.com/kimchi-project/kimchi/releases/latest
Other
3.08k stars 365 forks source link

Ubuntu 18.04. No Virtualization Tab in Web UI. #1300

Closed zluggerz closed 4 years ago

zluggerz commented 4 years ago

Describe the bug There is no virtualization tab in the Web UI on Ubuntu 18.04 host. Host has no /etc/kimchi/template.conf file.

Please see the below output of cat /var/log/wok/wok-error.log | grep kimchi :

DistroLoader: failed to parse distro file: /etc/kimchi/distros.d/ubuntu.json Failed to import plugin plugins.kimchi.Kimchi, error: KCHDL0002E: KCHDL0002E DistroLoader: failed to parse distro file: /etc/kimchi/distros.d/ubuntu.json Failed to import plugin plugins.kimchi.Kimchi, error: KCHDL0002E: KCHDL0002E DistroLoader: failed to parse distro file: /etc/kimchi/distros.d/ubuntu.json Failed to import plugin plugins.kimchi.Kimchi, error: KCHDL0002E: KCHDL0002E DistroLoader: failed to parse distro file: /etc/kimchi/distros.d/ubuntu.json Failed to import plugin plugins.kimchi.Kimchi, error: KCHDL0002E: KCHDL0002E DistroLoader: failed to parse distro file: /etc/kimchi/distros.d/ubuntu.json Failed to import plugin plugins.kimchi.Kimchi, error: KCHDL0002E: KCHDL0002E DistroLoader: failed to parse distro file: /etc/kimchi/distros.d/ubuntu.json Failed to import plugin plugins.kimchi.Kimchi, error: KCHDL0002E: KCHDL0002E DistroLoader: failed to parse distro file: /etc/kimchi/distros.d/ubuntu.json Failed to import plugin plugins.kimchi.Kimchi, error: KCHDL0002E: KCHDL0002E File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 223, in get_list File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 229, in get_vms File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/libvirtconnection.py", line 68, in wrapper Unable to delete storage volume file: /var/lib/kimchi/isos.Details: screenshot_creation: Unable to create screenshot image /var/lib/kimchi/screenshots/9e7d13ce-ab0c-407c-bfbd-bfc76a3f71e2-cefddacf-54d5-49a5-9689-245f94738bdd.png. File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 223, in get_list File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 229, in get_vms File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/libvirtconnection.py", line 68, in wrapper File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 223, in get_list File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 229, in get_vms File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/libvirtconnection.py", line 68, in wrapper File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 223, in get_list File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 229, in get_vms File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/libvirtconnection.py", line 68, in wrapper File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 223, in get_list File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 229, in get_vms File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/libvirtconnection.py", line 68, in wrapper File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 317, in update File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 900, in _static_vm_update File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/libvirtconnection.py", line 68, in wrapper File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 317, in update File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 900, in _static_vm_update File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/libvirtconnection.py", line 68, in wrapper File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 317, in update File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 900, in _static_vm_update File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/libvirtconnection.py", line 68, in wrapper File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 223, in get_list File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/vms.py", line 229, in get_vms File "/usr/lib/python2.7/dist-packages/wok/plugins/kimchi/model/libvirtconnection.py", line 68, in wrapper I found no file /etc/kimchi/distros.d/ubuntu.json but I did find a /etc/kimchi/distros.d/ubuntu_backup.json and I copied the file and renamed it ubuntu.json and rebooted to no avail.

I've seen issues for this tab not being visible but none seem to have the same root cause as what I'm seeing here and I'm not sure where to go from here in trying to find the fix. I don't have that template file present that was mentioned above and a lot of other threads mention files I don't have.

I had not logged into this host's Web UI in many months and found the issue today when I went to go create a new VM.

zluggerz commented 4 years ago

The problem was that kimchi got remove by apt. I reinstalled it with the following command:

sudo dpkg --ignore-depends=python-imaging -i kimchi-2.5.0-0.noarch.deb

That python-imaging dependency has to be ignored otherwise apt will uninstall kimchi in Ubuntu 18.04.

I hope this helps someone.