Vagrant package re-import failed

Source: Internet
Author: User
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 sshTo connect (in windows, I use git-bash ),
After enteringrm /etc/udev/rules.d/70-persistent-net.rules
Restart and then passvagrant upIt 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 ....

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.