Setting a VM's mac address in Vagrant

后端 未结 5 1008
不思量自难忘°
不思量自难忘° 2021-01-31 15:39

The documentation lists that the mac address of a VM can be set in the Vagrantfile, however everything I add seems to end up being a syntax error. Anyone successfully done this?

5条回答
  •  广开言路
    2021-01-31 16:34

    On Vagrant version 2.0.1, I write in the Vagrantfile for a private_network (provider = VirtualBox ; version 5.2.0) :

    config.vm.network "private_network", ip: "X.X.X.X", mac: "080027xxxxxx"
    

提交回复
热议问题