Everytime when I run vagrant up, it tells me to choose a virtual switch.
Please choose a switch to attach to your Hyper-V instance.
node3: If none of these are appropriate, please open the Hyper-V manager
node3: to create a new virtual switch.
node3: 1) NATSwitch
node3: 2) dockerswarm
node3: 3) Default Switch
node3: 4) Test Switch
node3: What switch would you like to use? 3
Is it possible to write this in Vagrantfile?
1 thought on “Can I tell hyper-v which virtual switch to use automatically?”
You can use vm.network.