hello

i think the file need to be tar

you can try to inspect an existing hyper-v vm and test repackage it

here is one example:

https://vagrantcloud.com/hashicorp/boxes/bionic64/versions/1.0.282/providers/hyperv.box




kikitux@nuc8:~/Downloads$ mkdir h


kikitux@nuc8:~/Downloads$ cd h

kikitux@nuc8:~/Downloads/h$ tar zxvf ../hyperv.box


metadata file is quite simple







cat metadata.json

{"provider":"hyperv"}


alvaro


On Fri, Mar 20, 2020 at 1:10 AM Ariel JGS <ariel...@gmail.com> wrote:

> Hello, I've been trying to make a new Hyper-V box but I don't know what am
> I doing wrong, I'm following the steps in the documentation and I'm not
> sure where is the mistake. I made a debian VM with Hyper-V, it has 1 GB
> RAM, 100GB hard disk, user vagrant with password vagrant, same with root, I
> installed the hyperv-daemons so the VM reports its IP address in the
> "networking" tab. I exported my VM and it generated 3 folders: Snapshots,
> Virtual Hard Disks and Virtual Machines. I deleted Snapshots and created a
> metadata.json file with the following information:
>
> {
>   "name": "arieljgs/debian10",
>   "description": "This box contains Debian 10.03 CLI 64-bit.",
>   "versions": [
>     {
>       "version": "1.0",
>       "providers": [
>         {
>           "name": "hyperv",
>         }
>       ]
>     }
>   ]}
>
>
> Then I added everything to a .zip file, including the .json file. After
> that I used the command vagrant box add --name arieljgs/debian10
> "D:\Vagrant Boxes\Debian 10.3.0 CLI\Debian 10.3.0 CLI.zip" and I'm getting
> the following error:
>
> The metadata associated with the box 'arieljgs/debian10' appears corrupted.
> This is most often caused by a disk issue or system crash. Please
> remove the box, re-add it, and try again.
>
> Does anyone know what's happening here? Any help will be appreciated
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> 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 vagrant-up+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/671e0ac5-7e87-40cc-98a6-ac5be6abf435%40googlegroups.com
> <https://groups.google.com/d/msgid/vagrant-up/671e0ac5-7e87-40cc-98a6-ac5be6abf435%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Alvaro

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
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 vagrant-up+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/CAHqq0ew90-RFYB%3Dw29U6kEGUSRDvMesxn2Ryd50CjtKJqw1rYw%40mail.gmail.com.

Reply via email to