Reputation: 23
I have made package of vagrant box through vagrant package command and I want to distribute that newly made vagrant box to every developers currently working in my team. The problem is that I do not want that every developer should install vagrant in it. I just want that the vagrant box which I have shared will get open through the user interface of virtual box or any virtual machine currently installed.
how could I achieve this goal??
Here is my error when I just try to open the vagrant.box through the virtual box
enter Failed to open the optical disk file /home/sandeep/vagrant image/ldapclient.box.
Could not get the storage format of the medium '/home/sandeep/vagrant image/ldapclient.box' (VERR_NOT_SUPPORTED).
Result Code: VBOX_E_IPRT_ERROR (0x80BB0005)
Component: Medium
Interface: IMedium {05f2bbb6-a3a6-4fb9-9b49-6d0dda7142ac}
Callee: IVirtualBox {fafa4e17-1ee2-4905-a10e-fe7c18bf5554}
Callee RC: VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)code here
Upvotes: 2
Views: 790
Reputation: 4575
a .box
is just a tar file with some metadata and provider specific files inside.
It's not a Virtualbox supported format.
In your case, I'm not sure why you even use Vagrant (since you can just use Virtualbox's export function). But if you insist, all you have to do is to extract the files from the .box file and import into Virtualbox the .ovf
& .vmdk
files
Step by step guide how to extract .box
file and run it in Virtualbox:
.box
is just a tar/tar.gz/zip file, so use utilities like 7-zip, unzip or tar to extract the files (depends on your OS).ubuntu\trusty64
box as example):
.
|____14.04
| |____virtualbox
| | |____.vagrant
| | |____box-disk1.vmdk
| | |____box.ovf
| | |____metadata.json
| | |____Vagrantfile
|____metadata_url
as you can see, box
format is just a container to provider specific data with some additional meta data that helps Vagrant with versioning and so on. The key files here are .ovf
and .vmdk
which Virtualbox supports.
.ovf
file from your extracted directory and proceed with the import.Upvotes: 3