Adding a Remote LibVirt Compute Resource?

Greetings,
I am new to foreman and am trying to add a remote LibVirt Compute
Resource. I am adding the compute resource through the web UI.

I am using the following URL for the compute resource:

> qemu+ssh://username@host.com/system
>

It fails with the following message:

> Error making a connection to libvirt URI
> qemu+ssh://username@host.com/system: Call to virConnectOpen failed: Cannot
> recv data: Host key verification failed. : Connection reset by peer

Question:
How do I provide a ssh key to foreman? Is this the correct syntax?

Thank you for your help!

This error indicates the SSH client didn't trust the remote host's key.
Try sudoing first to the 'foreman' user and SSH to the libvirt host by
hand, then say 'yes' to prompt about whether you want to trust the
remote host.

You will also need SSH keys set up for the foreman user to access the
remote libvirt host automatically.

··· On 09/07/13 06:49, Michael Speth wrote: > Greetings, > I am new to foreman and am trying to add a remote LibVirt Compute > Resource. I am adding the compute resource through the web UI. > > I am using the following URL for the compute resource: > > qemu+ssh://username@host.com/system > > > It fails with the following message: > > Error making a connection to libvirt URI > qemu+ssh://username@host.com/system: Call to virConnectOpen failed: > Cannot recv data: Host key verification failed. : Connection reset > by peer > > > Question: > How do I provide a ssh key to foreman? Is this the correct syntax?


Dominic Cleal
Red Hat Engineering