为什么可以';我不能用ubuntu/wily64安装一个流浪汉盒子吗?(联网问题)

为什么可以';我不能用ubuntu/wily64安装一个流浪汉盒子吗?(联网问题),ubuntu,networking,vagrant,virtualbox,ubuntu-15.10,Ubuntu,Networking,Vagrant,Virtualbox,Ubuntu 15.10,当我尝试使用ubuntu/wily64框创建一个Vagrant实例时,当我尝试Vagrant ssh或Vagrant provision时,它会挂起(在较旧版本的ubuntu中工作正常)。我很确定我有一个,因为一个。我已经成功地进行了中建议的更改 (我使用的是Vagrant 1.8和Vbox 5.0.10) 我所做的: 创建了一个Vagrant框,然后修改了/etc/network/interfaces.d/*.cfg文件,如第二部分所述: 首先,确定新接口的名称。你可以跑 ifconfig-a

当我尝试使用
ubuntu/wily64
框创建一个Vagrant实例时,当我尝试
Vagrant ssh
Vagrant provision
时,它会挂起(在较旧版本的ubuntu中工作正常)。我很确定我有一个,因为一个。我已经成功地进行了中建议的更改

(我使用的是Vagrant 1.8和Vbox 5.0.10)

我所做的:

创建了一个Vagrant框,然后修改了/etc/network/interfaces.d/*.cfg文件,如第二部分所述:

首先,确定新接口的名称。你可以跑 ifconfig-a或检查dmesg(即dmesg | grep重命名)中的行 这:

[2.671805]e1000 0000:00:03.0 enp0s3:从eth0重命名

在本例中,新接口名为enp0s3

确定新接口名称后,转到 /etc/网络/接口。应该有一个名为eth0.cfg的文件 以下内容:

#主网络接口
自动eth0
iface eth0 inet dhcp

现在将eth0.cfg复制到enp0s3.cfg(或任何接口名称) 是)。编辑新文件,并用enp0s3替换eth0的所有用法。做 这适用于需要配置的每个接口。删除eth0.cfg时 完成了

最后,使用sudo systemctl restart重新启动网络 网络服务

我尝试了两个选项:只修改
eth0
接口,然后同时修改
eth1
eth0
接口(请参见下面的注释1)。当我只修改
eth0
时,我可以
vagrant ssh
,但不能
vagrant halt
然后
vagrant up
而不获得超时。或者,当我修改
eth0
eth1
时,vagrant up将通过ssh超时,但随后我看到此行为(请参见下面的注释2):

注意#1:从裸
vagrant init
执行
vagrant up
时,不会创建
eth1
接口。这似乎是因为我在使用私人网络而创建的)
注意#2:我正在为重命名的
eth1
创建一个文件,因为该文件不存在

问题:鉴于我所采取的步骤以及该帖子中的信息,我接下来可以做什么来调试此问题?

流浪汉档案

# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  # All Vagrant configuration is done here. The most common configuration
  # options are documented and commented below. For a complete reference,
  # please see the online documentation at vagrantup.com.

  config.dns.tld = "dev"
  config.vm.box = "ubuntu/wily64"
  config.vm.box_check_update = false
  config.vm.synced_folder ".", "/vagrant", disabled: true

  config.vm.define "wharf" do |wharf|
    wharf.vm.network :forwarded_port, guest: 80, host: 8080
    wharf.vm.network :private_network, ip: "192.168.33.10"
    wharf.vm.synced_folder ".", "/opt/wharf", create: true
    wharf.vm.hostname = "wharf"
    wharf.dns.patterns = [/^wharf.dev$/, /^shipyard.dev$/, /^.*demo.dev$/]

    wharf.vm.provider :virtualbox do |vb|
        # Use VBoxManage to customize the VM. For example to change memory:
        vb.customize ["modifyvm", :id, "--memory", "1024"]
    end
    wharf.vm.provision "ansible" do |ansible|
        ansible.playbook = "deploy/vagrant_site.yml"
        ansible.inventory_path = "deploy/hosts/vagrant/inventory"
        ansible.sudo = true
        ansible.verbose = 'vvvv'
    end
  end

  config.vm.define "wharfhouse" do |wharfhouse|
    wharfhouse.vm.network :private_network, ip: "192.168.33.20"
    wharfhouse.vm.hostname = "wharfhouse"

    wharfhouse.vm.provider :virtualbox do |vb|
        # Use VBoxManage to customize the VM. For example to change memory:
        vb.customize ["modifyvm", :id, "--memory", "1024"]
    end
    wharfhouse.vm.provision "ansible" do |ansible|
        ansible.playbook = "deploy/site.yml"
        ansible.inventory_path = "deploy/hosts/vagrant/inventory"
        ansible.sudo = true
        ansible.verbose = 'vvvv'
    end
  end
end

这里有一些建议的解决方案(已经为一些人提供了解决方案):
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  # All Vagrant configuration is done here. The most common configuration
  # options are documented and commented below. For a complete reference,
  # please see the online documentation at vagrantup.com.

  config.dns.tld = "dev"
  config.vm.box = "ubuntu/wily64"
  config.vm.box_check_update = false
  config.vm.synced_folder ".", "/vagrant", disabled: true

  config.vm.define "wharf" do |wharf|
    wharf.vm.network :forwarded_port, guest: 80, host: 8080
    wharf.vm.network :private_network, ip: "192.168.33.10"
    wharf.vm.synced_folder ".", "/opt/wharf", create: true
    wharf.vm.hostname = "wharf"
    wharf.dns.patterns = [/^wharf.dev$/, /^shipyard.dev$/, /^.*demo.dev$/]

    wharf.vm.provider :virtualbox do |vb|
        # Use VBoxManage to customize the VM. For example to change memory:
        vb.customize ["modifyvm", :id, "--memory", "1024"]
    end
    wharf.vm.provision "ansible" do |ansible|
        ansible.playbook = "deploy/vagrant_site.yml"
        ansible.inventory_path = "deploy/hosts/vagrant/inventory"
        ansible.sudo = true
        ansible.verbose = 'vvvv'
    end
  end

  config.vm.define "wharfhouse" do |wharfhouse|
    wharfhouse.vm.network :private_network, ip: "192.168.33.20"
    wharfhouse.vm.hostname = "wharfhouse"

    wharfhouse.vm.provider :virtualbox do |vb|
        # Use VBoxManage to customize the VM. For example to change memory:
        vb.customize ["modifyvm", :id, "--memory", "1024"]
    end
    wharfhouse.vm.provision "ansible" do |ansible|
        ansible.playbook = "deploy/site.yml"
        ansible.inventory_path = "deploy/hosts/vagrant/inventory"
        ansible.sudo = true
        ansible.verbose = 'vvvv'
    end
  end
end