-
Notifications
You must be signed in to change notification settings - Fork 3
[CEMRACS] Create and import a Vagrant box
Alexandre Ancel edited this page Jul 8, 2016
·
8 revisions
- Write the required Vagrantfile to build the virtual machine and build it
- Create the box using the following command:
vagrant package --base "bname"
with bname
being the virtual machine name (e.g. for VirtualBox, the name that has been set with vb.name or the one displayed in the interface of VirtualBox)
- Import the image from the box file and name it:
vagrant box add iname ./package.box
- Check if the image has been correctly imported:
vagrant box list
- Create a base Vagrantfile for the image to launch vagrant init CEMRACS-test; vagrant up