Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Failed to run ssh provisioner #24

Open
leomao10 opened this issue Oct 16, 2018 · 0 comments
Open

Failed to run ssh provisioner #24

leomao10 opened this issue Oct 16, 2018 · 0 comments

Comments

@leomao10
Copy link

leomao10 commented Oct 16, 2018

Hi There,

I tried to use vagrant to startup the microsoftedge vms with virtualbox, and here is the vagrantfile I got:

Vagrant.configure("2") do |config|
  config.vm.box = "Microsoft/EdgeOnWindows10"
  config.vm.hostname = "localhost"
  config.vm.guest = :windows
  config.ssh.username = "IEUser"
  config.ssh.password = "Passw0rd!"
  config.ssh.insert_key = false
  config.vm.provider "virtualbox" do |virtualbox|
    virtualbox.gui = true
    virtualbox.memory = "2048"
  end
  config.vm.provision "shell", inline: <<-SCRIPT
    echo hello
    exit
  SCRIPT
end

With this vagrantfile, I can use vagrant up, but vagrant up --provision would always give me this error:

➜ vagrant up --provision
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Running provisioner: shell...
    default: Running: inline script
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

However, use vagrant ssh is working.

The vagrant version I am using is 2.1.5, and VM is 17.17134

btw, I also tried to use vagrant powershell, but it got following error:

Your host does not support PowerShell. A remote PowerShell connection
can only be made from a windows host.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant