VirtualBox

Changeset 81398 in vbox


Ignore:
Timestamp:
Oct 21, 2019 11:18:35 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134111
Message:

bugref:9589. OCI: Added public SSH key support during instance creation.

Location:
trunk
Files:
4 edited

Legend:

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

    r81093 r81398  
    26552655          <listitem>
    26562656            <para>VirtualSystemDescriptionType::CloudPublicIP - Whether the instance will have a public IP or not.</para>
     2657          </listitem>
     2658          <listitem>
     2659            <para>VirtualSystemDescriptionType::CloudPublicSSHKey - Public SSH key which is used to connect to an instance via SSH</para>
    26572660          </listitem>
    26582661        </itemizedlist>
  • trunk/doc/manual/en_US/man_VBoxManage-cloudinstance.xml

    r81093 r81398  
    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>
    5152      <arg rep="norepeat">--launch-mode=<replaceable>NATIVE/EMULATED/PARAVIRTUALIZED</replaceable></arg>
    5253    </cmdsynopsis>
     
    147148        </varlistentry>
    148149        <varlistentry>
     150          <term><option>--public-ssh-key</option></term><listitem><para>Public SSH key used to connect to the instance via SSH</para></listitem>
     151        </varlistentry>
     152        <varlistentry>
    149153          <term><option>--launch-mode</option></term><listitem><para>The most known values here may be EMULATED, NATIVE, PARAVIRTUALIZED. </para></listitem>
    150154        </varlistentry>
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageCloud.cpp

    r81119 r81398  
    480480        { "--privateip",      'P', RTGETOPT_REQ_STRING },
    481481        { "--launch",         'l', RTGETOPT_REQ_STRING },
     482        { "--public-ssh-key", 'k', RTGETOPT_REQ_STRING },
    482483    };
    483484    RTGETOPTSTATE GetState;
     
    496497    ComPtr<IVirtualSystemDescription> pVSD = virtualSystemDescriptions[0];
    497498
    498     Utf8Str strDisplayName, strImageId, strBootVolumeId;
     499    Utf8Str strDisplayName, strImageId, strBootVolumeId, strPublicSSHKey;
    499500    int c;
    500501    while ((c = RTGetOpt(&GetState, &ValueUnion)) != 0)
     
    565566                    break;
    566567                }
     568            case 'k':
     569                strPublicSSHKey = ValueUnion.psz;
     570                pVSD->AddDescription(VirtualSystemDescriptionType_CloudPublicSSHKey,
     571                                     Bstr(ValueUnion.psz).raw(),
     572                                     Bstr(ValueUnion.psz).raw());
     573                break;
    567574            case VINF_GETOPT_NOT_OPTION:
    568575                return errorUnknownSubcommand(ValueUnion.psz);
     
    571578        }
    572579    }
     580
     581    if (strPublicSSHKey.isEmpty())
     582        RTPrintf("Warning!!! Public SSH key doesn't present in the passed arguments...\n");
    573583
    574584    if (strImageId.isNotEmpty() && strBootVolumeId.isNotEmpty())
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r81299 r81398  
    40374037  <enum
    40384038    name="VirtualSystemDescriptionType"
    4039     uuid="eca6989c-1de0-456b-8c4f-49c609791156"
     4039    uuid="29c2299c-2c40-44b5-9775-2927f20763f3"
    40404040    >
    40414041    <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
     
    41034103    <const name="CloudOCIVCNCompartment" value="46" />
    41044104    <const name="CloudOCISubnetCompartment" value="47" />
     4105    <const name="CloudPublicSSHKey" value="48" />
    41054106  </enum>
    41064107
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