How do you attach a Virtual Network Adapter to a VM Using WMI?
i looking samples or information on how attach external virtual network adapter instance of vm. have been able integrate hyper-v using wmi , c#. language sample great (vbscript, powershell, etc)
i believe related msvm_externalethernetport, don't see how associate this instance of vm (msvm_computersystem).
thanks!
assuming have virtual switch (virtual network), you’ll need to:
1. create switch port on virtual switch (“createswitchport” method of msvm_virtualswitchmanagementservice).
2. add either msvm_syntheticethernetportsettingdata or msvm_emulatedethernetportsettingdata computer system. “synthetic” shows “network adapter” , “emulated” shows “legacy network adapter” in hyper-v ui.
3. set connection property of setting data switch port created in step 1.
the msvm_externalethernertport represents physical nic it's useful in terms of virtual switch connecting physical network.
this posting provided "as is" no warranties, , confers no rights.
Windows Server > Hyper-V
Comments
Post a Comment