Last active
August 29, 2015 14:20
-
-
Save fmarot/ea394e58d9b62f727d38 to your computer and use it in GitHub Desktop.
Some Vagrant stuffs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RedhHat: | |
sudo wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.rpm && sudo rpm -ivh vagrant_1.7.2_x86_64.rpm && sudo wget http://download.virtualbox.org/virtualbox/4.3.26/VirtualBox-4.3.26-98988-Linux_amd64.run && sudo sh ./VirtualBox-4.3.26-98988-Linux_amd64.run | |
Ubuntu: | |
sudo wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.deb && sudo dpkg -i vagrant_1.7.2_x86_64.deb | |
# dl of the box => added to .vagrant in home | |
vagrant box add my-box name-of-the-box.box Or vagrant box add ubuntu/trusty64 | |
# creation du Vagrantfile referencant la box downloadee | |
vagrant init my-box | |
# creation de la VM basee originellement sur la box => nouvelle VM cree dans le repertoire de Virtualbox | |
vagrant up | |
# si le vagrantfile sous git est MAJ (autre que le parametrage de la VM pour Virtualbox) faire cette commande: | |
vagrant destroy -f && vagrant box remove && vagrant up | |
vagrant package --output myvm.box | |
repackage => pour repackager en .box une box (une box, pas une VM MAJ !!!) qu'on a dl sur le net | |
VBoxManage list vms | |
http://docs.vagrantup.com/v2/boxes/base.html | |
http://abhishek-tiwari.com/hacking/creating-a-new-vagrant-base-box-from-an-existing-vm | |
http://docs.vagrantup.com/v2/boxes/base.html | |
https://vagrantcloud.com/kikitux/boxes/oracle6.json | |
https://github.com/mitchellh/vagrant/issues/4235 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment