我想在带有Vagrant的OSX上运行基本的Windows guest虚拟机,但我一直遇到认证失败的问题

时间:2019-01-22 10:36:08

标签: windows macos vagrant

我正在尝试在OSX主机上运行Windows 10 guest虚拟机。

我已经安装了最新版本的Vagrant VirtualBox。我设置了一个非常基本的Vagrantfile,如下所示:

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

Vagrant.configure("2") do |config|
  config.vm.box = "Microsoft/EdgeOnWindows10"
  config.vm.box_version = "1.0"
end

当我尝试通过执行“ vagrant up”来启动Vagrant时,得到以下控制台输出,该输出以无休止的一系列身份验证失败错误消息结束。

TCR-C02X29QPJHC9:automation salimfadhley$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'Microsoft/EdgeOnWindows10'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'Microsoft/EdgeOnWindows10' version '1.0' is up to date...
==> default: Setting the name of the VM: automation_default_1548152471264_36082
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2200 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2200
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...

我不需要Edge-我只需要Windows并可能需要一些dot-Net运行时。我想先启动并运行任何Windows映像。

1 个答案:

答案 0 :(得分:0)

您可能只需要在Vagrantfile中使用以下内容:

config.vm.communicator = "winrm"

此选项的描述here,您可以使用列出的here进一步配置winrm