How VirtualBox virtual machines are exported to the vagrant environment

Source: Internet
Author: User
Tags json ssh server

Export virtual machine, select OVF 0.9 format, export name: Exported-file.ova

Export VirtualBox Appliance with "Write Legacy OVF 0.9″option selected. This would create an OVA file "Exported-file.ova".

Rename to Exported-file.tar
Rename the OVA file to "Exported-file.tar"

Decompression Exported-file.tar

$ TAR-XF Exported-file.tar

Rename ovf file as box.ovf

Copy of the content of OVF file to a new file BOX.OVF.

Add Metadata.json file, as follows (in bold section):
Create a new file "Metadata.json" with this information:
"Provider": "VirtualBox"

Package these three files:

$ TAR-CVF Exported-file.tar box.ovf vagrant-disk1.vmdk Metadata.json

Add the BOX.OVF and Metadata.json to the tar file.

Goto Your new box folder, issue vagrant Init to create the vagrantfile.
Add the following to the configuration Config.vm.box_url = "/directory/exported-file.tar"

Vagrant up

Guide in Setting up box for OpenSuse


Make sure SSH server runs automatically
/sbin/chkconfig sshd on

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.