Skip to content

Commit aef6286

Browse files
committed
Prefer Hyper-V Default Switch by default
1 parent 8922543 commit aef6286

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Looking for SQL Server on Windows VM? Check https://github.com/msabramo/vagrant_
4141

4242
First time run, this may take quite a while as the base box image is downloaded and provisioned, packages installed.
4343

44-
On Hyper-V, if Vagrant prompts for the Hyper-V Switch, choose `Default Switch` or `External Switch`.
44+
On Hyper-V, by default, `Default Switch` is preferred. If you prefer to select different switch, see related comment in the `Vagrantfile`.
4545

4646
On Hyper-V, no port forwarding is enabled. Once the provisioning is done, IP address of the guest is printed. Use this IP to connect from host to the SQL Server using the default port.
4747

Vagrantfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ Vagrant.configure(2) do |config|
2525
# Windows (Build 16237+) comes with "Default Switch" to allow VMs to NAT host internet (any!) connection
2626
# https://blogs.technet.microsoft.com/virtualization/2017/07/26/hyper-v-virtual-machine-gallery-and-networking-improvements/
2727
# Apparently, this is an undocumented workaround to specify Hyper-V network in Vagrantfile.
28-
# Otherwise, Vagrant will prompt listing Hyper-V Switch-es to select.
29-
#override.vm.network "private_network", bridge: "Default Switch"
28+
# NOTE: By default, try the "Default Switch"
29+
# Alternatively, comment this line and let Vagrant prompt you to select one from available Hyper-V Switch-es.
30+
override.vm.network "private_network", bridge: "Default Switch"
3031
#override.vm.network "public_network", bridge: "External Switch"
3132
end
3233

0 commit comments

Comments
 (0)