Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant post processor fails for VirtualBox VM on Windows #100

Closed
thasmo opened this issue Jul 1, 2013 · 2 comments
Closed

Vagrant post processor fails for VirtualBox VM on Windows #100

thasmo opened this issue Jul 1, 2013 · 2 comments

Comments

@thasmo
Copy link

@thasmo thasmo commented Jul 1, 2013

The following error comes up:

==> virtualbox: Running post-processor: vagrant
==> virtualbox (vagrant): Creating Vagrant box for 'virtualbox' provider
    virtualbox (vagrant): Copying: output-virtualbox\packer-disk1.vmdk
    virtualbox (vagrant): Copying: output-virtualbox\packer.ovf
    virtualbox (vagrant): Renaming the OVF to box.ovf...
Build 'virtualbox' errored: 1 error(s) occurred:

* Post-processor failed: rename C:\Users\thasmo\Dropbox\Applications\PortableApps\CygwinPortable\App\Cygwin\tmp\packer565554019\packer.ovf C:\Users\thasmo\Dropbox\Applications\PortableApps\CygwinPortable\App\Cygwin\tmp\packer565554019\box.ovf: Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.

==> Some builds didn't complete successfully and had errors:
--> virtualbox: 1 error(s) occurred:

* Post-processor failed: rename C:\Users\thasmo\Dropbox\Applications\PortableApps\CygwinPortable\App\Cygwin\tmp\packer565554019\packer.ovf C:\Users\thasmo\Dropbox\Applications\PortableApps\CygwinPortable\App\Cygwin\tmp\packer565554019\box.ovf: Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.

==> Builds finished but no artifacts were created.
@mitchellh
Copy link
Member

@mitchellh mitchellh commented Jul 1, 2013

Ahhhh Windows. Right. On Windows you can't rename a file while ANY file handles are open. Somewhere in Packer, a file handle is being held open for this file.

@mitchellh
Copy link
Member

@mitchellh mitchellh commented Jul 8, 2013

This should be fixed in the next version.

@mitchellh mitchellh closed this Jul 8, 2013
@hashicorp hashicorp locked and limited conversation to collaborators Apr 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants