I want VirtualBox to run the following command:
vb.customize["nat network", " add"," --net name ", "natnetwork0 ","--network ", "10.0.2.0/24"," --DHCP"," off"]
But when I try to vagrant up it shows this error:
Vagrant failed to initialize at a very early stage:
There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. A syntax error usually causes this.
Path: <provider config: virtualbox>
Line number: 121
Message: ArgumentError: wrong number of arguments (given 8, expected 1..2)
I tried to run the same command through a command line and it all worked which means there are no syntax errors I also tried removing my natnetwork and running vagrant but it still shows the same error.