doomedraven / Tools

Combination of different utilities, have fun!
MIT License
198 stars 96 forks source link

[kvm-qemu.sh] Unable to start virt-manager #41

Closed quentains closed 4 years ago

quentains commented 4 years ago

Expected Behavior

Be able to run the virt-manager after the execution of the kvm-qemu.sh script.

Current Behavior

When I run the virt-manager, an error occurs.

Steps to Reproduce

  1. Fresh install of Ubuntu 18.04 LTS
  2. apt update && apt upgrade
  3. Run "sudo ./kvm-qemu.sh all" script (from the CAPEv2 repo)
  4. Reboot (asked by the script)
  5. Run the virt-manager

Context

Ubuntu 18.04 is contained in a VMware VM.

Failure Logs

Error starting Virtual Machine Manager: g-invoke-error-quark: Could not locate gvir_init: libvirt-glib-1.0.so.0: cannot open shared object file: No such file or directory (1)

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/virtmanager.py", line 336, in runcli
    main()
  File "/usr/share/virt-manager/virtManager/virtmanager.py", line 317, in main
    LibvirtGLib.init(None)
GLib.GError: g-invoke-error-quark: Could not locate gvir_init: libvirt-glib-1.0.so.0: cannot open shared object file: No such file or directory (1)
doomedraven commented 4 years ago

hello, what about instalation log? as it says | tee -a x.log? another one you can try ldd command described here for another library https://github.com/doomedraven/Tools/issues/33

on my ubuntu 20.04 is in locate libvirt-glib-1.0.so.0

/usr/local/lib/libvirt-glib-1.0.so.0
/usr/local/lib/libvirt-glib-1.0.so.0.1000.0
quentains commented 4 years ago

Thank you for the quick answer !

Here is the log file from the installation script. x.log

doomedraven commented 4 years ago

so you not even read the log, you have a lot of fails and dependency problem, your answer is in the log, so try to figurate why you have dependency conflicts

quentains commented 4 years ago

I saw that there were some dependencies problems. But I just don't understand why there are. This is a fresh installation, I thought the script would work, this is why I made an issue... Anyway, I apologize for that. I'll try to fix the problem

doomedraven commented 4 years ago

I tested it last last week on fully updated ubuntu 20, you are welcome to investigate and share your findings, as till next big upgrade i dont have time to test it

El lun., 29 jun. 2020 17:32, Schietecatte Quentain notifications@github.com escribió:

I saw that there were some dependencies problems. But I just don't understand why there are. This is a fresh installation, I thought the script would work, this is why I made an issue... Anyway, I apologize for that. I'll try to fix the problem

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/doomedraven/Tools/issues/41#issuecomment-651196240, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOFH35ZYFF5FPBJ3QKTK2LRZCXY7ANCNFSM4OLHSNTA .

doomedraven commented 4 years ago

fixed, that is 3rd part library as always, they are such pain in the ass... anyway, couldn't work anymore on 18.04, so use 20.04, thanks for headups

quentains commented 4 years ago

Problem solved with your fix, tested on 20.04. Damn, I finally got the virt-manager up and running ! Thanks

quentains commented 4 years ago

Just, maybe you forgot to put a "-y" on the 'apt install' line 265 ?

doomedraven commented 4 years ago

265? that is the key there no instlal

quentains commented 4 years ago

No ;) The line 265 is this one : sudo apt install erlang

There is no '-y' parameter so we must hit enter during the execution :/

doomedraven commented 4 years ago

ah i was looking on cape2.sh not kvm, thanks