流浪错误 /sbin/ifdown eth1 2> /dev/null for Alpine Linux v3.13

Vagrant error /sbin/ifdown eth1 2> /dev/null for Alpine Linux v3.13

只有在尝试使用 generic/alpine313 启动 Vagrant 时,我才遇到一个奇怪的问题,如果我将框更改为 generic/alpine312,它就像一个魅力。我确实需要 Alpine v3.13 而不是 v3.12。

Vagrant 文件:

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


Vagrant.configure("2") do |config|
  
  # Define Vagrant Box to be imported
  config.vm.box = "generic/alpine313"

  # We based our env on VirtualBox
  config.vm.provider "virtualbox"

  # Disable the installation of the host's VirtualBox Guest Additions on the guest system
  config.vbguest.auto_update = false

  # Run build script
  config.vm.provision 'shell' do |s|
    s.name = 'Starting configuration process'
    s.path = 'build.sh'
  end
  
  # Sync local to guest directory
  options = {
    type: 'nfs',
    rsync__args: ['--verbose', '--archive', '--delete', '-z', '--copy-links', '--chmod=ugo=rwX'],
    create: true,
    mount_options: [],
    nfs_udp: false
  }
  config.vm.synced_folder './', '/temp', options  

  # Create host-only network
  config.vm.network "private_network", type: "dhcp"

end

vagrant up 后出错:

==> default: Configuring and enabling network interfaces...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

/sbin/ifdown eth1 2> /dev/null

Stdout from the command:

Stderr from the command:

有什么建议吗?

找到解决方案和额外信息。

向 Vagrant 项目报告的问题:https://github.com/hashicorp/vagrant/issues/12247

带有修复的 PR:https://github.com/hashicorp/vagrant/pull/12181尚未 可用于 Vagrant v2.2.14)

按照下面的帖子手动修补 Alpine 的内置 Vagrant 插件可以解决问题,直到新版本发布:
https://github.com/hashicorp/vagrant/issues/12134