Changeset 94070 in vbox for trunk/src/VBox
- Timestamp:
- Mar 3, 2022 11:54:06 AM (3 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageCloud.cpp
r93875 r94070 2654 2654 { "--tunnel-network-name", 't', RTGETOPT_REQ_STRING }, 2655 2655 { "--tunnel-network-range", 'r', RTGETOPT_REQ_STRING }, 2656 { "--guest-additions-iso", 'a', RTGETOPT_REQ_STRING },2657 { "--local-gateway-iso", 'l', RTGETOPT_REQ_STRING },2658 2656 { "--proxy", 'p', RTGETOPT_REQ_STRING }, 2659 2657 { "--compartment-id", 'c', RTGETOPT_REQ_STRING } … … 2669 2667 Bstr strTunnelNetworkName; 2670 2668 Bstr strTunnelNetworkRange; 2671 Bstr strLocalGatewayIso;2672 Bstr strGuestAdditionsIso;2673 2669 Bstr strProxy; 2674 2670 Bstr strCompartmentId; … … 2693 2689 case 'r': 2694 2690 strTunnelNetworkRange=ValueUnion.psz; 2695 break;2696 case 'l':2697 strLocalGatewayIso=ValueUnion.psz;2698 break;2699 case 'a':2700 strGuestAdditionsIso=ValueUnion.psz;2701 2691 break; 2702 2692 case 'p': … … 2718 2708 return RTEXITCODE_FAILURE; 2719 2709 2720 if (strLocalGatewayIso.isEmpty())2721 return errorArgument(Cloud::tr("Missing --local-gateway-iso parameter"));2722 2723 2710 ComPtr<IVirtualBox> pVirtualBox = a->virtualBox; 2724 2725 hrc = createLocalGatewayImage(pVirtualBox, strLocalGatewayIso, strGuestAdditionsIso, strProxy);2726 if (FAILED(hrc))2727 return RTEXITCODE_FAILURE;2728 2711 2729 2712 RTPrintf(Cloud::tr("Setting up tunnel network in the cloud...\n")); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r93704 r94070 136 136 MODIFYVM_CABLECONNECTED, 137 137 MODIFYVM_BRIDGEADAPTER, 138 #ifdef VBOX_WITH_CLOUD_NET 139 MODIFYVM_CLOUDNET, 140 #endif /* VBOX_WITH_CLOUD_NET */ 138 141 MODIFYVM_HOSTONLYADAPTER, 139 142 #ifdef VBOX_WITH_VMNET … … 341 344 OPT2("--cable-connected", "--cableconnected", MODIFYVM_CABLECONNECTED, RTGETOPT_REQ_BOOL_ONOFF | RTGETOPT_FLAG_INDEX), 342 345 OPT2("--bridge-adapter", "--bridgeadapter", MODIFYVM_BRIDGEADAPTER, RTGETOPT_REQ_STRING | RTGETOPT_FLAG_INDEX), 346 #ifdef VBOX_WITH_CLOUD_NET 347 OPT2("--cloud-network", "--cloudnetwork", MODIFYVM_CLOUDNET, RTGETOPT_REQ_STRING | RTGETOPT_FLAG_INDEX), 348 #endif /* VBOX_WITH_CLOUD_NET */ 343 349 OPT2("--host-only-adapter", "--hostonlyadapter", MODIFYVM_HOSTONLYADAPTER, RTGETOPT_REQ_STRING | RTGETOPT_FLAG_INDEX), 344 350 #ifdef VBOX_WITH_VMNET … … 1774 1780 CHECK_ERROR(nic, COMSETTER(AttachmentType)(NetworkAttachmentType_NATNetwork)); 1775 1781 } 1782 #ifdef VBOX_WITH_CLOUD_NET 1783 else if (!RTStrICmp(ValueUnion.psz, "cloud")) 1784 { 1785 if (!fEnabled) 1786 CHECK_ERROR(nic, COMSETTER(Enabled)(TRUE)); 1787 CHECK_ERROR(nic, COMSETTER(AttachmentType)(NetworkAttachmentType_Cloud)); 1788 } 1789 #endif /* VBOX_WITH_CLOUD_NET */ 1776 1790 else 1777 1791 { … … 1817 1831 break; 1818 1832 } 1833 1834 #ifdef VBOX_WITH_CLOUD_NET 1835 case MODIFYVM_CLOUDNET: 1836 { 1837 if (!parseNum(GetOptState.uIndex, NetworkAdapterCount, "NIC")) 1838 break; 1839 1840 ComPtr<INetworkAdapter> nic; 1841 CHECK_ERROR_BREAK(sessionMachine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1842 ASSERT(nic); 1843 1844 /* remove it? */ 1845 if (!RTStrICmp(ValueUnion.psz, "none")) 1846 { 1847 CHECK_ERROR(nic, COMSETTER(CloudNetwork)(Bstr().raw())); 1848 } 1849 else 1850 { 1851 CHECK_ERROR(nic, COMSETTER(CloudNetwork)(Bstr(ValueUnion.psz).raw())); 1852 } 1853 break; 1854 } 1855 #endif /* VBOX_WITH_CLOUD_NET */ 1819 1856 1820 1857 case MODIFYVM_HOSTONLYADAPTER: -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r93858 r94070 6444 6444 N_("Failed to generate a key pair due to libssh error!")); 6445 6445 } 6446 hrc = startCloudGateway(virtualBox, network, mGateway); H(); 6446 hrc = startCloudGateway(virtualBox, network, mGateway); 6447 if (FAILED(hrc)) 6448 { 6449 return pVMM->pfnVMR3SetError(pUVM, hrc, RT_SRC_POS, 6450 N_("Failed to start cloud gateway instance.\nMake sure you set up " 6451 "cloud networking properly with 'VBoxManage network setup'. " 6452 "Check VBoxSVC.log for details.")); 6453 } 6447 6454 InsertConfigBytes(pDevCfg, "MAC", &mGateway.mCloudMacAddress, sizeof(mGateway.mCloudMacAddress)); 6448 6455 if (!bstr.isEmpty())
Note:
See TracChangeset
for help on using the changeset viewer.