Skip to content

Instantly share code, notes, and snippets.

@evandroamparo
Last active October 27, 2017 16:38
Show Gist options
  • Save evandroamparo/04e956482a5e3928a314ebd747334024 to your computer and use it in GitHub Desktop.
Save evandroamparo/04e956482a5e3928a314ebd747334024 to your computer and use it in GitHub Desktop.
Vagrant Windows

Criar máquina virtual no Virtual box

Configurar winrm para acesso remoto

Configurar conexão como "privada": https://tinkertry.com/how-to-change-windows-10-network-type-from-public-to-private

winrm quickconfig

Empacotar máquina virtual

vagrant package --base <nome da vm> --output <nome da box>.box

Importar box

vagrant box add --name <nome da vm> <nome da box>.box

Inicializar

vagrant init

No Vagrantfile:

config.vm.box = "<nome da box>"
config.vm.communicator = :winrm
config.winrm.username = "<user>"
config.winrm.password = "<pass>"

Rodar

vagrant up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment