Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| devweb:vagrant [28-07-2016 15:11] – edmc73 | devweb:vagrant [19-09-2016 19:46] (Version actuelle) – edmc73 | ||
|---|---|---|---|
| Ligne 16: | Ligne 16: | ||
| J'ai trouvé celle ci => https:// | J'ai trouvé celle ci => https:// | ||
| - | |||
| - | Mais finalement, j'ai eu un problème avec le support VT-x et j'ai du installer une version 32bit de debian, celle-ci | ||
| - | |||
| - | https:// | ||
| - | |||
| Ligne 30: | Ligne 25: | ||
| < | < | ||
| - | $ vagrant init mon_projet ~/Téléchargements/ | + | $ vagrant init tjo/debian-jessie64-lamp-stack; |
| A `Vagrantfile` has been placed in this directory. You are now | A `Vagrantfile` has been placed in this directory. You are now | ||
| ready to `vagrant up` your first virtual environment! Please read | ready to `vagrant up` your first virtual environment! Please read | ||
| the comments in the Vagrantfile as well as documentation on | the comments in the Vagrantfile as well as documentation on | ||
| `vagrantup.com` for more information on using Vagrant. | `vagrantup.com` for more information on using Vagrant. | ||
| - | |||
| - | |||
| - | |||
| - | $ vagrant up | ||
| Bringing machine ' | Bringing machine ' | ||
| - | ==> default: Box ' | + | ==> default: Importing base box 'tjo/ |
| - | default: Box Provider: virtualbox | + | |
| - | default: Box Version: >= 0 | + | |
| - | ==> default: Box file was not detected as metadata. Adding it directly... | + | |
| - | ==> default: Adding box ' | + | |
| - | default: Unpacking necessary files from: file:/// | + | |
| - | ==> default: Successfully added box ' | + | |
| - | ==> default: Importing base box 'mon_projet'... | + | |
| ==> default: Matching MAC address for NAT networking... | ==> default: Matching MAC address for NAT networking... | ||
| - | ==> default: Setting the name of the VM: mon_projet_default_1469714598425_85852 | + | ==> default: Checking if box ' |
| + | ==> default: Setting the name of the VM: QAint_default_1469718758382_40918 | ||
| ==> default: Clearing any previously set network interfaces... | ==> default: Clearing any previously set network interfaces... | ||
| ==> default: Preparing network interfaces based on configuration... | ==> default: Preparing network interfaces based on configuration... | ||
| Ligne 60: | Ligne 46: | ||
| default: SSH username: vagrant | default: SSH username: vagrant | ||
| default: SSH auth method: private key | default: SSH auth method: private key | ||
| - | default: | ||
| - | default: Vagrant insecure key detected. Vagrant will automatically replace | ||
| - | default: this with a newly generated keypair for better security. | ||
| - | default: | ||
| - | default: Inserting generated public key within guest... | ||
| - | default: Removing insecure key from the guest if it's present... | ||
| - | default: Key inserted! Disconnecting and reconnecting using new SSH key... | ||
| ==> default: Machine booted and ready! | ==> default: Machine booted and ready! | ||
| ==> default: Checking for guest additions in VM... | ==> default: Checking for guest additions in VM... | ||
| Ligne 74: | Ligne 53: | ||
| </ | </ | ||
| - | Nous voici avec une VM de debian jessie | + | Nous voici avec une VM de debian jessie |
| Pour se logguer simplement en ssh, tapez la commande | Pour se logguer simplement en ssh, tapez la commande | ||
| vagrant ssh | vagrant ssh | ||
| Ligne 80: | Ligne 60: | ||
| Pour arrêter la machine, tapez la commande | Pour arrêter la machine, tapez la commande | ||
| vagrant halt | vagrant halt | ||
| + | |||
| + | Modifiez le fichier Vagrantfile et configurer une adresse ip pour votre machine | ||
| + | |||
| + | < | ||
| + | # Create a private network, which allows host-only access to the machine | ||
| + | # using a specific IP. | ||
| + | config.vm.network " | ||
| + | </ | ||
| + | |||
| + | ===== Scotch Box ===== | ||
| + | |||
| + | Scotch Box fourni une box vagrant toute prête sans besoin de puppet ou cook chef | ||
| + | * https:// | ||
| + | |||