question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot install libvirt and virt-manager is not running

See original GitHub issue

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I checked to make sure that this issue has not already been filed
  • I’m reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

After running sudo ./kvm-qemu.sh all <username> I will be able to run virt-manager and interact with that.

Current Behavior

I updated and upgraded newly installed Ubuntu 20.04. I want to use kvm for cape sandbox so I needed to use kvm-qemu.sh. After running it and rebooting and running virt-manager I get:

Traceback (most recent call last):
  File "/usr/bin/virt-manager", line 6, in <module>
    from virtManager import virtmanager
  File "/usr/share/virt-manager/virtManager/virtmanager.py", line 16, in <module>
    gi.require_version('LibvirtGLib', '1.0')
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace LibvirtGLib not available

During installation of only libvirt (sudo ./kvm-qemu.sh libvirt <username>) at the end I get this - https://pastebin.pl/view/246c228a. Exactly the same if I try to install sudo pip3 install libvirt-python.

I tried to investigate what could be the cause.

  • I found I should try to install libvirt-dev, but there is unmet dependencies (libvirt0)
  • libvirt0 has no installation candidate
  • I found couple more dependencies but package manager has still problem with libvirt0 or they are just not present…

I run this script few weeks ago and I was successful. I will try to search for the solution. Do you have some tip? Thank You.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. ./kvm-qemu.sh all <username> on fully updated Ubuntu 20.04
  2. reboot as suggested at the end of script log
  3. try to run virt-manager

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Question Answer
OS version Ubuntu 20.04
Software version QEMU 5.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:26 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
doomedravencommented, Oct 14, 2020

ok thanks, i will add check for that

0reactions
doomedravencommented, Jul 30, 2021

you are welcome, let me know if you will get any other issue, and btw there is --issues for known possible problems, just in case if that save you some time

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common problems when trying to install Windows on KVM ...
The problem here is that for whatever reason, virt-manager by default creates disk images using the raw format, and the Windows XP installer...
Read more >
A.19. Common libvirt Errors and Troubleshooting
Migration Fails with Unable to allow access for disk path: No such file or directory; A.19.9. No Guest Virtual Machines are Present when...
Read more >
virt-manager can't connect to libvirt - Ask Ubuntu
After installing KVM, run this command then that error will not occur again. sudo virt-manager. Share.
Read more >
Windows 11 in Virt-Manager - Guides and Tutorials
Unable to complete install: 'internal error: Could not run '/usr/bin/swtpm_setup'. exitstatus: 1; Check error log '/var/log/swtpm/libvirt/qemu/Windows-swtpm.log ...
Read more >
How to install and use Virt-Manager on Windows 10
Follow the steps to install Virt-Manager GUI on Windows 10 WSL to manage remote KVM server running Linux Virtual Machines graphically.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found