[GH-ISSUE #181] Fedora: "no package python-virtinst" available #141

Closed
opened 2026-02-27 16:38:06 +03:00 by kerem · 22 comments
Owner

Originally created by @romu70 on GitHub (Dec 23, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/181

Hi,
The "python-virtinst" package has been recently removed from the Fedora repositories. It seems it is now deprecated.

So what's your recommended workaround?

Thanks.

Originally created by @romu70 on GitHub (Dec 23, 2013). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/181 Hi, The "python-virtinst" package has been recently removed from the Fedora repositories. It seems it is now deprecated. So what's your recommended workaround? Thanks.
kerem closed this issue 2026-02-27 16:38:07 +03:00
Author
Owner

@k3oni commented on GitHub (Dec 23, 2013):

Seems that python-virtinst was merged into virt-manager in Fedora 19+ . Can you try installing virt-manager instead of python-virtinst ?

Source: https://fedorahosted.org/rel-eng/ticket/5617

<!-- gh-comment-id:31129246 --> @k3oni commented on GitHub (Dec 23, 2013): Seems that python-virtinst was merged into virt-manager in Fedora 19+ . Can you try installing virt-manager instead of python-virtinst ? Source: https://fedorahosted.org/rel-eng/ticket/5617
Author
Owner

@romu70 commented on GitHub (Dec 23, 2013):

Thanks for this quick reply.

I installed virt-manager before installing webvirtmgr, so it doesn't work. The error was something like "no libvirt module", or similar. This is how I've seen this missing package. I've installed the package from a Fedora 18 archive.

Now, I can connect the web interface but when I want to add my host (web interface and virtual engine on the same computer): as soon as I click on "SSH", there is the message: "Need create ssh authorization key". But these keys are already created.

If I enter requested input (label, computer name, and user), I get a "Oups 500 error". Don't really understand what's going on now.

EDIT: it works if I use TCP tab instead of SSH.

<!-- gh-comment-id:31129833 --> @romu70 commented on GitHub (Dec 23, 2013): Thanks for this quick reply. I installed virt-manager before installing webvirtmgr, so it doesn't work. The error was something like "no libvirt module", or similar. This is how I've seen this missing package. I've installed the package from a Fedora 18 archive. Now, I can connect the web interface but when I want to add my host (web interface and virtual engine on the same computer): as soon as I click on "SSH", there is the message: "Need create ssh authorization key". But these keys are already created. If I enter requested input (label, computer name, and user), I get a "Oups 500 error". Don't really understand what's going on now. EDIT: it works if I use TCP tab instead of SSH.
Author
Owner

@retspen commented on GitHub (Dec 23, 2013):

You read this?

https://github.com/retspen/webvirtmgr/wiki/Setup-SSH-Authorization

<!-- gh-comment-id:31131387 --> @retspen commented on GitHub (Dec 23, 2013): You read this? https://github.com/retspen/webvirtmgr/wiki/Setup-SSH-Authorization
Author
Owner

@romu70 commented on GitHub (Dec 24, 2013):

Yes retspen, and applied twice. And I've no trouble to connect the computer in SSH from my own workstation.

The /var/www/.ssh.id_rsa.pub key is the one which is stored in the /home/webvirtmgr/.ssh/authorized_keys file.
The /var/www/.ssh/config file contains what's requested by the wiki.
The /etc/polkit-1/localauthority/50-local.d/50-libvirt-remote-access.pkla is also the good one.

<!-- gh-comment-id:31164306 --> @romu70 commented on GitHub (Dec 24, 2013): Yes retspen, and applied twice. And I've no trouble to connect the computer in SSH from my own workstation. The /var/www/.ssh.id_rsa.pub key is the one which is stored in the /home/webvirtmgr/.ssh/authorized_keys file. The /var/www/.ssh/config file contains what's requested by the wiki. The /etc/polkit-1/localauthority/50-local.d/50-libvirt-remote-access.pkla is also the good one.
Author
Owner

@retspen commented on GitHub (Dec 24, 2013):

Show your permissions

$ sudo ls -la /var/www/
$ sudo ls -la /var/www/.ssh/

<!-- gh-comment-id:31164501 --> @retspen commented on GitHub (Dec 24, 2013): Show your permissions $ sudo ls -la /var/www/ $ sudo ls -la /var/www/.ssh/
Author
Owner

@romu70 commented on GitHub (Dec 24, 2013):

Here it is.

[admin@salomon ~]$ ls -al /var/www/
total 24
drwxr-xr-x 6 root root 4096 23 déc. 16:39 .
drwxr-xr-x. 22 root root 4096 23 déc. 15:58 ..
drwxr-xr-x 2 root root 4096 31 juil. 08:50 cgi-bin
drwxr-xr-x 2 root root 4096 31 juil. 08:50 html
drwx------ 2 apache apache 4096 23 déc. 16:40 .ssh
drwxr-xr-x 19 apache apache 4096 24 déc. 09:56 webvirtmgr

[admin@salomon ~]$ sudo ls -la /var/www/.ssh/
[sudo] password for admin:
total 20
drwx------ 2 apache apache 4096 23 déc. 16:40 .
drwxr-xr-x 6 root root 4096 23 déc. 16:39 ..
-rw------- 1 apache apache 54 23 déc. 17:44 config
-rw------- 1 apache apache 1679 23 déc. 17:45 id_rsa
-rw-r--r-- 1 apache apache 401 23 déc. 17:45 id_rsa.pub

<!-- gh-comment-id:31164747 --> @romu70 commented on GitHub (Dec 24, 2013): Here it is. [admin@salomon ~]$ ls -al /var/www/ total 24 drwxr-xr-x 6 root root 4096 23 déc. 16:39 . drwxr-xr-x. 22 root root 4096 23 déc. 15:58 .. drwxr-xr-x 2 root root 4096 31 juil. 08:50 cgi-bin drwxr-xr-x 2 root root 4096 31 juil. 08:50 html drwx------ 2 apache apache 4096 23 déc. 16:40 .ssh drwxr-xr-x 19 apache apache 4096 24 déc. 09:56 webvirtmgr [admin@salomon ~]$ sudo ls -la /var/www/.ssh/ [sudo] password for admin: total 20 drwx------ 2 apache apache 4096 23 déc. 16:40 . drwxr-xr-x 6 root root 4096 23 déc. 16:39 .. -rw------- 1 apache apache 54 23 déc. 17:44 config -rw------- 1 apache apache 1679 23 déc. 17:45 id_rsa -rw-r--r-- 1 apache apache 401 23 déc. 17:45 id_rsa.pub
Author
Owner

@retspen commented on GitHub (Dec 24, 2013):

Ok, change in file /etc/passwd apache shell:
/sbin/nologin to /bin/bash

$ sudo su - apache
$ ssh webvirtmgr@your_ip

connected without password ?

<!-- gh-comment-id:31164879 --> @retspen commented on GitHub (Dec 24, 2013): Ok, change in file /etc/passwd apache shell: /sbin/nologin to /bin/bash $ sudo su - apache $ ssh webvirtmgr@your_ip connected without password ?
Author
Owner

@romu70 commented on GitHub (Dec 24, 2013):

-bash-4.2$ ssh webvirtmgr@my_ip
Could not create directory '/usr/share/httpd/.ssh'.
The authenticity of host 'my_ip (my_ip)' can't be established.
ECDSA key fingerprint is .
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/usr/share/httpd/.ssh/known_hosts).
webvirtmgr@my_ip's password:

<!-- gh-comment-id:31165183 --> @romu70 commented on GitHub (Dec 24, 2013): -bash-4.2$ ssh webvirtmgr@my_ip Could not create directory '/usr/share/httpd/.ssh'. The authenticity of host 'my_ip (my_ip)' can't be established. ECDSA key fingerprint is <key fingerprint>. Are you sure you want to continue connecting (yes/no)? yes Failed to add the host to the list of known hosts (/usr/share/httpd/.ssh/known_hosts). webvirtmgr@my_ip's password:
Author
Owner

@retspen commented on GitHub (Dec 24, 2013):

Home directory for apache /usr/share/httpd/ move all files from /var/www/.ssh to /usr/share/httpd/ and try again:

$ sudo su - apache
$ ssh webvirtmgr@your_ip

<!-- gh-comment-id:31165531 --> @retspen commented on GitHub (Dec 24, 2013): Home directory for apache /usr/share/httpd/ move all files from /var/www/.ssh to /usr/share/httpd/ and try again: $ sudo su - apache $ ssh webvirtmgr@your_ip
Author
Owner

@retspen commented on GitHub (Dec 24, 2013):

Add in instruction how find Apahce homedir

<!-- gh-comment-id:31165624 --> @retspen commented on GitHub (Dec 24, 2013): Add in instruction how find Apahce homedir
Author
Owner

@romu70 commented on GitHub (Dec 24, 2013):

In /var/www/.ssh, there are 3 files: config, id_rsa and id_rsa.pub

I tried to copy this /var/www/.ssh folder to /usr/share/httpd, and to copy these 3 files directly in /usr/share/httpd.

No change, in both cases.

<!-- gh-comment-id:31166424 --> @romu70 commented on GitHub (Dec 24, 2013): In /var/www/.ssh, there are 3 files: config, id_rsa and id_rsa.pub I tried to copy this /var/www/.ssh folder to /usr/share/httpd, and to copy these 3 files directly in /usr/share/httpd. No change, in both cases.
Author
Owner

@retspen commented on GitHub (Dec 24, 2013):

$ sudo ls -la /usr/share/httpd
$ sudo ls -la /usr/share/httpd/.ssh

<!-- gh-comment-id:31166462 --> @retspen commented on GitHub (Dec 24, 2013): $ sudo ls -la /usr/share/httpd $ sudo ls -la /usr/share/httpd/.ssh
Author
Owner

@romu70 commented on GitHub (Dec 24, 2013):

Ok got it, I applied the security and access rules from the wiki to the /usr/share/httpd. And I can login as apache!

I restarted the webserver with "sudo systemctl restart httpd.service", but the issue remains, no way to add a server with SSH. TCP works. Should I also move webvirtmgr files from /var/www to /usr/share/httpd?

<!-- gh-comment-id:31166942 --> @romu70 commented on GitHub (Dec 24, 2013): Ok got it, I applied the security and access rules from the wiki to the /usr/share/httpd. And I can login as apache! I restarted the webserver with "sudo systemctl restart httpd.service", but the issue remains, no way to add a server with SSH. TCP works. Should I also move webvirtmgr files from /var/www to /usr/share/httpd?
Author
Owner

@retspen commented on GitHub (Dec 24, 2013):

Not need move. When you add SSH connection what user input on field login?

<!-- gh-comment-id:31167104 --> @retspen commented on GitHub (Dec 24, 2013): Not need move. When you add SSH connection what user input on field login?
Author
Owner

@romu70 commented on GitHub (Dec 24, 2013):

that's a pretty good question, I use the main user login on the server, here called "admin". I've tried with admin@fqdn, but no way. This is the login registered in saslpasswd2.

<!-- gh-comment-id:31167206 --> @romu70 commented on GitHub (Dec 24, 2013): that's a pretty good question, I use the main user login on the server, here called "admin". I've tried with admin@fqdn, but no way. This is the login registered in saslpasswd2.
Author
Owner

@retspen commented on GitHub (Dec 24, 2013):

When you are use SSH connection - saslpasswd2 not need. You are create public key for user webvirtmgr so input login - webvirtmgr

<!-- gh-comment-id:31167418 --> @retspen commented on GitHub (Dec 24, 2013): When you are use SSH connection - saslpasswd2 not need. You are create public key for user webvirtmgr so input login - webvirtmgr
Author
Owner

@romu70 commented on GitHub (Dec 24, 2013):

Same, "Oups 500". Is there any log I could check?

<!-- gh-comment-id:31167730 --> @romu70 commented on GitHub (Dec 24, 2013): Same, "Oups 500". Is there any log I could check?
Author
Owner

@retspen commented on GitHub (Dec 24, 2013):

In file settings change line:
DEBUG=False to DEBUG=True
and restart apache

<!-- gh-comment-id:31167763 --> @retspen commented on GitHub (Dec 24, 2013): In file settings change line: DEBUG=False to DEBUG=True and restart apache
Author
Owner

@romu70 commented on GitHub (Dec 24, 2013):

Here is the stack trace:
NameError at /servers/

global name 'Host' is not defined

Request Method: POST
Request URL: http://salomon/servers/
Django Version: 1.5.5
Exception Type: NameError
Exception Value:

global name 'Host' is not defined

Exception Location: /var/www/webvirtmgr/servers/forms.py in clean_name, line 64
Python Executable: /usr/bin/python
Python Version: 2.7.5
Python Path:

['/var/www/webvirtmgr',
'/usr/lib64/python27.zip',
'/usr/lib64/python2.7',
'/usr/lib64/python2.7/plat-linux2',
'/usr/lib64/python2.7/lib-tk',
'/usr/lib64/python2.7/lib-old',
'/usr/lib64/python2.7/lib-dynload',
'/usr/lib64/python2.7/site-packages',
'/usr/lib64/python2.7/site-packages/gtk-2.0',
'/usr/lib/python2.7/site-packages',
'/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']

<!-- gh-comment-id:31168042 --> @romu70 commented on GitHub (Dec 24, 2013): Here is the stack trace: NameError at /servers/ global name 'Host' is not defined Request Method: POST Request URL: http://salomon/servers/ Django Version: 1.5.5 Exception Type: NameError Exception Value: global name 'Host' is not defined Exception Location: /var/www/webvirtmgr/servers/forms.py in clean_name, line 64 Python Executable: /usr/bin/python Python Version: 2.7.5 Python Path: ['/var/www/webvirtmgr', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib64/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']
Author
Owner

@retspen commented on GitHub (Dec 24, 2013):

Fixed this bug

$ cd /var/www/webvirtmgr
$ sudo git pull

and restart apache

<!-- gh-comment-id:31168168 --> @retspen commented on GitHub (Dec 24, 2013): Fixed this bug $ cd /var/www/webvirtmgr $ sudo git pull and restart apache
Author
Owner

@romu70 commented on GitHub (Dec 24, 2013):

Perfect! It works !! There is still the message "You need to create SSH keys..." on the GUI, but I guess this is normal.

Thanks a lot Anatoly for your help and your time. And Merry Christmas.

<!-- gh-comment-id:31168384 --> @romu70 commented on GitHub (Dec 24, 2013): Perfect! It works !! There is still the message "You need to create SSH keys..." on the GUI, but I guess this is normal. Thanks a lot Anatoly for your help and your time. And Merry Christmas.
Author
Owner

@retspen commented on GitHub (Dec 24, 2013):

This is only text.

Thanks. Merry Christmas.

<!-- gh-comment-id:31168438 --> @retspen commented on GitHub (Dec 24, 2013): This is only text. Thanks. Merry Christmas.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#141
No description provided.