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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Show comment
Hide comment
@mitchellh

mitchellh Jul 1, 2013

Member

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.

Member

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

This comment has been minimized.

Show comment
Hide comment
@mitchellh

mitchellh Jul 8, 2013

Member

This should be fixed in the next version.

Member

mitchellh commented Jul 8, 2013

This should be fixed in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment