执行时vagrant up
出现此错误
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
/sbin/ip -o -0 addr | grep -v LOOPBACK | awk '{print $2}' | sed 's/://'
Stdout from the command:
Stderr from the command:
操作系统:13.5.1 (22G90)
Vagrant:2.4.0
提供商:vmware fusion 13
Vagrant 插件:vagrant-vmware-desktop (3.0.3, global)
Vagrantfile 显示如下
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "gyptazy/centos9-arm64"
config.vm.box_version = "1.0.0"
config.vm.network :private_network
config.vm.provider "vmware_desktop" do |v|
# # Display the VirtualBox GUI when booting the machine
v.gui = false
#
# # Customize the amount of memory on the VM:
v.vmx["memsize"] = "2048"
v.vmx["numvcpus"] = "2"
v.vmx["ethernet0.pcislotnumber"] = "160"
end
end
更多调试信息
DEBUG guest: Searching for cap: network_interfaces
DEBUG guest: Checking in: centos
DEBUG guest: Checking in: redhat
DEBUG guest: Checking in: linux
DEBUG guest: Found cap: network_interfaces in linux
INFO guest: Execute capability: network_interfaces [#<Vagrant::Machine: default (HashiCorp::VagrantVMwareDesktop::Provider)>] (centos)
DEBUG ssh: Re-using SSH connection.
INFO ssh: Execute: /sbin/ip -o -0 addr | grep -v LOOPBACK | awk '{print $2}' | sed 's/://' (sudo=true)
DEBUG ssh: stderr: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
DEBUG ssh: stderr: sudo
DEBUG ssh: stderr: :
DEBUG ssh: stderr: a password is required
DEBUG ssh: Exit status: 1
ERROR warden: Error occurred: The following SSH command responded with a non-zero exit status.
答案1
感谢您的报告。我偶然发现了这个问题。不幸的是,这是一个已知问题。但是,它对图像或这些图像的使用没有任何影响。您可以通过运行以下命令直接 ssh 进入框:
#> 流浪者 SSH
干杯!