[GH-ISSUE #484] The installation method & commands do not work for CentOS 7 #361

Open
opened 2026-02-27 16:39:00 +03:00 by kerem · 2 comments
Owner

Originally created by @mkstalal on GitHub (Dec 22, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/484

The steps to install webvirtmgr in CentOS 7 does not work, specially the commands & file locations for nginx installation do not work, nor the firewall configuration is clear enough for CentOS 7

Originally created by @mkstalal on GitHub (Dec 22, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/484 The steps to install webvirtmgr in CentOS 7 does not work, specially the commands & file locations for nginx installation do not work, nor the firewall configuration is clear enough for CentOS 7
Author
Owner

@aafanasyev commented on GitHub (Dec 22, 2014):

Please look carefully, where is nginix html or www folder. If not exist configure nginx directory properly. There you can put the webvirtmgr folder, I did also couple mistakes when I installed it on Ubuntu, but I am sure it should work.

<!-- gh-comment-id:67793671 --> @aafanasyev commented on GitHub (Dec 22, 2014): Please look carefully, where is nginix html or www folder. If not exist configure nginx directory properly. There you can put the webvirtmgr folder, I did also couple mistakes when I installed it on Ubuntu, but I am sure it should work.
Author
Owner

@u1735067 commented on GitHub (Dec 24, 2014):

Maybe not the right place to talk about this, but I don't have the time to do somethink like editing the wiki for now ; here's what I had to do to get WebVirtMgr working on a fresh CentOS 7 hypervisor flavour, using a dedicated user for webvirtmgr (and not nginx as suggested in the howto) :

[root@Equuleus ~]# cat /etc/polkit-1/rules.d/90-libvirtd.rules
polkit.addRule(function(action, subject) {
  if (action.id == "org.libvirt.unix.manage" && subject.user == "webvirtmgr") {
      return polkit.Result.YES;
  }
});

Because libvirtd control access to the local socket using polkit which require password by default, this rule allow this user to go through without password.

# setsebool httpd_can_network_connect 1

Because nginx as a proxy needs to connect to the local webvirtmgr server (or you'll get some 5xx error).

Of course you have to create an user webvirtmgr (useradd webvirtmgr -r -d /srv/http/webvirtmgr/ -l -M -U adapt it to your need) and change user=nginx to user=webvirtmgr in /etc/supervisord.conf
Cleaner installation this way I think.
Good luck.

<!-- gh-comment-id:68019677 --> @u1735067 commented on GitHub (Dec 24, 2014): Maybe not the right place to talk about this, but I don't have the time to do somethink like editing the wiki for now ; here's what I had to do to get WebVirtMgr working on a fresh CentOS 7 hypervisor flavour, using a dedicated user for webvirtmgr (and not nginx as suggested in the howto) : ``` [root@Equuleus ~]# cat /etc/polkit-1/rules.d/90-libvirtd.rules polkit.addRule(function(action, subject) { if (action.id == "org.libvirt.unix.manage" && subject.user == "webvirtmgr") { return polkit.Result.YES; } }); ``` Because libvirtd control access to the local socket using polkit which require password by default, this rule allow this user to go through without password. ``` # setsebool httpd_can_network_connect 1 ``` Because nginx as a proxy needs to connect to the local webvirtmgr server (or you'll get some 5xx error). Of course you have to create an user webvirtmgr (`useradd webvirtmgr -r -d /srv/http/webvirtmgr/ -l -M -U` adapt it to your need) and change `user=nginx` to `user=webvirtmgr` in `/etc/supervisord.conf` Cleaner installation this way I think. Good luck.
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#361
No description provided.