Automation

 View Only
  • 1.  New-CIVM throws Unknown IP Addressing Mode "MANUAL".. connected to network "none"

    Posted Nov 13, 2020 07:03 PM

    Hi,

    Im trying to run the following command:

    New-CIVM -Name ("TestVM-2") -VMTemplate $templateVM -VApp $MYvApp -ComputerName ("MyComputer") -ErrorAction Stop

    But it throws the following command:

    New-CIVM [ ... ] Invalid network parameter: Unknown IP Addressing Mode "MANUAL" for vNIC 2 on VM "TestVM-2" connected to network "none".

    However none of the NICs in the template has the setting combination (MANUAL and network=none) mentioned in the error message... Network section for the VM looks like this:

    $templateVM.ExtensionData.Section[0].NetworkConnection


    Network : Net-2
    NeedsCustomization : False
    NetworkConnectionIndex : 2
    NetworkAdapterType : VMXNET3
    IpAddress : 172.22.1.13
    ExternalIpAddress :
    IpAddressAllocationMode : MANUAL
    IsConnected : True
    AnyAttr :
    VCloudExtension :

    Network : none
    NeedsCustomization : True
    NetworkConnectionIndex : 0
    NetworkAdapterType : VMXNET3
    IpAddress :
    ExternalIpAddress :
    IpAddressAllocationMode : NONE
    IsConnected : False
    AnyAttr :
    VCloudExtension :

    Network : Net-1
    NeedsCustomization : False
    NetworkConnectionIndex : 1
    NetworkAdapterType : VMXNET3
    IpAddress : 172.21.1.12
    ExternalIpAddress :
    IpAddressAllocationMode : MANUAL
    IsConnected : True
    AnyAttr :
    VCloudExtension :

     

    The same command was working a few weeks ago, but the IT crew has been fiddling with the vcloud to get rid of the flash portal lately...

    Any idea what causes this? Would it be possible to change the NIC settings before trying to push the change? The web portal can make new VMs using the same template just fine, but its slow as f....



  • 2.  RE: New-CIVM throws Unknown IP Addressing Mode "MANUAL".. connected to network "none"
    Best Answer

    Posted Nov 18, 2020 02:19 AM

    It seems like the source of the problem is that when calling New-CIVM most of the network config is wiped clean from the template except the IP addressing mode field.

    Creating a template with Addressing mode set to "none" instead of "Manual" lets us deploy VMs just fine.

    However i question the reasoning behind allowing templates to be made with invalid configurations that cannot be solved in the New-CIVM call.
    Perhaps a new parameter to create and pass new NetworkConnection configuration would be in order?

    ie:

    New-CIVM -Name ("TestVM-2") -VMTemplate $templateVM -VApp $MYvApp -ComputerName ("MyComputer") -NetworkConnection $tmpNicSettings -ErrorAction Stop

    Or similar



  • 3.  RE: New-CIVM throws Unknown IP Addressing Mode "MANUAL".. connected to network "none"

    Posted Jan 05, 2021 09:02 PM

    Even without powershell, we had issues of setting the Manual IP in the UI. We found out that there is some bug in the API calls that have to be fixed and they are addressing it in 10.2.1 coming Jan 10, 2021. Let's hope this fixes both the PowerCLI and API calls.

    We did work around this by letting it deploy the VM as is, then after completion, modify the settings for the NIC in another edit. It is painful but kept our D2D ops going.



  • 4.  RE: New-CIVM throws Unknown IP Addressing Mode "MANUAL".. connected to network "none"

    Posted 26 days ago

    Hi dakkfy1,

    can you please share the snippet of your .ovf file descriptor where you actually define addressing mode to "none" for individual VM?

    Or an example snippet if that's more suitable for you.

    I'm having trouble with defining mine. The creation of the template goes fine but there is no effect:

    PS /root> $templateVM.ExtensionData.Section.NetworkConnection[0]

    Network                 : TS5-DP_PINT_0107_MCAAA_INTOP
    NeedsCustomization      : True
    NetworkConnectionIndex  : 0
    MACAddress              : 00:50:56:01:10:81
    NetworkAdapterType      : VMXNET3
    IpAddress               : 
    ExternalIpAddress       : 
    IpAddressAllocationMode : DHCP
    IsConnected             : True
    AnyAttr                 : 
    VCloudExtension         : 

    Thanks in advance