vagrant up command giving error and eth1 not showing a resolvable ip address

后端 未结 2 1095
名媛妹妹
名媛妹妹 2021-01-16 20:43

I am new to VMs, but have been using vagrant to run a Centos VM on Ubuntu 14.04. All of a sudden vagrant up command is giving this error:

root@         


        
相关标签:
2条回答
  • 2021-01-16 21:10

    This seems to be happen with bootup network configurations.

    Although it failed to bring-up the network interface, you should be able to ssh into the box. To remove persistent network interfaces execute following commands in vagrant box folder.

    vagrant ssh
    sudo rm /etc/udev/rules.d/70-persistent-net.rules
    exit
    vagrant reload
    

    source: https://github.com/mitchellh/vagrant/issues/921#issuecomment-15789964

    0 讨论(0)
  • 2021-01-16 21:20

    It turns out that eth2 is the adapter to connect the Virtual-box directly to the outside Internet, so commenting out

    config.vm.network :public_network
    

    from the VagrantFile stopped the public network interfaces being loaded and so solved the issue.

    0 讨论(0)
提交回复
热议问题