How to automatically select bridged network interfaces in Vagrant?

前端 未结 4 655
说谎
说谎 2021-02-01 15:39

What should I add in Vagrant file to prevent asking (after vagrant up command)

Which interface should the network bridge to?

4条回答
  •  故里飘歌
    2021-02-01 16:15

    in your Vagrantfile, you should add

    config.vm.network "public_network", bridge: "Intel(R) 82579LM Gigabit Network Connection"
    

    Then it should make vagrant happy (actually its more VirtualBox that is getting happy in this case) and select the correct network adapter for the VM

提交回复
热议问题