Packer Vagrant box issues

61 views
Skip to first unread message

Jeffrey Bilbro

unread,
Aug 1, 2016, 11:49:11 AM8/1/16
to Packer
I have worked through building my first Vagrant and VMware images with Packer - super cool!  I'm now trying to create an internal Git repository with a Vagrantfile and am hosting the Vagrant .box file on an internal public Git repo, as well.  However, I'm having a problem when I try to do a 'vagrant up' from that Vagrant file.  I get the following error:

The box you're adding has a name different from the name you

requested. For boxes with metadata, you cannot override the name.

If you're adding a box using `vagrant box add`, don't specify

the `--name` parameter. If the box is being added via a Vagrantfile,

change the `config.vm.box` value to match the name below.


Requested name: foo/centos-7

Actual name: 


How do I get past this?  


My Vagrant file has these lines in it:


  config.vm.box = "foo/centos-7"

  config.vm.box_url = "https://foo.example.com/projects/INFRA/repos/images/browse/cent-7-vbox_v1.box"


Thanks!


-Jeff

Alvaro Miranda Aguilera

unread,
Aug 1, 2016, 3:30:39 PM8/1/16
to packe...@googlegroups.com
Hello, the name user/box is to be used with atlas.

Can you test as centos-7 for config.vm.box ?



--
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/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/8f5fd65e-ed3e-469a-a16e-e0ece0fa91ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Jeffrey Bilbro

unread,
Aug 1, 2016, 3:50:05 PM8/1/16
to Packer
Hi Alvaro-

I tried as you suggested and got the same error.  I did create a metadata.json file and tried pointing the vm.box_url to that file on my internal git server, but I get the same error:

The box you're adding has a name different from the name you

requested. For boxes with metadata, you cannot override the name.

If you're adding a box using `vagrant box add`, don't specify

the `--name` parameter. If the box is being added via a Vagrantfile,

change the `config.vm.box` value to match the name below.


Requested name: centos-7

Actual name: 

Reply all
Reply to author
Forward
0 new messages