Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant hangs on Windows 7

Tags:

vagrant

vagrant up seems to hang on Windows 7

My Vagrant file

VAGRANTFILE_API_VERSION = "2"

ENV['VAGRANT_DEFAULT_PROVIDER'] = 'docker'

Vagrant.configure("2") do |config|

  config.vm.network "forwarded_port", guest: 80, host: 8080, auto_correct: true

  config.vm.define "elk" do |elk|
    elk.vm.synced_folder "./www", "/var/www"
    elk.vm.provider "docker" do |d|
      d.build_dir = "./Docker"
    end
  end
end

vagrant up --debug

==> elk: Syncing folders to the host VM...
 INFO machine: Calling action: sync_folders on provider VirtualBox (3c7dc34c-6fcf-4ace-87d1-0602b664e783)
DEBUG environment: Attempting to acquire process-lock: machine-action-740c202843bdf6334148bb69e000ec99
DEBUG environment: Attempting to acquire process-lock: dotlock
 INFO environment: Acquired process lock: dotlock
 INFO environment: Released process lock: dotlock
 INFO environment: Acquired process lock: machine-action-740c202843bdf6334148bb69e000ec99
 INFO environment: Released process lock: machine-action-740c202843bdf6334148bb69e000ec99
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x3786018>
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::SyncedFolders:0x38079d8>
 INFO subprocess: Starting process: ["C:\\windows\\System32\\WindowsPowerShell\\v1.0\\/powershell.EXE", "-NoProfile", "-ExecutionPolicy", "Bypass", "$PSVersionTable.PSVersion.Major"]
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: 2
like image 521
DarVar Avatar asked Jul 29 '14 10:07

DarVar


People also ask

Why are my vagrant commands hanging on Windows?

If Vagrant commands are hanging on Windows because they're communicating to VirtualBox, this may be caused by a permissions issue with VirtualBox. This is easy to fix. Starting VirtualBox as a normal user or as an administrator will prevent you from using it in the opposite way.

How to install vagrant on Windows?

Installing Vagrant is extremely easy. Head over to the Vagrant downloads page and get the appropriate installer or package for your platform. Install the package using standard procedures for your operating system.

What are some common issues with Vagrant and VirtualBox?

This page lists some common issues people run into with Vagrant and VirtualBox as well as solutions for those issues. If Vagrant commands are hanging on Windows because they're communicating to VirtualBox, this may be caused by a permissions issue with VirtualBox.

How long does it take to start Vagrant on VirtualBox?

This runs with normal speed (~ 30 seconds for the startup). 4- Run vagrant ssh to login. This now runs slow with ~ 5-10 minutes for the login. Stop the VirtualBox image with the VirtualBox UI ( vagrant halt needs too much time). Run vagrant up again. Are there any other GitHub issues (open or closed) that should be linked here?


1 Answers

Found related vagrant issue here: https://github.com/mitchellh/vagrant/issues/3139

Updating powershell to v3.0 solved the issue: http://www.microsoft.com/en-us/download/details.aspx?id=34595

like image 84
DarVar Avatar answered Oct 04 '22 03:10

DarVar