aidanns / vagrant-reload

A plugin that allows you to reload a Vagrant plugin as a provisioning step.
MIT License
175 stars 37 forks source link

config.vm.provision :reload with synced_folder results in "Stdout: Error: Already exists" #8

Open mlintonford opened 8 years ago

mlintonford commented 8 years ago

Vagrant version: 1.8.4

Vagrant plugins list: vagrant-proxyconf (1.5.2) vagrant-reload (0.0.1) vagrant-share (1.1.5, system) vagrant-vmware-workstation (4.0.9)

PS C:\folder\vagrant> vagrant up
Bringing machine 'default' up with 'vmware_workstation' provider...
==> default: Cloning VMware VM: 'WindowsServer_2012_R2_x64.box'. This can take some time...
==> default: Checking if box 'WindowsServer_2012_R2_x64.box' is up to date...
==> default: Verifying vmnet devices are healthy...
==> default: Preparing network adapters...
==> default: Starting the VMware VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: WinRM address: 192.168.70.137:5985
    default: WinRM username: Administrator
    default: WinRM execution_time_limit: PT2H
    default: WinRM transport: negotiate
==> default: Machine booted and ready!
==> default: Forwarding ports...
    default: -- 5985 => 55985
    default: -- 5986 => 55986
    default: -- 22 => 2222
==> default: Configuring network adapters within the VM...
==> default: Configuring secondary network adapters through VMware
==> default: on Windows is not yet supported. You will need to manually
==> default: configure the network adapter.
==> default: Configuring proxy environment variables...
==> default: Enabling and configuring shared folders...
    default: -- C:/folder/vagrant: /vagrant
==> default: Running provisioner: shell...
    default: Running: InstallWindowsFeatures.ps1 as c:\tmp\vagrant-shell.ps1
==> default: Running provisioner: reload...
==> default: Attempting graceful shutdown of VM...
==> default: Checking if box 'WindowsServer_2012_R2_x64.box' is up to date...
==> default: Verifying vmnet devices are healthy...
==> default: Preparing network adapters...
==> default: Starting the VMware VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: WinRM address: 192.168.70.137:5985
    default: WinRM username: Administrator
    default: WinRM execution_time_limit: PT2H
    default: WinRM transport: negotiate
==> default: Machine booted and ready!
==> default: Forwarding ports...
    default: -- 5985 => 55985
    default: -- 5986 => 55986
    default: -- 22 => 2222
==> default: Configuring network adapters within the VM...
==> default: Configuring secondary network adapters through VMware
==> default: on Windows is not yet supported. You will need to manually
==> default: configure the network adapter.
==> default: Configuring proxy environment variables...
==> default: Enabling and configuring shared folders...
    default: -- C:/Projects/trunk/Operations/Infrastructure/DNSServer/vagrant: /vagrant
An error occurred while executing `vmrun`, a utility for controlling
VMware machines. The command and output are below:

Command: ["addSharedFolder", "C:/folder/vagrant/.vagrant/machines/default/vm
ware_workstation/2eb529ed-1bd2-4224-b157-f8a0915f20f4/packer-vmware-iso.vmx", "-vagrant", "C:\\folder\\vagrant", {:notify=>[:stdout, :stderr]}]

Stdout: Error: Already exists

Stderr:
PS C:\folder\vagrant>

Expected Result: synced_folder is seamlessly operational after reload

jebegin commented 8 years ago

I'm seeing the same issue too: $ vagrant --version Vagrant 1.8.4

$ vagrant plugin list vagrant-address (0.3.1) vagrant-reload (0.0.1) vagrant-share (1.1.5, system) vagrant-vmware-workstation (4.0.10) vagrant-winrm (0.7.0)

Trying to bring up a Windows 7 VMWare box. An error occurred while executing vmrun, a utility for controlling VMware machines. The command and output are below:

Command: ["addSharedFolder", "C:/Users/jebegin/PycharmProjects/cats/vagrant/boxes/windows/win-some/.vagrant/machines/win-some/vmware_workstation/313debaf-7e34-4695-98b2-2fca40453aee/win7x64-enterprise.vmx", "-vagrant", "C:\Users\jebegin\PycharmProjects\cats\vagrant\boxes\windows\win-some", {:notify=>[:stdout, :stderr]}]

Stdout: Error: Already exists

Stderr: