[GH-ISSUE #313] Question: Multiple Host on One Webvirtmgr #244

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

Originally created by @silentgecko on GitHub (May 21, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/313

Hello,

i have 2 Host Systems.
On each Host System i installed webvirtmgr as recommended.

I can access each Host Systems webvirtmgr and manage vms. But i cant add the second Host system to the webvirtmgr of the first Hostsystem.

I tried to connect from console from Host 1 to Host 2, and that worked:
root@host1:~# virsh qemu+ssh://webvirtmgr@host2/system
-> success

How to add a second, not locally installed Host System?
I am using SSH Auth for Both.

Greetings

Originally created by @silentgecko on GitHub (May 21, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/313 Hello, i have 2 Host Systems. On each Host System i installed webvirtmgr as recommended. I can access each Host Systems webvirtmgr and manage vms. But i cant add the second Host system to the webvirtmgr of the first Hostsystem. I tried to connect from console from Host 1 to Host 2, and that worked: root@host1:~# virsh qemu+ssh://webvirtmgr@host2/system -> success How to add a second, not locally installed Host System? I am using SSH Auth for Both. Greetings
kerem closed this issue 2026-02-27 16:38:35 +03:00
Author
Owner

@retspen commented on GitHub (May 21, 2014):

Hello,

Can you test next command?

$  sudo -u nginx qemu+ssh://webvirtmgr@host2/system
<!-- gh-comment-id:43746709 --> @retspen commented on GitHub (May 21, 2014): Hello, Can you test next command? ``` $ sudo -u nginx qemu+ssh://webvirtmgr@host2/system ```
Author
Owner

@silentgecko commented on GitHub (May 21, 2014):

Hey @retspen,

did you mean:
$ sudo -u nginx virsh -c qemu+ssh://webvirtmgr@92.51.156.34/system ?

Then your code will give me this error:

root@host1:~# sudo -u nginx qemu+ssh://webvirtmgr@host2/system

sudo: unknown user: nginx
sudo: unable to initialize policy plugin

Otherwise, i don't have a nginx system user ;) And when i try it with user nginx, the same error appears
My Webuser is www-data:

root@host1:~# sudo -u www-data virsh -c qemu+ssh://webvirtmgr@host2/system

webvirtmgr@host2's password:

<!-- gh-comment-id:43769384 --> @silentgecko commented on GitHub (May 21, 2014): Hey @retspen, did you mean: <code>$ sudo -u nginx virsh -c qemu+ssh://webvirtmgr@92.51.156.34/system</code> ? Then your code will give me this error: <code> root@host1:~# sudo -u nginx qemu+ssh://webvirtmgr@host2/system sudo: unknown user: nginx sudo: unable to initialize policy plugin </code> Otherwise, i don't have a nginx system user ;) And when i try it with user nginx, the same error appears My Webuser is www-data: <code> root@host1:~# sudo -u www-data virsh -c qemu+ssh://webvirtmgr@host2/system webvirtmgr@host2's password: </code>
Author
Owner

@retspen commented on GitHub (May 21, 2014):

Oh, Sorry! I mean that:
$ sudo -u www-data virsh -c qemu+ssh://wwbvirtmgr@host2/system nodeinfo

You need check authorized_keys on webvirtmgr user in host2

<!-- gh-comment-id:43777091 --> @retspen commented on GitHub (May 21, 2014): Oh, Sorry! I mean that: $ sudo -u www-data virsh -c qemu+ssh://wwbvirtmgr@host2/system nodeinfo You need check authorized_keys on webvirtmgr user in host2
Author
Owner

@silentgecko commented on GitHub (May 22, 2014):

Hey @retspen

thanks for your advice, the authorized_keys on host2 was the Problem. Adding the id_rsa.pub from host1 to authorized_keys from www-data on host2 solved it ;)

Thank you! And thanks for your great tool ;)

<!-- gh-comment-id:43881206 --> @silentgecko commented on GitHub (May 22, 2014): Hey @retspen thanks for your advice, the authorized_keys on host2 was the Problem. Adding the id_rsa.pub from host1 to authorized_keys from www-data on host2 solved it ;) Thank you! And thanks for your great tool ;)
Author
Owner

@retspen commented on GitHub (May 22, 2014):

Thanks!

<!-- gh-comment-id:43882897 --> @retspen commented on GitHub (May 22, 2014): Thanks!
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#244
No description provided.