vagrant-vsphere icon indicating copy to clipboard operation
vagrant-vsphere copied to clipboard

How to add a box for vagrant-vsphere

Open soorajp opened this issue 10 years ago • 3 comments

I am totally new to vagrant with vsphere and i am following the link https://github.com/nsidc/vagrant-vsphere to work with vagrant-vsphere

I am using the vagrant command

vagrant box add vsphere https://github.com/nsidc/vagrant-vsphere

to add the vsphere box and getting error

==> box: Adding box 'vsphere' (v0) for provider: box: Downloading: https://github.com/nsidc/vagrant-vsphere 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: Error opening archive: Unrecognized archive format

Please help me out Thanks Sooraj

soorajp avatar Apr 21 '14 07:04 soorajp

You should use git clone with that url and then use the tar cvzf dummy.box metadata.json to create the box.

marnovdm avatar Apr 29 '14 16:04 marnovdm

I've been using your plugin with my own created dummy.box per your instructions, but other cloud plugins (Rackspace, AWS) put a dummy.box in GitHub as well. I think this would make things easier for people to just refer back to this GitHub repo for the box when added. Your install instructions would be simpler too then. Just a humble suggestion...

dmulter avatar Aug 04 '14 21:08 dmulter

I could not get vagrant recognize the format of the dummy.box

I did run the tar cvzf dummy.box metadata.json (from example_box)

INFO box_add: Downloading box: file:/home/iqbala/vagrant/vsphere/dummy.box => /home/iqbala/.vagrant.d/tmp/box97889f4c4dd19cbbd15b248ae993807e8a5a4659 ERROR warden: Error occurred: invalid byte sequence in UTF-8 INFO warden: Beginning recovery process... INFO warden: Recovery complete. ERROR warden: Error occurred: invalid byte sequence in UTF-8 INFO warden: Beginning recovery process... INFO warden: Recovery complete. INFO environment: Running hook: environment_unload INFO runner: Preparing hooks for middleware sequence... INFO runner: 2 hooks defined. INFO runner: Running action: environment_unload #Vagrant::Action::Builder:0x00000003395140 /home/iqbala/.vagrant.d/gems/gems/json-1.8.3/lib/json/pure/parser.rb:116:in `skip': invalid byte sequence in UTF-8 (ArgumentError)

asifiqbal avatar Apr 01 '16 18:04 asifiqbal