VirtualBox

Changeset 81421 in vbox for trunk


Ignore:
Timestamp:
Oct 21, 2019 5:47:42 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134138
Message:

bugref:9589. OCI: user is able to pass several SSH keys during instance creation.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/en_US/SDKRef.xml

    r81398 r81421  
    26572657          </listitem>
    26582658          <listitem>
    2659             <para>VirtualSystemDescriptionType::CloudPublicSSHKey - Public SSH key which is used to connect to an instance via SSH</para>
     2659            <para>VirtualSystemDescriptionType::CloudPublicSSHKey - Public SSH key which is used to connect to an instance via SSH.
     2660            It may be one or more records with the type VirtualSystemDescriptionType::CloudPublicSSHKey in the VirtualSystemDescription.
     2661            But at least one should be presented otherwise user won't be able to connect to the instance via SSH.
     2662            </para>
    26602663          </listitem>
    26612664        </itemizedlist>
  • trunk/doc/manual/en_US/man_VBoxManage-cloudinstance.xml

    r81398 r81421  
    4949      <arg rep="norepeat">--publicip=<replaceable>true/false</replaceable></arg>
    5050      <arg rep="norepeat">--privateip=<replaceable>IP address</replaceable></arg>
    51       <arg rep="norepeat">--public-ssh-key=<replaceable>key string</replaceable></arg>
     51      <arg rep="repeat">--public-ssh-key=<replaceable>key string</replaceable></arg>
    5252      <arg rep="norepeat">--launch-mode=<replaceable>NATIVE/EMULATED/PARAVIRTUALIZED</replaceable></arg>
    5353    </cmdsynopsis>
     
    148148        </varlistentry>
    149149        <varlistentry>
    150           <term><option>--public-ssh-key</option></term><listitem><para>Public SSH key used to connect to the instance via SSH</para></listitem>
     150          <term><option>--public-ssh-key</option></term>
     151            <listitem>
     152              <para>Public SSH key used to connect to the instance via SSH.
     153                This parameter may be repeated if you plan to use more than one key as:
     154                "--public-ssh-key=firstSSHKey --public-ssh-key=secondSSHKey".
     155              </para>
     156            </listitem>
    151157        </varlistentry>
    152158        <varlistentry>
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageCloud.cpp

    r81398 r81421  
    735735    };
    736736
    737     size_t vsdHReadableArraySize = 9;//the number of items in the vsdHReadableArray
    738     vsdHReadable vsdHReadableArray[9] = {
    739         {VirtualSystemDescriptionType_CloudDomain, "Availability domain = '%ls'\n", "Availability domain wasn't found\n"},
    740         {VirtualSystemDescriptionType_Name, "Instance displayed name = '%ls'\n", "Instance displayed name wasn't found\n"},
    741         {VirtualSystemDescriptionType_CloudInstanceState, "Instance state = '%ls'\n", "Instance state wasn't found\n"},
    742         {VirtualSystemDescriptionType_CloudInstanceId, "Instance Id = '%ls'\n", "Instance Id wasn't found\n"},
    743         {VirtualSystemDescriptionType_CloudImageId, "Bootable image Id = '%ls'\n",
     737    const size_t vsdHReadableArraySize = 12;//the number of items in the vsdHReadableArray
     738    vsdHReadable vsdHReadableArray[vsdHReadableArraySize] = {
     739        {VirtualSystemDescriptionType_CloudDomain, "Availability domain = %ls\n", "Availability domain wasn't found\n"},
     740        {VirtualSystemDescriptionType_Name, "Instance displayed name = %ls\n", "Instance displayed name wasn't found\n"},
     741        {VirtualSystemDescriptionType_CloudInstanceState, "Instance state = %ls\n", "Instance state wasn't found\n"},
     742        {VirtualSystemDescriptionType_CloudInstanceId, "Instance Id = %ls\n", "Instance Id wasn't found\n"},
     743        {VirtualSystemDescriptionType_CloudInstanceDisplayName, "Instance name = %ls\n", "Instance name wasn't found\n"},
     744        {VirtualSystemDescriptionType_CloudImageId, "Bootable image Id = %ls\n",
    744745            "Image Id whom the instance is booted up wasn't found\n"},
    745         {VirtualSystemDescriptionType_CloudInstanceShape, "Shape of the instance = '%ls'\n",
     746        {VirtualSystemDescriptionType_CloudInstanceShape, "Shape of the instance = %ls\n",
    746747            "The shape of the instance wasn't found\n"},
    747         {VirtualSystemDescriptionType_OS, "Type of guest OS = '%ls'\n", "Type of guest OS wasn't found.\n"},
    748         {VirtualSystemDescriptionType_Memory, "RAM = '%ls MB'\n", "Value for RAM wasn't found\n"},
    749         {VirtualSystemDescriptionType_CPU, "CPUs = '%ls'\n", "Numbers of CPUs weren't found\n"}
     748        {VirtualSystemDescriptionType_OS, "Type of guest OS = %ls\n", "Type of guest OS wasn't found\n"},
     749        {VirtualSystemDescriptionType_Memory, "RAM = %ls MB\n", "Value for RAM wasn't found\n"},
     750        {VirtualSystemDescriptionType_CPU, "CPUs = %ls\n", "Numbers of CPUs weren't found\n"},
     751        {VirtualSystemDescriptionType_CloudPublicIP, "Instance public IP = %ls\n", "Public IP wasn't found\n"},
     752        {VirtualSystemDescriptionType_Miscellaneous, "%ls\n", "Free-form tags or metadata weren't found\n"}
    750753    };
    751754
     
    767770            LogRel((vsdHReadableArray[i].strNotFound.c_str()));
    768771        else
    769             RTPrintf(vsdHReadableArray[i].strFound.c_str(), aVBoxValues[0]);
     772        {
     773            LogRel(("Size is %d", aVBoxValues.size()));
     774            for (size_t j = 0; j<aVBoxValues.size(); ++j)
     775            {
     776                RTPrintf(vsdHReadableArray[i].strFound.c_str(), aVBoxValues[j]);
     777            }
     778        }
    770779
    771780        retTypes.setNull();
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette