WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: virt-manager fails to import libxml2  (Read 56 times)

Offline Leee

  • Full Member
  • ***
  • Posts: 131
virt-manager fails to import libxml2
« on: Today at 04:19:57 PM »
This is not an urgent thing, since I just downloaded virt-manager on a whim to try it out, but...

I downloaded and installed virt-manager.tcz on Core 15.0 / x86_64 and when I try to run it, I get the following error output:
Code: [Select]
tc@dolly:~$ virt-manager
Traceback (most recent call last):
  File "/usr/local/share/virt-manager/virt-manager", line 19, in <module>
    from virtinst import BuildConfig
  File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtinst/__init__.py", line 49, in <module>
    from virtinst.domain import *  # pylint: disable=wildcard-import
  File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtinst/domain/__init__.py", line 5, in <module>
    from .blkiotune import DomainBlkiotune
  File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtinst/domain/blkiotune.py", line 8, in <module>
    from ..xmlbuilder import XMLBuilder, XMLChildProperty, XMLProperty
  File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtinst/xmlbuilder.py", line 16, in <module>
    from .xmlapi import XMLAPI
  File "/tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtinst/xmlapi.py", line 7, in <module>
    import libxml2
ModuleNotFoundError: No module named 'libxml2'

Both libxml2.tcz and libxml2-python.tcz are loaded.

Looking at /tmp/tcloop/virt-manager/usr/local/share/virt-manager/virtinst/xmlapi.py line #7, it looks like libxml2-python should do the job, but apparently not (though I'm -still- not exactly a python guy).
« Last Edit: Today at 04:45:59 PM by Leee »
core 15.0 x86_64

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11759
Re: virt-manager fails to import libxml2
« Reply #1 on: Today at 04:52:14 PM »
Hi Leee
You didn't mention it, so I have to ask, did you:
Code: [Select]
$ sudo modprobe kvm-intel
$ sudo /usr/local/etc/init.d/dbus start
$ sudo libvirtd -d
$ sudo virtlogd -d
  ..then start virt-manager
as specified by the .info file:
http://tinycorelinux.net/15.x/x86_64/tcz/virt-manager.tcz.info

Offline Leee

  • Full Member
  • ***
  • Posts: 131
Re: virt-manager fails to import libxml2
« Reply #2 on: Today at 05:07:55 PM »
Ummm... no.    :-[

But when I do that, modprobe fails with:

Code: [Select]
tc@dolly:~$ sudo modprobe kvm-intel
modprobe: can't load module kvm-intel (kernel.tclocal/arch/x86/kvm/kvm-intel.ko.gz): Operation not supported
core 15.0 x86_64

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11759
Re: virt-manager fails to import libxml2
« Reply #3 on: Today at 05:25:49 PM »
Hi Leee
I think that means your CPU doe not support virtualization.
Or it might mean virtualization is disabled in your BIOS.

Offline Leee

  • Full Member
  • ***
  • Posts: 131
Re: virt-manager fails to import libxml2
« Reply #4 on: Today at 05:55:55 PM »
Thanks Rich

The CPU is an "Intel(R) Core(TM) i5-6200U" that supposedly has "Enhanced Virtualization" so I think it's ok.  I'll reboot later today and snoop around the BIOS settings for anything having to do with virtualization.  That wil, no doubt tell the story regarding kvm-intel.ko.gz but...

I'm wondering if any of that would have to do with loading the libxml2 stuff - seems unlikely to be related, though I suppose one never knows.
core 15.0 x86_64

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11759
Re: virt-manager fails to import libxml2
« Reply #5 on: Today at 09:17:08 PM »
Hi Leee
Just a little story in case your machine has a similar issue.

Last year someone gave me a Sony VAIO VGN-FZ240E laptop.
It has an "Intel Core 2 Duo T7250" CPU which is capable of
virtualization, yet I could not load kvm-intel.

After some online searching I found the manufacturer (VAIO) disabled
virtualization in the BIOS and provided no way to enable it.

Some more searching turned up a program that could read the CMOS
settings and save the contents in a text file.
I also found a list of what many of those locations do.
I changed the virtualization location to enable it.
I then used the program to write the text file back to CMOS memory.

I was then able to load kvm-intel.