сбой с помощью поставщика оболочки в Mac - PullRequest
0 голосов
/ 16 сентября 2018

У меня есть виртуальная коробка vagrant (bento / ubuntu-18.04) в Ubuntu 18.04, которая работает нормально (https://github.com/rajcspsg/VBoxes/tree/master/Kafka-schema-registry).

В Mac OS не работает та же коробка.

Ошибка -

$ vagrant up
Bringing machine 'zookeeper1' up with 'virtualbox' provider...
==> zookeeper1: Importing base box 'bento/ubuntu-18.04'...
==> zookeeper1: Matching MAC address for NAT networking...
==> zookeeper1: Checking if box 'bento/ubuntu-18.04' is up to date...
==> zookeeper1: Setting the name of the VM: kafka-platform_zookeeper1_1537124362203_1672
==> zookeeper1: Fixed port collision for 22 => 2222. Now on port 2201.
==> zookeeper1: Clearing any previously set network interfaces...
==> zookeeper1: Preparing network interfaces based on configuration...
    zookeeper1: Adapter 1: nat
    zookeeper1: Adapter 2: hostonly
==> zookeeper1: Forwarding ports...
    zookeeper1: 22 (guest) => 2201 (host) (adapter 1)
==> zookeeper1: Running 'pre-boot' VM customizations...
==> zookeeper1: Booting VM...
==> zookeeper1: Waiting for machine to boot. This may take a few minutes...
    zookeeper1: SSH address: 127.0.0.1:2201
    zookeeper1: SSH username: vagrant
    zookeeper1: SSH auth method: private key
    zookeeper1:
    zookeeper1: Vagrant insecure key detected. Vagrant will automatically replace
    zookeeper1: this with a newly generated keypair for better security.
    zookeeper1:
    zookeeper1: Inserting generated public key within guest...
    zookeeper1: Removing insecure key from the guest if it's present...
    zookeeper1: Key inserted! Disconnecting and reconnecting using new SSH key...
==> zookeeper1: Machine booted and ready!
==> zookeeper1: Checking for guest additions in VM...
    zookeeper1: The guest additions on this VM do not match the installed version of
    zookeeper1: VirtualBox! In most cases this is fine, but in rare cases it can
    zookeeper1: prevent things such as shared folders from working properly. If you see
    zookeeper1: shared folder errors, please make sure the guest additions within the
    zookeeper1: virtual machine match the version of VirtualBox you have installed on
    zookeeper1: your host and reload your VM.
    zookeeper1:
    zookeeper1: Guest Additions Version: 5.2.18
    zookeeper1: VirtualBox Version: 5.1
==> zookeeper1: Setting hostname...
==> zookeeper1: 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' || true
/sbin/ip addr flush dev 'eth1'
# Remove any previous network modifications from the interfaces file
sed -e '/^#VAGRANT-BEGIN/,$ d' /etc/network/interfaces > /tmp/vagrant-network-interfaces.pre
sed -ne '/^#VAGRANT-END/,$ p' /etc/network/interfaces | tac | sed -e '/^#VAGRANT-END/,$ d' | tac > /tmp/vagrant-network-interfaces.post

cat \
  /tmp/vagrant-network-interfaces.pre \
  /tmp/vagrant-network-entry \
  /tmp/vagrant-network-interfaces.post \
  > /etc/network/interfaces

rm -f /tmp/vagrant-network-interfaces.pre
rm -f /tmp/vagrant-network-entry
rm -f /tmp/vagrant-network-interfaces.post

/sbin/ifup 'eth1'

Stdout from the command:

Stderr from the command:

bash: line 4: /sbin/ifdown: No such file or directory
bash: line 20: /sbin/ifup: No such file or directory

Если я прокомментирую положение оболочки , виртуальная коробка также будет работать нормально. Я не уверен, почему предоставление оболочки вызывает сбой коробки при запуске.

Любое предположение, почему я получаю эту ошибку.

...