Re: Virtual Machine Manager UI not launching on CentOS 7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 05, 2019 at 04:53:23PM +0530, Aravind Kamble wrote:
> Hi All,

Hi,

>  I am a new user of virt-manager. I installed Virtual Machine Manager
> (1.5.0-1.el7)on CentOS 7 machine. I was able to launch the UI and work with
> it properly.
>  I saw latest version of virt-manager 2.2.1 on the site
> https://virt-manager.org/ . I tried to install it by downloading from
> https://virt-manager.org/download/sources/virt-manager/virt-manager-2.2.1.tar.gz
>  I unzipped the file and executed the command "python3.6 setup.py install".
> It tried installing but exited out after printing the message "running
> install_egg_info". Please find the full output attached with this mail.

My first future advice would be never install software into your OS in
any way than distribution packager, in CentOS case yum/rpm.  It is not
trivial to remove all the files installed by make install or setup.py
install as the files are not tracked by anything.

>  After this when I tried to launch Virtual Machine Manager from
> Applications->System Tools-->Virtual Machine Manager, I don't see it
> launched.
>  If I try to launch it via command line I get the following
> 
> 
> [root@Mordor aravind]# virt-manager
> Traceback (most recent call last):
>   File "/usr/share/virt-manager/virt-manager", line 19, in <module>
>     from virtinst import BuildConfig
>   File "/usr/share/virt-manager/virtinst/__init__.py", line 42, in <module>
>     _set_libvirt_error_handler()
>   File "/usr/share/virt-manager/virtinst/__init__.py", line 32, in
> _set_libvirt_error_handler
>     import libvirt
> ModuleNotFoundError: No module named 'libvirt'
> 
> 
> I do have libvirt installed.

This means that there is missing python libvirt module.  There is only
libvirt-python package which provides only python 2.7 files and I
checked that there is no libvirt-python3.6 nor python3.6-libvirt in EPEL
so you would have to build it by yourself.

virt-manager-1.5.0 is python 2 only and since virt-manager-2.0 we
switched to python3 only.

> [root@Mordor aravind]# rpm -qa | grep libvirt
> libvirt-daemon-driver-storage-gluster-4.5.0-10.el7_6.12.x86_64
> libvirt-daemon-config-network-4.5.0-10.el7_6.12.x86_64
> libvirt-daemon-driver-nodedev-4.5.0-10.el7_6.12.x86_64
> libvirt-gobject-1.0.0-1.el7.x86_64
> libvirt-daemon-driver-qemu-4.5.0-10.el7_6.12.x86_64
> libvirt-client-4.5.0-10.el7_6.12.x86_64
> libvirt-glib-1.0.0-1.el7.x86_64
> libvirt-daemon-driver-storage-core-4.5.0-10.el7_6.12.x86_64
> libvirt-gconfig-1.0.0-1.el7.x86_64
> libvirt-daemon-driver-lxc-4.5.0-10.el7_6.12.x86_64
> libvirt-daemon-driver-storage-disk-4.5.0-10.el7_6.12.x86_64
> libvirt-daemon-driver-secret-4.5.0-10.el7_6.12.x86_64
> libvirt-daemon-driver-storage-mpath-4.5.0-10.el7_6.12.x86_64
> libvirt-daemon-kvm-4.5.0-10.el7_6.12.x86_64
> libvirt-daemon-driver-nwfilter-4.5.0-10.el7_6.12.x86_64
> libvirt-daemon-driver-storage-iscsi-4.5.0-10.el7_6.12.x86_64
> libvirt-bash-completion-4.5.0-10.el7_6.12.x86_64
> libvirt-daemon-4.5.0-10.el7_6.12.x86_64
> libvirt-daemon-config-nwfilter-4.5.0-10.el7_6.12.x86_64
> libvirt-daemon-driver-storage-scsi-4.5.0-10.el7_6.12.x86_64
> libvirt-daemon-driver-interface-4.5.0-10.el7_6.12.x86_64
> libvirt-python-4.5.0-1.el7.x86_64
> libvirt-4.5.0-10.el7_6.12.x86_64
> libvirt-daemon-driver-network-4.5.0-10.el7_6.12.x86_64
> libvirt-daemon-driver-storage-4.5.0-10.el7_6.12.x86_64
> libvirt-libs-4.5.0-10.el7_6.12.x86_64
> libvirt-daemon-driver-storage-logical-4.5.0-10.el7_6.12.x86_64
> libvirt-daemon-driver-storage-rbd-4.5.0-10.el7_6.12.x86_64
> 
> Please help me restoring the working version of Virtual Machine or making
> this new version work.

To make the new virt-manager work you would have to build libvirt-python
bindings for python3.6 by yourself and install it into your system which
I would not recommend.

To fix your old virt-manager you can try:

    yum reinstall virt-install virt-manager virt-manager-common

which should replace all required files to fix the distribution version.

Pavel

Attachment: signature.asc
Description: PGP signature

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list

[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux