none
Create a new port/ New Virtual network adapter RRS feed

  • Question

  • Hi

    I have a  on Nic team . I need to create multiple Hyper-V virtual network adapters on the host . I can only create one virtual switch. It doesn't let me create multiple virtual switches on one team . Is there anyway I can create multiple Nics host OS.

    Thanks

    mumtaz

    Monday, August 12, 2013 3:02 PM

Answers

  • You should use a nic team in an ideal world rather than a team .

    Which can be achieved by the below script. This assumes Team1 is the name of your nic team. Rest of the stuff is all created automatically .

    I haven't tried this on a single nic . I presume this is also achievable .

    New-VMSwitch -Name "VMNET" -MinimumBandwidthMode Weight -NetAdapterName "Team1"

     Rename-VMNetworkAdapter -ManagementOS -Name "VMNET" -NewName "server2"
     Add-VMNetworkAdapter -ManagementOS -Name "Cluster" -SwitchName "VMNET"
     Add-VMNetworkAdapter -ManagementOS -Name "Migration" -SwitchName "VMNET"
    Add-VMNetworkAdapter -ManagementOS -Name "ISCSI" -SwitchName "VMNET"
     
    Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName "server2" -Access -VlanId "317"
     Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName "ISCSI" -Access -VlanId "110"
    Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName "Migration" -Access -VlanId "24"
    Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName "Cluster" -Access -VlanId "26"

     Set-VMNetworkAdapter -ManagementOS -Name "server2" -MinimumBandwidthWeight "5"
     Set-VMNetworkAdapter -ManagementOS -Name "Cluster" -MinimumBandwidthWeight "20"
     Set-VMNetworkAdapter -ManagementOS -Name "Migration" -MinimumBandwidthWeight "30"
     Set-VMNetworkAdapter -ManagementOS -Name "ISCSI" -MinimumBandwidthWeight "30"
     Set-VMSwitch "VMNET" -DefaultFlowMinimumBandwidthWeight "10"


    Thursday, August 15, 2013 9:39 AM
  • Thanks Jeremey 

    Here is solution that explains how tio create host profile 

    http://www.hyper-v.nu/archives/hvredevoort/2011/04/scvmm-2012-preparing-the-host-profile/

    thanks

    mumtaz 

    Saturday, August 24, 2013 8:17 PM

All replies

  • Just to clarify I want to know how to create tNics referred in this http://technet.microsoft.com/en-us/library/hh831648.aspx

    Thanks

    • Marked as answer by mumtaz khan MS Thursday, August 15, 2013 9:36 AM
    • Unmarked as answer by mumtaz khan MS Thursday, August 15, 2013 9:36 AM
    Monday, August 12, 2013 4:41 PM
  • You should use a nic team in an ideal world rather than a team .

    Which can be achieved by the below script. This assumes Team1 is the name of your nic team. Rest of the stuff is all created automatically .

    I haven't tried this on a single nic . I presume this is also achievable .

    New-VMSwitch -Name "VMNET" -MinimumBandwidthMode Weight -NetAdapterName "Team1"

     Rename-VMNetworkAdapter -ManagementOS -Name "VMNET" -NewName "server2"
     Add-VMNetworkAdapter -ManagementOS -Name "Cluster" -SwitchName "VMNET"
     Add-VMNetworkAdapter -ManagementOS -Name "Migration" -SwitchName "VMNET"
    Add-VMNetworkAdapter -ManagementOS -Name "ISCSI" -SwitchName "VMNET"
     
    Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName "server2" -Access -VlanId "317"
     Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName "ISCSI" -Access -VlanId "110"
    Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName "Migration" -Access -VlanId "24"
    Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName "Cluster" -Access -VlanId "26"

     Set-VMNetworkAdapter -ManagementOS -Name "server2" -MinimumBandwidthWeight "5"
     Set-VMNetworkAdapter -ManagementOS -Name "Cluster" -MinimumBandwidthWeight "20"
     Set-VMNetworkAdapter -ManagementOS -Name "Migration" -MinimumBandwidthWeight "30"
     Set-VMNetworkAdapter -ManagementOS -Name "ISCSI" -MinimumBandwidthWeight "30"
     Set-VMSwitch "VMNET" -DefaultFlowMinimumBandwidthWeight "10"


    Thursday, August 15, 2013 9:39 AM
  • Actually, with PowerShell you can create a 'team' with a single NIC and then use the PowerShell commands you have shown above to create multiple vNICs for different VLANs on that 'team'.

    .:|:.:|:. tim

    Thursday, August 15, 2013 12:29 PM
  • Cheers Tim
    Thursday, August 15, 2013 1:07 PM
  • HI Tim

    Can I create same thing on VMM and apply the setting on multiple hosts . maybe creating host profile

    Thanks

    mumtaz

    Friday, August 16, 2013 3:26 PM
  • Hi mumtaz,

    As far as I know, there is no such setting.

    However, you can try to post the question in our SCVMM forum for a workaround.

    SCVMM forum

    http://social.technet.microsoft.com/Forums/systemcenter/en-US/home?category=virtualmachinemanager

    Thanks.

     


    Best Regards
    Jeremy Wu

    Saturday, August 24, 2013 3:52 PM
    Moderator
  • Thanks Jeremey 

    Here is solution that explains how tio create host profile 

    http://www.hyper-v.nu/archives/hvredevoort/2011/04/scvmm-2012-preparing-the-host-profile/

    thanks

    mumtaz 

    Saturday, August 24, 2013 8:17 PM