You are not logged in.

#1 2016-02-03 02:30:02

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

[Solved] Libvirt/Virt-manager Authentication Issue

Edit: I needed to install the package x11-ssh-askpass

I'm having a hell of a time trying to connect to libvirtd remotely. I have virt-manager installed on my desktop and libvirt installed on my NAS (originally a FreeNAS box so it's pretty beefy), I've followed the wiki instructions but it won't let me connect because I can't authenticate. Ideally I'd like to just use SSH but when I try to use it virt-manager says that I need openssh-askpass installed....but it already is, both on the client and the server. I also tried to make an insecure TCP connection but it keeps asking me for a username and password and my user accounts don't work, after some searching I saw that you needed to create a user via saslpasswd2 -a libvirt USERNAME and I did that and restarted both virt-manager and libvirtd and it still doesn't let me in so I have no idea what is wrong. Trying to use virsh gives the same errors so it's obviously a problem with libvirt. Before anyone asks I am using the --listen flag for libvirtd.

/etc/libvirt/libvirtd.conf

# Master libvirt daemon configuration file

# Network connectivity controls
listen_tls = 0                                                                                                                                                              
listen_tcp = 1                                                                                                                                                              
listen_addr = "192.168.1.6"

# Authentication.
auth_unix_ro = "none"
auth_unix_rw = "none"

# Authorization controls
tls_no_sanity_certificate = 1
tls_no_verify_certificate = 1

# Logging
log_level = 2

edit: I am sure that libvirtd works correctly because I found something that says to bypass the openssh-askpass bug, launch it from a terminal and then enter the password in there, which connected successfully.

Last edited by brando56894 (2016-02-04 01:42:49)

Offline

Board footer

Powered by FluxBB