Vagrant Packaged Package re-import started failed

Source: Internet
Author: User
Tags using git

Only one configuration file was changed when packaging config.vm.network "Public_network", IP: "192.168.0.111", the other is the default

Re-import because 192.168.0.111 is already occupied, so I now change to 192.168.0.222 other or default configuration

Another point, if I enable # config.vm.network "Forwarded_port", guest:80, host:8080
This network configuration can be successfully started.

Have you encountered such a problem, to seek salvation.

By the VirtualBox, the display has started.

2015.01.13 Supplement
The packaged version of Vagrant is 1.7.1 re-imported version is 1.7.2 but I changed back to 1.7.1 and I failed.

Search foreign questions and answers should be packaged when the network configuration problem, but my English is really slag, do not know how to solve the specific.

Reply content:

Only one configuration file was changed when packaging config.vm.network "Public_network", IP: "192.168.0.111", the other is the default

Re-import because 192.168.0.111 is already occupied, so I now change to 192.168.0.222 other or default configuration

Another point, if I enable # config.vm.network "Forwarded_port", guest:80, host:8080
This network configuration can be successfully started.

Have you encountered such a problem, to seek salvation.

By the VirtualBox, the display has started.

2015.01.13 Supplement
The packaged version of Vagrant is 1.7.1 re-imported version is 1.7.2 but I changed back to 1.7.1 and I failed.

Search foreign questions and answers should be packaged when the network configuration problem, but my English is really slag, do not know how to solve the specific.

The problem has been solved because I did not clear the network configuration when I packaged it.
This error occurs only after the vagrant ssh connection (I am using Git-bash with win),
After enteringrm /etc/udev/rules.d/70-persistent-net.rules
Reboot, and then vagrant up you'll be successful.
@Deloz Thank you, Deloz, for the help of the great God.

Online with code to clear the network configuration before packaging

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 yet ....

  • Related Article

    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.