MicrosoftEdge / dev.microsoftedge.com-vms

Scripts used to generate the free VMs available at https://dev.microsoftedge.com
MIT License
81 stars 22 forks source link

Failed to run ssh provisioner #24

Open leomao10 opened 5 years ago

leomao10 commented 5 years ago

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.