Changeset 84644 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jun 2, 2020 3:40:11 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageCloud.cpp
r84643 r84644 2122 2122 } 2123 2123 2124 static HRESULT createLocalGatewayImage(ComPtr<IVirtualBox> virtualBox, const Bstr& aGatewayIso, const Bstr& aGuestAdditionsIso )2124 static HRESULT createLocalGatewayImage(ComPtr<IVirtualBox> virtualBox, const Bstr& aGatewayIso, const Bstr& aGuestAdditionsIso, const Bstr& aProxy) 2125 2125 { 2126 2126 /* Check if the image already exists. */ … … 2294 2294 return hrc; 2295 2295 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 } 2296 2302 hrc = unattended->Prepare(); 2297 2303 if (errorOccured(hrc, "Failed to prepare unattended installation.")) … … 2457 2463 { "--tunnel-network-range", 'r', RTGETOPT_REQ_STRING }, 2458 2464 { "--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 } 2460 2467 }; 2461 2468 RTGETOPTSTATE GetState; … … 2471 2478 Bstr strLocalGatewayIso; 2472 2479 Bstr strGuestAdditionsIso; 2480 Bstr strProxy; 2473 2481 2474 2482 int c; … … 2497 2505 case 'a': 2498 2506 strGuestAdditionsIso=ValueUnion.psz; 2507 break; 2508 case 'p': 2509 strProxy=ValueUnion.psz; 2499 2510 break; 2500 2511 case VINF_GETOPT_NOT_OPTION: … … 2515 2526 ComPtr<IVirtualBox> pVirtualBox = a->virtualBox; 2516 2527 2517 hrc = createLocalGatewayImage(pVirtualBox, strLocalGatewayIso, strGuestAdditionsIso );2528 hrc = createLocalGatewayImage(pVirtualBox, strLocalGatewayIso, strGuestAdditionsIso, strProxy); 2518 2529 if (FAILED(hrc)) 2519 2530 return RTEXITCODE_FAILURE;
Note:
See TracChangeset
for help on using the changeset viewer.