Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error binding physical network adapter #366

Open
eliassal opened this issue Jul 2, 2020 · 1 comment
Open

Error binding physical network adapter #366

eliassal opened this issue Jul 2, 2020 · 1 comment
Labels
question The issue is a question.

Comments

@eliassal
Copy link

eliassal commented Jul 2, 2020

PSVersion 5.1.18362.752
Console
Win 10 64bit
ModuleType Version Name ExportedCommands

I updated the sample file "Sample_WS2016_NanoDomain.xml" to use my external switch as follows

<switches managementvlan="97">
    <switch name="USBEth" type="External">
      <adapters>
        <adapter name="Cluster" macaddress="00155D010701" />
        <adapter name="Management" macaddress="00155D010702" />
        <adapter name="SMB" macaddress="00155D010703" />
        <adapter name="LM" macaddress="00155D010704" />
      </adapters>
    </switch>

when I run the build step I get

VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted =
'********************************************************************
VERBOSE: [12:59:47]: Initializing Lab Folders.
VERBOSE: [12:59:48]: Initializing Lab Management virtual switch 'NANOTEST.COM Lab Management'.
VERBOSE: [12:59:49]: Creating Lab Management Switch 'NANOTEST.COM Lab Management' on Vlan 97.
VERBOSE: [12:59:50]: Updating Lab Management Switch 'NANOTEST.COM Lab Management' to Vlan 97.
VERBOSE: [12:59:50]: Creating External Virtual Switch 'General Purpose External'.
New-LabException : Error binding physical network adapter 'USBEth' to External Switch 'General Purpose External'
because it is already bound to another External Switch.
At C:\Program Files\WindowsPowerShell\Modules\LabBuilder\1.0.5.105\LabBuilder.psm1:8453 char:25

  •                     New-LabException @exceptionParameters
    
  •                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [New-LabException], Exception
    • FullyQualifiedErrorId : BindingAdapterUsedError,New-LabException
@PlagueHO PlagueHO added the question The issue is a question. label Jul 17, 2020
@PlagueHO
Copy link
Owner

Hi @eliassal - sorry about the delay. This is because adapter USBEth is already bound to another external Hyper-V switch. A physical (or virtual) adapter in your host system can only be bound to a single External switch. Run Get-VMSwitch -SwitchType 'External' to list all External switches in your system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The issue is a question.
Projects
None yet
Development

No branches or pull requests

2 participants