

NB You will need Administrative privileges to create the SMB share.

PowerShell -Command 'Set-NetFirewallProfile -DisabledInterfaceAliases (Get-NetAdapter -name "vEthernet*" | Where-Object ).InterfaceAlias' EOF source secrets-hyperv.sh # NB execute if the VM fails to obtain an IP address from DHCP. # NB it would be nice for this user to have its credentials # automatically rotated, if you implement that feature, # let me known! export VAGRANT_SMB_USERNAME='_vagrant_share' export VAGRANT_SMB_PASSWORD='' # remove the virtual switch from the windows firewall. # NB you should create a new local user named _vagrant_share # and use that one here instead of your user credentials.

export HYPERV_VLAN_ID='' # set the credentials that the guest will use # to connect to this host smb share. export HYPERV_SWITCH_NAME='Default Switch' # set this value when you need to set the VM VLAN ID. Cat >secrets-hyperv.sh << EOF # set this value when you need to set the VM Switch Name.
