I think this problem has to do with the way you are creating the box file. You seem to be using the zip format rather than the tar format. If using 7za try using the -tar switch? Rob.
On Wednesday, 22 October 2014 02:31:21 UTC+10, Jafar Soltani wrote: > > Hello, > I have problems creating Win2012R2 base box for HyperV. When I try to > package the VM I get following output: > > G:\>tar cvzf winbox2.box ".\Windows Server VM\ChefNodeWS01" > a ./Windows Server VM/ChefNodeWS01 > a ./Windows Server VM/ChefNodeWS01/metadata.json > a ./Windows Server VM/ChefNodeWS01/Virtual Hard Disks > a ./Windows Server VM/ChefNodeWS01/Virtual Machines > a ./Windows Server VM/ChefNodeWS01/Virtual > Machines/01E31B44-CB35-4579-A73A-03AEADAEFFDE > a ./Windows Server VM/ChefNodeWS01/Virtual > Machines/01E31B44-CB35-4579-A73A-03AEADAEFFDE.XML > a ./Windows Server VM/ChefNodeWS01/Virtual > Machines/01E31B44-CB35-4579-A73A-03AEADAEFFDE/01E31B44-CB35-4579-A73A-03AEADAEFFDE.bin > a ./Windows Server VM/ChefNodeWS01/Virtual > Machines/01E31B44-CB35-4579-A73A-03AEADAEFFDE/01E31B44-CB35-4579-A73A-03AEADAEFFDE.vsv > a ./Windows Server VM/ChefNodeWS01/Virtual Hard > Disks/ChefNodeWS01.vhdxtar: ./Windows Server VM/ChefNodeWS01/Virtual Hard > Disks/ChefNodeWS01.vhdx: Truncated write; file may have grown while being > archived. > > a ./Windows Server VM/ChefNodeWS01/Virtual Hard > Disks/ChefNodeWS01_B6E4E8AF-1736-4956-96A9-3530CB7E4409.avhdx > > So instead I went ahead and created a zip file using 7zip. The size of > vhdx is about 50GB, not sure if this is the reason. > When trying to add the box that's packaged with *vagrant box add > ChefNodeWS01 G:\vagrant_my_win\ChefNodeWS01.zip --debug* command, I get > following output > > INFO interface: detail: box: Progress: 100% (Rate: 71.8M/s, Estimated > time remaining: --:--:--) > box: Progress: 100% (Rate: 71.8M/s, Estimated time remaining: > --:--:--)DEBUG subprocess: Waiting for process to exit > . Remaining to timeout: 31602 > DEBUG subprocess: Exit status: 0 > INFO interface: info: > INFO interface: detail: > INFO interface: detail: box: > box: > DEBUG box_collection: Adding box: ChefNodeWS01 (any provider) from > C:/Users/jafarr/.vagrant.d/tmp/box8a3f82114d3a84fb5a95c0179ab37b1b4f341444 > DEBUG box_collection: Unpacking box into temporary directory: > C:/Users/jafarr/.vagrant.d/tmp/vagrant-box-add-temp-20141021-4496-ujz4xq > INFO subprocess: Starting process: > ["C:\\HashiCorp\\Vagrant\\embedded\\gnuwin32\\bin/bsdtar.EXE", "-v", "-x", > "-m", "-C", > "C:/Users/jafarr/.vagrant.d/tmp/vagrant-box-add-temp-20141021-4496-ujz4xq", > "-f", > "C:/Users/jafarr/.vagrant.d/tmp/box8a3f82114d3a84fb5a95c0179ab37b1b4f341444"] > DEBUG subprocess: Selecting on IO > DEBUG subprocess: stderr: bsdtar.EXE: Invalid central directory signature > bsdtar.EXE: Error exit delayed from previous errors. > DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31995 > DEBUG subprocess: Exit status: 1 > DEBUG box_add: Deleting temporary box: > C:/Users/jafarr/.vagrant.d/tmp/box8a3f82114d3a84fb5a95c0179ab37b1b4f341444 > ERROR warden: Error occurred: The box failed to unpackage properly. Please > verify that the box > file you're trying to add is not corrupted and try again. Theoutput from > attempting to unpackage (if any): > > bsdtar.EXE: Invalid central directory signature > bsdtar.EXE: Error exit delayed from previous errors. > > INFO warden: Beginning recovery process... > INFO warden: Recovery complete. > INFO environment: Running hook: environment_unload > INFO runner: Preparing hooks for middleware sequence... > INFO runner: 1 hooks defined. > INFO runner: Running action: #<Vagrant::Action::Builder:0x475b78> > ERROR vagrant: Vagrant experienced an error! Details: > ERROR vagrant: #<Vagrant::Errors::BoxUnpackageFailure: The box failed to > unpackage properly. Please verify that the box file you're trying to add is > not corrupted and try again. The output from attempting to unpackage (if > any): > > bsdtar.EXE: Invalid central directory signature > bsdtar.EXE: Error exit delayed from previous errors. > > > ERROR vagrant: The box failed to unpackage properly. Please verify that > the box > file you're trying to add is not corrupted and try again. The > output from attempting to unpackage (if any): > > bsdtar.EXE: Invalid central directory signature > bsdtar.EXE: Error exit delayed from previous errors. > > ERROR vagrant: > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/box_collection.rb:118:in > > `block (2 leve > ls) in add' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/box_collection.rb:436:in > > `with_temp_dir' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/box_collection.rb:112:in > > `block in add' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/box_collection.rb:423:in > > `block in with_collection_loc > k' > C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/monitor.rb:211:in > `mon_synchronize' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/box_collection.rb:422:in > > `with_collection_lock' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/box_collection.rb:101:in > > `add' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/builtin/box_add.rb:337:in > > `box_add' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/builtin/box_add.rb:130:in > > `add_direct' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/builtin/box_add.rb:106:in > > `call' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/warden.rb:34:in > > `call' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/builder.rb:116:in > > `call' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/runner.rb:66:in > > `block in run' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/util/busy.rb:19:in > > `busy' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/runner.rb:66:in > > `run' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/commands/box/command/add.rb:85:in > > `execute' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/commands/box/command/root.rb:61:in > > `execute' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/cli.rb:42:in > > `execute' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:292:in > > `cli' > C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/bin/vagrant:174:in > `<main>' > INFO interface: error: The box failed to unpackage properly. Please > verify that the box > file you're trying to add is not corrupted and try again. The > output from attempting to unpackage (if any): > > bsdtar.EXE: Invalid central directory signature > bsdtar.EXE: Error exit delayed from previous errors. > > The box failed to unpackage properly. Please verify that the box > file you're trying to add is not corrupted and try again. The > output from attempting to unpackage (if any): > > bsdtar.EXE: Invalid central directory signature > bsdtar.EXE: Error exit delayed from previous errors. > INFO interface: Machine: error-exit > ["Vagrant::Errors::BoxUnpackageFailure", "The box failed to unpackage > properly. Ple > ase verify that the box\nfile you're trying to add is not corrupted and > try again. The\noutput from attempting to unpack > age (if any):\n\nbsdtar.EXE: Invalid central directory > signature\r\nbsdtar.EXE: Error exit delayed from previous errors. > \r\n"] > > Any helps would be very much appreciated. > -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
