3 Replies Latest reply on Dec 11, 2018 1:15 PM by LucD

    New-NetworkAdapter- Unable to create a nic for Win 2016 OS

    thiag2011 Enthusiast

      Hi all,

      Am trying to create a network adapter on two dummy vms with OS versions marked as  Win2008(vm name = vm1)  and win 2016( vm name = test), using the below command.


      1) PowerCLI F:\> Get-VM test | New-NetworkAdapter -NetworkName xxxxvlan105 -WakeOnLan -StartConnected -Type Vmxnet3

           New-NetworkAdapter : 12/7/2018 8:31:09 PM    New-NetworkAdapter        The network "xxxxvlan105" doesn't exist on the host.

                At line:1 char:15

                + Get-VM test | New-NetworkAdapter -NetworkName xxxxvlan105 -WakeOnLan -StartConne ...

              + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

               + CategoryInfo          : ResourceUnavailable: (xxxxvlan105:String) [New-NetworkAdapter], ViError

               + FullyQualifiedErrorId : Client20_VmHostServiceImpl_TryGetHostNetworkByName_NonexistentNetwork,VMware.VimAutomation.ViCore.Cmdlets.Commands.Vir




      2) PowerCLI F:\> Get-VM vm1 | New-NetworkAdapter -NetworkName xxxxvlan105 -WakeOnLan -StartConnected -Type Vmxnet3



      Name                 Type       NetworkName  MacAddress         WakeOnLan


      ----                 ----       -----------  ----------         ---------

      Network adapter 6    Vmxnet3    xxxxvlan105  00:50:56:94:xx:xx       True



      If I change the OS version to 2008 on vm "test", then am able to create the network adapter.


      Any suggestions please...