WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: virt-manager error  (Read 14169 times)

Offline uggla

  • Sr. Member
  • ****
  • Posts: 438
virt-manager error
« on: September 20, 2013, 09:48:11 AM »
Virt-manager says:

internal error Unable to locate libvirtd daemon in $PATH

I have virt-manager, qemu and libvirt0 in mydesktop-megapackage.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: virt-manager error
« Reply #1 on: September 22, 2013, 05:31:45 AM »
Ok, I will look into it.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: virt-manager error
« Reply #2 on: September 24, 2013, 06:22:26 PM »
It loads here as a standalone import, I will try again as part of a file list import.

https://docs.google.com/file/d/0B_xwlkY06TgZVUg2RFBLUFc3VkU/edit?usp=sharing

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: virt-manager error
« Reply #3 on: September 24, 2013, 07:39:49 PM »
Ok, I see, libvirt-bin needed to be added as a dep.  Added, re-import and test.

Offline uggla

  • Sr. Member
  • ****
  • Posts: 438
Re: virt-manager error
« Reply #4 on: October 02, 2013, 11:50:04 AM »
libvirtd won't start: "Initialization failed"


Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: virt-manager error
« Reply #5 on: October 02, 2013, 04:46:56 PM »
It seems a python issue, I will look more deeply soon.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: virt-manager error
« Reply #6 on: October 10, 2013, 01:36:08 PM »
I adjusted the dependency list and startup scripts of some of the python related dependent packages, virt-manager now starts on my machine.  Please re-import and test.

Offline uggla

  • Sr. Member
  • ****
  • Posts: 438
Re: virt-manager error
« Reply #7 on: October 12, 2013, 02:28:11 AM »
Now I get:

~ $ virt-manager
Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager.py", line 383, in <module>
    main()
  File "/usr/share/virt-manager/virt-manager.py", line 286, in main
    raise gtk_error
ImportError: No module named cairo

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: virt-manager error
« Reply #8 on: October 12, 2013, 04:37:42 PM »
I see here too after a re-import.  I will find what was left out of the fix.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: virt-manager error
« Reply #9 on: October 12, 2013, 06:01:44 PM »
Now I see exaile does not work too, also a pygtk package.  Something in the fix has broken things.  Will try to fix it tonight.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: virt-manager error
« Reply #10 on: October 15, 2013, 07:38:59 PM »
Should be fixed now.

It was a simple issue of a broken symlink in the python-support package.  I at first made a kludge in the python-cairo startup script to enable cairo to be imported, but then virtinst could not be imported.  I saw there were broken symlinks in the python-support package. /usr/lib/python2.7/dist-packages/python-support.pth and /usr/lib/python2.6/dist-packages/python-support.pth.  Those are the files that set the python path so it finds modules, very important and surely affects other python related packages as well.

Some files in Debian packages are relative symlinks, and that works as is when installing those files to the filesystem, but do not work when symlinking them.  The fix is to simply copy those symlinks to the live filesystem, so the relative path thing works.  "rm /usr/lib/python2.7/dist-packages/python-support.pth && cp -a /tmp/tcloop/PKGNAME/usr/lib/python2.7/dist-packages/python-support.pth /usr/lib/python2.7/dist-packages/" takes care of it in the startup script.

Broken symlinks in any package is always a red flag.  Using the below command identifies which files in the live filesystem are broken symlinks, install the findutils package for this:

find /usr -type l -xtype l

I detail this so that advanced users can help in testing and finding issues as they arise.
« Last Edit: October 15, 2013, 08:04:28 PM by Jason W »

Offline uggla

  • Sr. Member
  • ****
  • Posts: 438
Re: virt-manager error
« Reply #11 on: October 16, 2013, 05:33:55 PM »
I get
find: unrecognized: -xtype
 ???

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: virt-manager error
« Reply #12 on: October 16, 2013, 06:26:19 PM »
I copied and pasted that above command into my terminal, and it works.  What is the result of the command "which find"?

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: virt-manager error
« Reply #13 on: October 16, 2013, 06:26:33 PM »
Works for me,  l is lower case L
And find is GNU 4.4.2 from findutils.tcz


Sent from my iPad using Tapatalk HD
« Last Edit: October 16, 2013, 06:28:52 PM by coreplayer2 »

Offline uggla

  • Sr. Member
  • ****
  • Posts: 438
Re: virt-manager error
« Reply #14 on: October 17, 2013, 11:18:21 AM »
I copied and pasted that above command into my terminal, and it works.  What is the result of the command "which find"?
$ which find
/bb/find

Findutils is loaded from mega-sce.