Ошибка бродяги /sbin/ifdown eth1 2> /dev/null для Alpine Linux v3.13

#linux #vagrant #virtual-machine #alpine

Вопрос:

Я сталкиваюсь со странной проблемой только при попытке загрузки с помощью Vagrant generic/alpine313 , если я изменю флажок, чтобы generic/alpine312 он работал как заклинание. Мне действительно нужен Alpine v3.13 вместо v3.12.

Файл бродяги:

 # -*- 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:
 

Есть какие-нибудь предложения?

Ответ №1:

Найдено решение и дополнительная информация.

Проблема, сообщенная проекту Vagrant: https://github.com/hashicorp/vagrant/issues/12247

Пиар с исправлением: https://github.com/hashicorp/vagrant/pull/12181 (Еще не доступен с Vagrant v2.2.14)

Ручное исправление встроенного плагина Vagrant для Alpine в соответствии с приведенной ниже темой решает проблему до тех пор, пока вместе с ним не будет выпущена новая версия:
https://github.com/hashicorp/vagrant/issues/12134