VirtualBox

Changeset 84644 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jun 2, 2020 3:40:11 PM (5 years ago)
Author:
vboxsync
Message:

OCI: (bugref:9469) temporary proxy workaround.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageCloud.cpp

    r84643 r84644  
    21222122}
    21232123
    2124 static HRESULT createLocalGatewayImage(ComPtr<IVirtualBox> virtualBox, const Bstr& aGatewayIso, const Bstr& aGuestAdditionsIso)
     2124static HRESULT createLocalGatewayImage(ComPtr<IVirtualBox> virtualBox, const Bstr& aGatewayIso, const Bstr& aGuestAdditionsIso, const Bstr& aProxy)
    21252125{
    21262126    /* Check if the image already exists. */
     
    22942294        return hrc;
    22952295
     2296    if (aProxy.isNotEmpty())
     2297    {
     2298        hrc = unattended->COMSETTER(ExtraInstallKernelParameters)(BstrFmt(" ks=cdrom:/ks.cfg proxy=\"%ls\"", aProxy.raw()).raw());
     2299        if (errorOccured(hrc, "Failed to set post install script template for the unattended installer."))
     2300            return hrc;
     2301    }
    22962302    hrc = unattended->Prepare();
    22972303    if (errorOccured(hrc, "Failed to prepare unattended installation."))
     
    24572463        { "--tunnel-network-range", 'r', RTGETOPT_REQ_STRING },
    24582464        { "--guest-additions-iso",  'a', RTGETOPT_REQ_STRING },
    2459         { "--local-gateway-iso",    'l', RTGETOPT_REQ_STRING }
     2465        { "--local-gateway-iso",    'l', RTGETOPT_REQ_STRING },
     2466        { "--proxy",                'p', RTGETOPT_REQ_STRING }
    24602467    };
    24612468    RTGETOPTSTATE GetState;
     
    24712478    Bstr strLocalGatewayIso;
    24722479    Bstr strGuestAdditionsIso;
     2480    Bstr strProxy;
    24732481
    24742482    int c;
     
    24972505            case 'a':
    24982506                strGuestAdditionsIso=ValueUnion.psz;
     2507                break;
     2508            case 'p':
     2509                strProxy=ValueUnion.psz;
    24992510                break;
    25002511            case VINF_GETOPT_NOT_OPTION:
     
    25152526    ComPtr<IVirtualBox> pVirtualBox = a->virtualBox;
    25162527
    2517     hrc = createLocalGatewayImage(pVirtualBox, strLocalGatewayIso, strGuestAdditionsIso);
     2528    hrc = createLocalGatewayImage(pVirtualBox, strLocalGatewayIso, strGuestAdditionsIso, strProxy);
    25182529    if (FAILED(hrc))
    25192530        return RTEXITCODE_FAILURE;
Note: See TracChangeset for help on using the changeset viewer.

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