mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-26 08:05:54 +03:00
[GH-ISSUE #181] Fedora: "no package python-virtinst" available #141
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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
@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.
@retspen commented on GitHub (Dec 23, 2013):
You read this?
https://github.com/retspen/webvirtmgr/wiki/Setup-SSH-Authorization
@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.
@retspen commented on GitHub (Dec 24, 2013):
Show your permissions
$ sudo ls -la /var/www/
$ sudo ls -la /var/www/.ssh/
@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
@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 ?
@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:
@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
@retspen commented on GitHub (Dec 24, 2013):
Add in instruction how find Apahce homedir
@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.
@retspen commented on GitHub (Dec 24, 2013):
$ sudo ls -la /usr/share/httpd
$ sudo ls -la /usr/share/httpd/.ssh
@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?
@retspen commented on GitHub (Dec 24, 2013):
Not need move. When you add SSH connection what user input on field login?
@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.
@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
@romu70 commented on GitHub (Dec 24, 2013):
Same, "Oups 500". Is there any log I could check?
@retspen commented on GitHub (Dec 24, 2013):
In file settings change line:
DEBUG=False to DEBUG=True
and restart apache
@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']
@retspen commented on GitHub (Dec 24, 2013):
Fixed this bug
$ cd /var/www/webvirtmgr
$ sudo git pull
and restart apache
@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.
@retspen commented on GitHub (Dec 24, 2013):
This is only text.
Thanks. Merry Christmas.