Skip to content

Instantly share code, notes, and snippets.

@johnypony3
Created January 18, 2018 01:23
Show Gist options
  • Save johnypony3/47af7069821272b569b57a6408b19361 to your computer and use it in GitHub Desktop.
Save johnypony3/47af7069821272b569b57a6408b19361 to your computer and use it in GitHub Desktop.
list your VMs to find the VM ID:
$ VBoxManage list vms
"UCS 4.1" {acef4c0a-35be-4640-a214-be135417f04d}
You can now package that VM as a Vagrant box:
$ vagrant package --base acef4c0a-35be-4640-a214-be135417f04d --output UCS.box
==> acef4c0a-35be-4640-a214-be135417f04d: Exporting VM...
==> acef4c0a-35be-4640-a214-be135417f04d: Compressing package to: /home/crohr/dev/ucs/UCS.box
And add it to the list of your local Vagrant boxes:
$ vagrant box add UCS.box --name UCS
Finally, you can create a Vagrantfile to use this box:
Vagrant.configure("2") do |config|
config.vm.box = "UCS"
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment