During packaging, only one configuration file config is changed. vm. network & quot; public_network & quot;, ip: & quot; 192.168.0.111 & quot, so now I change it to 192.168.0.222...
During packaging, only one configuration file config. vm. network "public_network", ip: "192.168.0.111" is changed.
During re-import, because 192.168.0.111 is occupied, I change it to 192.168.0.222 and the other settings are still the default settings.
If I enable # config. vm. network "forwarded_port", guest: 80, host: 8080
The network configuration can be started successfully.
Do you have such problems.
By the way, VirtualBox displays started
Supplement:
The package Vagrant version is 1.7.1 and the re-import version is 1.7.2, but I failed to switch back to 1.7.1.
After searching for a foreign Q & A, it should be about network configuration during packaging, but my English is really scum and I don't know how to solve it.
Reply content:
During packaging, only one configuration file config. vm. network "public_network", ip: "192.168.0.111" is changed.
During re-import, because 192.168.0.111 is occupied, I change it to 192.168.0.222 and the other settings are still the default settings.
If I enable # config. vm. network "forwarded_port", guest: 80, host: 8080
The network configuration can be started successfully.
Do you have such problems.
By the way, VirtualBox displays started
Supplement:
The package Vagrant version is 1.7.1 and the re-import version is 1.7.2, but I failed to switch back to 1.7.1.
After searching for a foreign Q & A, it should be about network configuration during packaging, but my English is really scum and I don't know how to solve it.
The problem has been solved because the network configuration was not cleared during packaging.
This error can only be passedvagrant ssh
To connect (in windows, I use git-bash ),
After enteringrm /etc/udev/rules.d/70-persistent-net.rules
Restart and then passvagrant up
It will be successful.
@ Deloz thanks to the help of Deloz.
Code for clearing network configuration before packaging is provided on the Internet
rm -rf /etc/udev/rules.d/70-persistent-net.rulessed -i '/HWADDR/d' /etc/sysconfig/network-scripts/ifcfg-eth0sed -i '/UUID/d' /etc/sysconfig/network-scripts/ifcfg-eth0rm -rf /etc/sysconfig/network-scripts/ifcfg-eth1
But it hasn't been tested ....