1

I have installed libvirt on OSX, and from outside a virtualbox I can access it using virsh no problem. However, I want to access it from inside a guest, and this is giving me the hopelessly useless error:

[root@foreman01 ~]# virsh -c vbox://192.168.56.1/session
setlocale: No such file or directory
error: Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such file or directory
error: failed to connect to the hypervisor

The guest is running CentOS 6.5, with Hostonly networking. I need that cos the whole setup also runs DNS and DHCP and that cannot go out of the hostonly network. However I also have a second network adapter configured, would I use that?

3

1 Answer 1

0

I think you're using the wrong URI. According to the documentation,

Remote URIs have the general form ("[...]" meaning an optional part):

driver[+transport]://[username@][hostname][:port]/[path][?extraparameters]

Either the transport or the hostname must be given in order to distinguish this from a local URI.

You didn't specify the transport and the default transport is tls. The documentation regarding transports also says this about tls:

TLS 1.0 (SSL 3.1) authenticated and encrypted TCP/IP socket, usually listening on a public port number. To use this you will need to generate client and server certificates. The standard port is 16514.

I don't think you've generated the required certificates, therefore you're getting that error. So either generate the certificates or use another transport, for example tcp (unencrypted, good only for trusted networks) or ssh (e.g. vbox+ssh://[email protected]/session).

1
  • Let me try this tomorrow. I didn't generate the ssl certificates indeed. Jun 25, 2014 at 20:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .