Skip to content

Instantly share code, notes, and snippets.

@lorentzca
Created October 28, 2015 03:07
Show Gist options
  • Save lorentzca/61ab7b1d0c8bc15a78e3 to your computer and use it in GitHub Desktop.
Save lorentzca/61ab7b1d0c8bc15a78e3 to your computer and use it in GitHub Desktop.
virtualbox image -> vagrant box
{
"builders": [
{
"type": "virtualbox-ovf",
"source_path": "/path/to/sample.ova",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/shutdown -h now"
}
],
"post-processors": [
{
"type": "vagrant",
"output": "/path/to/sample.box"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment