<p dir="ltr"><br>
On Jan 15, 2015 7:12 PM, "Glenn Holmer" <<a href="mailto:shadowm@lyonlabs.org">shadowm@lyonlabs.org</a>> wrote:<br>
><br>
> On 01/15/2015 07:26 PM, Pete Travis wrote:<br>
> ><br>
> > On Jan 15, 2015 11:49 AM, "Glenn Holmer" <<a href="mailto:shadowm@lyonlabs.org">shadowm@lyonlabs.org</a><br>
> > <mailto:<a href="mailto:shadowm@lyonlabs.org">shadowm@lyonlabs.org</a>>> wrote:<br>
> >><br>
> >> On 12/31/2014 03:40 PM, Flavio Leitner wrote:<br>
> >> > On Wednesday, December 31, 2014 03:21:46 PM Glenn Holmer wrote:<br>
> >> >> On 12/31/2014 02:33 PM, Flavio Leitner wrote:<br>
> >> >>> On Wednesday, December 31, 2014 02:11:38 PM Glenn Holmer wrote:<br>
> >> >>>> I'm trying to connect to another machine using virt-manager (File/Add<br>
> >> >>>> Connection). I select QEMU/KVM as hypervisor, "connect to remote<br>
> > host",<br>
> >> >>>> method SSH, and a username and hostname on the remote machine. The<br>
> >> >>>> result is always that I get prompted for my passphrase, but then see<br>
> >> >>>> "authentication failed: no agent is available to authenticate". I get<br>
> >> >>>> this going from either machine to the other.<br>
> >> >>>><br>
> >> >>>> Virtualization is set up OK because I can run virtual machines on<br>
> > both<br>
> >> >>>> VM hosts. SSH is set up OK, I can ssh with public key in both<br>
> > directions<br>
> >> >>>> both as myself and as root. I tried "setenforce 0" on both<br>
> > machines to<br>
> >> >>>> see if SELinux was blocking it, but the result was the same.<br>
> >> >>>><br>
> >> >>>> What am I missing?<br>
> >> >>><br>
> >> >>> Do you see the process ssh-agent running?<br>
> >> >><br>
> >> >> I see this on both machines:<br>
> >> >><br>
> >> >> /usr/bin/ssh-agent /bin/sh -c exec -l /bin/bash -c "/usr/bin/startkde"<br>
> >> >><br>
> >> ><br>
> >> > Right, do you see your identity there?<br>
> >> > $ ssh-add -l<br>
> >> ><br>
> >> > If so, is there any chance of you are running the virt-manager out<br>
> > of the<br>
> >> > established session? I'd start the virt-manager on the same shell<br>
> > running<br>
> >> > the ssh-add above to confirm.<br>
> >><br>
> >> I finally got some more time to work on this. At first, it seemed like a<br>
> >> KDE thing, as "ssh-add -l" didn't show anything when I first logged in.<br>
> >> So I added ssh-add to the list of startup programs, and now the KDE<br>
> >> version of ssh-askpass prompts me for a password when I log in, and I<br>
> >> can ssh to the remote machine without entering a passphrase for the key.<br>
> >> But I still get the same error when I try to create a new KVM<br>
> >> connection! Anybody have any other ideas?<br>
><br>
> > If you are using a regular user, do something like this on the host:<br>
> ><br>
> > <a href="https://fedorapeople.org/groups/docs/cookbook/#access-to-libvirt-without-root-privileges">https://fedorapeople.org/groups/docs/cookbook/#access-to-libvirt-without-root-privileges</a><br>
><br>
> Thanks, that solved it.<br>
><br>
> --<br>
> Glenn Holmer (Linux registered user #16682)<br>
> "After the vintage season came the aftermath -- and Cenbe."<br>
> --<br>
></p>
<p dir="ltr">Great, glad I could help.</p>
<p dir="ltr">BTW, the Cookbook is WIP and not formally published because there isn't a lot of content yet. Contributions welcome :)</p>
<p dir="ltr">--Pete</p>