VirtualBox 6.0.0 beta2 on Solaris 11.4
I have created a API signing key following the "openssl" instructions at
https://docs.cloud.oracle.com/iaas/Cont ... ey.htm#How
This is with openssl version 1.0.2 from the package: pkg list openssl
NAME (PUBLISHER) VERSION IFO
library/security/openssl 1.0.2.15-11.4.0.0.1.14.0 i--
I have created a "Cloud Profile" in VirtualBox (which was not so easy as the GUI behaves a little odd)
When going to File -> Export Appliance and selecting "Format" "Oracle Cloud Infrastructure" I currently get the following error:
Failed to acquire cloud client parameter.
Failed to read signing key from "/export/home/stes/.oci/oci_api_key.pem"
Result Code: VBOX_E_IPRT_ERROR (0x80BB0005)
Component: CloudClientWrap
Interface: ICloudClient {cb244d7b-3757-4fdd-976b-9b8a269da77c}
ls -l /export/home/stes/.oci/oci_api_key.pem
-rw------- 1 stes staff 1766 Nov 22 20:17 /export/home/stes/.oci/oci_api_key.pem
after chmod 644 /export/home/stes/.oci/oci_api_key.pem (which is against the instructions of chmod 600)
I get the same error.
I created the key with : openssl genrsa -out ~/.oci/oci_api_key.pem -aes128 2048
as indicated in the above doc.
head oci_api_key.pem
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,B72177F4AB7242DF67A29393056C4DD5
openssl rsa < oci_api_key.pem > oci_api_key.pem.1
and replacing the key by the output of that command:
head oci_api_key.pem.1
-----BEGIN RSA PRIVATE KEY-----
it seems to work ! So this may be related to the form of the oci_api_key.pem which I changed to "RSA PRIVATE KEY" form using the latter command.
The VirtualBox "Export Appliance" allows me to select "Oracle Cloud Infrastructure" now ...
Unfortunately when clicking "Export" for a Linux vm guest , I get now:
Failed to export appliance clstes.
CreateMultipartUpload: status 404: NotFound: Not Found.
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: CloudClientWrap
Interface: ICloudClient {cb244d7b-3757-4fdd-976b-9b8a269da77c}
Failed to acquire cloud client parameter. Failed to read signing key from "/export/home/stes/.
Re: Failed to acquire cloud client parameter. Failed to read signing key from "/export/home/st
In any case it seems to look good so far, as the "Export Appliance" shows
clnet0(...bsay2a) / Public Subnet SRDY:EU-FRANKFURT-1-AD-1(...e6chuq)
so it seems to communicate with the Oracle Cloud Infrastructure to fill out the fields to export the guest.
Towqrds "Availability Domain" SRDY:EU-FRANKFURT-1-AD-1
clnet0(...bsay2a) / Public Subnet SRDY:EU-FRANKFURT-1-AD-1(...e6chuq)
so it seems to communicate with the Oracle Cloud Infrastructure to fill out the fields to export the guest.
Towqrds "Availability Domain" SRDY:EU-FRANKFURT-1-AD-1
Re: Failed to acquire cloud client parameter. Failed to read signing key from "/export/home/st
I believe that with the command
openssl rsa < oci_api_key.pem > oci_api_key.pem.1
I simply removed the passphrase from the private key, so perhaps the problem was with the passphrase.
The pass_phrase I entered in the GUI was the correct one though ...
openssl rsa < oci_api_key.pem > oci_api_key.pem.1
I simply removed the passphrase from the private key, so perhaps the problem was with the passphrase.
The pass_phrase I entered in the GUI was the correct one though ...