我正在尝试启动一个无用的盒子,但我一直在遇到网络冲突错误。此框是trusty64的全新下载。我一直在搜索处理无业游民的每个文件和文件夹,试图找到某些我无法指定的IP。我正在Windows 7机器上运行无业游民。这是我的Vagrantfile:

C:\ Users \ .vagrant \ boxes ... \ Vagrantfile

Vagrant::Config.run do |config|
  # This Vagrantfile is auto-generated by 'vagrant package' to contain
  # the MAC address of the box. Custom configuration should be placed in
  # the actual 'Vagrantfile' in this box.
  config.vm.base_mac = "0800278493DB"
end

# Load include vagrant file if it exists after the auto-generated
# so it can override any of the settings
include_vagrantfile = File.expand_path("../include/_Vagrantfile", __FILE__)
load include_vagrantfile if File.exist?(include_vagrantfile)


这是我从无业游民命令中收到的错误:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set network interfaces...
The specified host network collides with a non-hostonly network!
This will cause your specified IP to be inaccessible. Please change
the IP or name of your host only network so that it no longer matches that of
a bridged or non-hostonly network.


如何使我的虚拟机上的IP不冲突?

更新

我的Vagrantfile的图片

vagrant -  Vagrant 的网络与非主机网络冲突-LMLPHP

最佳答案

检查LAN连接上的IP,并确保没有设备与Vagrantfile上的IP冲突。

我收到此错误,我在笔记本电脑的wifi上设置了192.168.1.2,并且在Vagrantfile上设置了192.168.1.10。因此,我将Vagrantfile上的IP更改为192.168.2.10,以确保它不会与网络上的任何设备冲突。

关于vagrant - Vagrant 的网络与非主机网络冲突,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/39049717/

10-16 19:00