pbolduc / packer-hyperv

Hyperv plugin for Packer.io
Other
13 stars 6 forks source link

Created box files do not have the correct structure #7

Closed pbolduc closed 9 years ago

pbolduc commented 9 years ago

When trying to create a VM using vagrant, the boxes do no have the required "Virtual Machines" and "Virtual Hard Disks" structure. Users will get the following error:

C:/HashiCorp/Vagrant/embedded/gems/gems/i18n-0.6.11/lib/i18n/config.rb:83:in `block in missing_interpolation_argument_handler': missing interpolation argument :
name in "The box you're using with the Hyper-V provider ('%{name}')\nis invalid. A Hyper-V box should contain both a\n\"Virtual Machines\" and a \"Virtual Hard
Disks\" folder that are\ncreated as part of exporting a Hyper-V machine.\n\nWithin these directories, Vagrant expects to find the\nvirtual machine configuration
 as well as the root hard disk.\n\nThe box you're attempting to use is missing one or both of\nthese directories or does not contain the files expected. Verify\
nthat you added the correct box. If this problem persists,\nplease contact the creator of the box for assistance." ({:_key=>:box_invalid, :_namespace=>"vagrant_
hyperv.errors"} given) (I18n::MissingInterpolationArgument)
pbolduc commented 9 years ago

This is related to a packer issue.

pbolduc commented 9 years ago

With the patch applied to Packer, this item will be closed. Replace the included packer-post-processor-vagrant.exe in your packer binary directory to create a valid box.