Skip to content

archive vagrant box in an OVF compatible format

Notifications You must be signed in to change notification settings

gbitgit/vagrant-ovf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motivation

The idea comes from hashicorp/vagrant#322

Basically, the code is much similar with the one here(https://gist.github.com/1332279), but I spent some time to convert it to be a vagrant plugin.

How to use it

To Use the plugin, you just need to install the gem like:
gem install vagrant-ovf

After that, you can invoke the plugin like:
vagrant ovf [box_name]

With the plugin, the box.ovf & box.mf will be updated to be compatible with VMWare and potential OVA.

To make a OVF archive, you can install ovftool from VMWare and invoke the following command:
ovftool ~/.vagrant.box/boxes/[box_name]/box.ovf /tmp/[box_name].ova
or
ovftool ~/.vagrant.box/boxes/[box_name]/box.ovf /tmp/[box_name].vmx

Tha latter command will generate a VMWare openable archive under /tmp, and you can open it with VMWare Fusion.

Or, with standard zip tool like tar, you can archive the OVA as bellow:
cd ~/.vagrant.box/boxes/[box_name]
tar /tmp/[box_name].ova box.ovf box-disk1.vmdk box.mf Vagrantfile

Also, for more info, please check out my blog http://mingjin.thoughtworkers.org/?p=176 (sorry, it’s in Chinese)

License

MIT: http://rem.mit-license.org

About

archive vagrant box in an OVF compatible format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published