VirtualBox

Changeset 43058 in vbox


Ignore:
Timestamp:
Aug 29, 2012 7:47:42 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80394
Message:

VBoxManage/UpdateAdditions: Implemented --wait-start to only wait for the actual Guest Additions updater being started.

Location:
trunk
Files:
3 edited

Legend:

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

    r42448 r43058  
    649649
    650650          <listitem>
    651             <para><computeroutput>--nicbootprio&lt;1-N&gt; 
    652             &lt;priority&gt;</computeroutput>: This specifies the order in which 
    653             NICs are tried for booting over the network (using PXE). The 
    654             priority is an integer in the 0 to 4 range. Priority 1 is the 
    655             highest, priority 4 is low. Priority 0, which is the default unless 
     651            <para><computeroutput>--nicbootprio&lt;1-N&gt;
     652            &lt;priority&gt;</computeroutput>: This specifies the order in which
     653            NICs are tried for booting over the network (using PXE). The
     654            priority is an integer in the 0 to 4 range. Priority 1 is the
     655            highest, priority 4 is low. Priority 0, which is the default unless
    656656            otherwise specified, is the lowest.
    657657            </para>
     
    31273127
    31283128          <screen>VBoxManage guestcontrol &lt;vmname&gt;|&lt;uuid&gt; updateadditions
    3129             [--source "&lt;guest additions .ISO file to use&gt;"] [--verbose]</screen>
     3129            [--source "&lt;guest additions .ISO file to use&gt;"] [--verbose]
     3130            [--wait-start]</screen>
    31303131
    31313132          <para>where the parameters mean: <glosslist>
     
    31533154                <glossdef>
    31543155                  <para>Tells VBoxManage to be more verbose.</para>
     3156                </glossdef>
     3157              </glossentry>
     3158
     3159              <glossentry>
     3160                <glossterm>--wait-start</glossterm>
     3161                <glossdef>
     3162                  <para>Starts the regular updating process and waits until the
     3163                    actual Guest Additions update inside the guest was started.
     3164                    This can be necessary due to needed interaction with the
     3165                    guest OS during the installation phase.</para>
     3166                  <para>When omitting this flag VBoxManage will wait for the
     3167                    whole Guest Additions update to complete.</para>
    31553168                </glossdef>
    31563169              </glossentry>
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r43028 r43058  
    260260                 "                            updateadditions\n"
    261261                 "                            [--source <guest additions .ISO>] [--verbose]\n"
     262                 "                            [--wait-start]\n"
    262263                 "\n", pcszSep1, pcszSep2);
    263264}
     
    25302531    Utf8Str strSource;
    25312532    bool fVerbose = false;
     2533    bool fWaitStartOnly = false;
    25322534
    25332535    static const RTGETOPTDEF s_aOptions[] =
    25342536    {
    25352537        { "--source",              's',         RTGETOPT_REQ_STRING  },
    2536         { "--verbose",             'v',         RTGETOPT_REQ_NOTHING }
     2538        { "--verbose",             'v',         RTGETOPT_REQ_NOTHING },
     2539        { "--wait-start",          'w',         RTGETOPT_REQ_NOTHING }
    25372540    };
    25382541
     
    25542557            case 'v':
    25552558                fVerbose = true;
     2559                break;
     2560
     2561            case 'w':
     2562                fWaitStartOnly = true;
    25562563                break;
    25572564
     
    25922599            RTPrintf("Using source: %s\n", strSource.c_str());
    25932600
     2601        com::SafeArray<AdditionsUpdateFlag_T> aUpdateFlags;
     2602        if (fWaitStartOnly)
     2603        {
     2604            aUpdateFlags.push_back(AdditionsUpdateFlag_WaitForUpdateStartOnly);
     2605            if (fVerbose)
     2606                RTPrintf("Preparing and waiting for Guest Additions installer to start ...\n");
     2607        }
     2608
    25942609        ComPtr<IProgress> pProgress;
    2595 
    2596         SafeArray<AdditionsUpdateFlag_T> updateFlags; /* No flags set. */
    25972610        CHECK_ERROR(guest, UpdateGuestAdditions(Bstr(strSource).raw(),
    25982611                                                /* Wait for whole update process to complete. */
    2599                                                 ComSafeArrayAsInParam(updateFlags),
     2612                                                ComSafeArrayAsInParam(aUpdateFlags),
    26002613                                                pProgress.asOutParam()));
    26012614        if (FAILED(rc))
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r43041 r43058  
    89078907    </const>
    89088908    <const name="WaitForUpdateStartOnly"  value="1">
    8909       <desc>Only wait for the update process being started and do not
    8910         wait while peforming the actual update.</desc>
     8909      <desc>Starts the regular updating process and waits until the
     8910        actual Guest Additions update inside the guest was started.
     8911        This can be necessary due to needed interaction with the guest
     8912        OS during the installation phase.</desc>
    89118913    </const>
    89128914  </enum>
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