miércoles, 22 de agosto de 2018

Vagrant

Notes
Install vagrant and virtualbox latest version
run:
vagrant init hashicorp/precise32
vagrant up
login trough ssh
--vagrant ssh

#Prerequisites
powershell 3.0 follow this link , download installer, reboot and run
To install above update run repair.bat showed in this link.
Get-Host | Select-Object Version
PS C:\Users\Esteban> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'hashicorp/precise32' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'hashicorp/precise32'
    default: URL: https://vagrantcloud.com/hashicorp/precise32
==> default: Adding box 'hashicorp/precise32' (v1.0.0) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/hashicorp/boxes/precise32/versions/1.0.0/providers/virtualbox.box
    default: Progress: 12% (Rate: 674k/s, Estimated time remaining: 0:09:40)

To see commands, use:
 vagrant list -commands

Below is a listing of all available Vagrant commands and a brief
description of what they do.

box             manages boxes: installation, removal, etc.
cap             checks and executes capability
destroy         stops and deletes all traces of the vagrant machine
docker-exec     attach to an already-running docker container
docker-logs     outputs the logs from the Docker container
docker-run      run a one-off command in the context of a container
global-status   outputs status Vagrant environments for this user
halt            stops the vagrant machine
help            shows the help for a subcommand
init            initializes a new Vagrant environment by creating a Vagrantfile
list-commands   outputs all available Vagrant subcommands, even non-primary ones
login           log in to HashiCorp's Vagrant Cloud
package         packages a running vagrant environment into a box
plugin          manages plugins: install, uninstall, update, etc.
port            displays information about guest port mappings
powershell      connects to machine via powershell remoting
provider        show provider for this environment
provision       provisions the vagrant machine
push            deploys code in this environment to a configured destination
rdp             connects to machine via RDP
reload          restarts vagrant machine, loads new Vagrantfile configuration
resume          resume a suspended vagrant machine
rsync           syncs rsync synced folders to remote machine
rsync-auto      syncs rsync synced folders automatically when files change
snapshot        manages snapshots: saving, restoring, etc.
ssh             connects to machine via SSH
ssh-config      outputs OpenSSH valid configuration to connect to the machine
status          outputs status of the vagrant machine
suspend         suspends the machine
up              starts and provisions the vagrant environment
validate        validates the Vagrantfile
version         prints current and latest Vagrant version

Provider flag: VirtualBox provider
Network Adapter is NAT
Virtual box addition installed
package the box
started in headless mode with no user interface

PS C:\Users\Esteban> vagrant ssh
Welcome to Ubuntu 12.04.5 LTS (GNU/Linux 3.13.0-32-generic i686)

 * Documentation:  https://help.ubuntu.com/
New release '14.04.5 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

vagrant destroy

https://vagrantcloud.com/search


Install Vagrant VirtualBox Provider
sudo mount /dev/cdrom /media/cdrom

Vagrant & Parallels (link)
PS C:\Users\Esteban\precise64> vagrant plugin install vagrant-parallels
Installing the 'vagrant-parallels' plugin. This can take a few minutes...
Fetching: mini_portile2-2.3.0.gem (100%)
Fetching: nokogiri-1.8.4-x64-mingw32.gem (100%)
Nokogiri is built with the packaged libraries: libxml2-2.9.8, libxslt-1.1.32, zlib-1.2.11, libiconv-1.15.
Fetching: vagrant-parallels-1.7.8.gem (100%)
Installed the plugin 'vagrant-parallels (1.7.8)'!

PS C:\Users\Esteban> vagrant box --help
Usage: vagrant box []
Available subcommands:
     add
     list
     outdated
     prune
     remove
     repackage
     update

vagrant box add machine http://download.parallels.com/desktop/vagrant/precise64.box