vagrant box add ubuntu/trust64
cd /c/Users/Josh/virtualmachines
mkdir ubuntu
cd ubuntu
vagrant init ubuntu/trusty64
vagrant up
Had to enable virtualization in bios cpu settings (see notes below)
vagrant ssh
If no prompt, must tell Vagrant to prefer your system tools with the VAGRANT_PREFER_SYSTEM_BIN environment variable (https://github.com/hashicorp/vagrant/issues/9143)
VAGRANT_PREFER_SYSTEM_BIN=1 vagrant ssh
or put this into your .bash_profile:
export VAGRANT_PREFER_SYSTEM_BIN=1
Shut down or destroy virtual maching - vagrant halt
and vagrant destroy
Get Help and Learn more
Vagrant Docs Vagrant CLI IRC: #vagrant on Freenode
vagrant up
hangs, updating powershell as a fix (see https://github.com/hashicorp/vagrant/issues/8777) Now hangs at ssh auth method: private key. Try following fixes:Tried adding following line to Vagrantfile (https://github.com/hashicorp/vagrant/issues/8157)
config.vm.network "forwarded_port", guest: 22, host: 2222, host_ip: "127.0.0.1", id: 'ssh'
Didn't work. Tried adding following block to Vagrantfile (https://github.com/hashicorp/vagrant/issues/8157)
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--cableconnected1", "on"]
end
Didn't work. Tried the following (https://github.com/puphpet/puphpet/issues/2462)
C:\Windows\System32\LavasoftTcpService.dll C:\Windows\SysWOW64\LavasoftTcpService.dll
Note: There were also two similarly named .ini files. I removed them as well but that isn't strictly necessary
Didn't work, No Web companion installed. Try running windows update. Didn't work.
Finally fixed by enabling virtualization in bios cpu setting!!!
https://www.howtogeek.com/213795/how-to-enable-intel-vt-x-in-your-computers-bios-or-uefi-firmware/
https://www.vagrantup.com/docs/installation/ https://medium.com/@JohnFoderaro/how-to-set-up-a-local-linux-environment-with-vagrant-163f0ba4da77 https://www.taniarascia.com/what-are-vagrant-and-virtualbox-and-how-do-i-use-them/