Vagrant box: can’t login with password from VirtualBox GUI

UPDATE after clarification of question You should be able to login as user: vagrant password: vagrant This is a convention described in the base box creation documentation: Also, even though Vagrant uses key-based authentication by default, it is a general convention to set the password for the “vagrant” user to “vagrant”. This lets people login … Read more

Vagrant up – VBoxManage.exe error: VT-x is not available (VERR_VMX_NO_VMX) code E_FAIL (0x80004005) gui headless [closed]

Stop hyper-v service running by default in Windows 8/10, since it blocks all other calls to VT hardware. Additional explanation here: https://social.technet.microsoft.com/Forums/windows/en-US/118561b9-7155-46e3-a874-6a38b35c67fd/hyperv-disables-vtx-for-other-hypervisors?forum=w8itprogeneral Also as you have mentioned, if not already enabled, turn on Intel VT virtualization in BIOS settings and restart the machine. To turn Hypervisor off, run this from Command Prompt (Admin) (Windows+X): bcdedit … Read more

Update a Vagrant Box?

From the Vagrant docs: Finally, you can update boxes with vagrant box update. This will download and install the new box. This will not magically update running Vagrant environments. If a Vagrant environment is already running, you’ll have to destroy and recreate it to acquire the new updates in the box. The update command just … Read more

How to debug “Vagrant cannot forward the specified ports on this VM” message

You can see what vagrant instances are running on your machine by running $ vagrant global-status id name provider state directory ———————————————————————- a20a0aa default virtualbox saved /Users/dude/Downloads/inst-MacOSX 64bc939 default virtualbox saved /Users/dude/svn/dev-vms/ubuntu14 a94fb0a default virtualbox running /Users/dude/svn/dev-vms/centos5 If you don’t see any VMs running, your conflict is not a vagrant box (that vagrant knows about). … Read more

How to run several boxes with Vagrant?

The best way is to use an array of hashes. You can define the array like: servers=[ { :hostname => “web”, :ip => “192.168.100.10”, :box => “saucy”, :ram => 1024, :cpu => 2 }, { :hostname => “db”, :ip => “192.168.100.11”, :box => “saucy”, :ram => 2048, :cpu => 4 } ] Then you just … Read more

How can Vagrant forward multiple ports on the same machine?

If you want to forward two ports, you may simply add another line like this: config.vm.network :forwarded_port, guest: 8080, host: 8080 config.vm.network :forwarded_port, guest: 5432, host: 5432 A better way, in my opinion, is to setup a private network (or host-only network), so that you don’t have to forward all the ports manually. See my … Read more

Download vagrant box file locally from atlas and configuring it

To download a file you have to add version and provider in the URL. For example for downloading trusty64 First you need its URL which is https://app.vagrantup.com/ubuntu/boxes/trusty64/ then you have to add version and provider afterwards, for our example the download URL would be. https://app.vagrantup.com/ubuntu/boxes/trusty64/versions/20180206.0.0/providers/virtualbox.box Then you have to add it locally from your vagrant … Read more

Vagrant, how to specify the disk size?

I have used the vagrant plugin vagrant-disksize to resize the disk. It worked. It can also help to specify the initial disk size. Run the following at the command line: vagrant plugin install vagrant-disksize and use the following in your Vagrantfile: vagrant.configure(‘2’) do |config| config.vm.box = ‘ubuntu/xenial64’ config.disksize.size=”50GB” end

Vagrant shared and synced folders

shared folders VS synced folders Basically shared folders are renamed to synced folder from v1 to v2 (docs), under the bonnet it is still using vboxsf between host and guest (there is known performance issues if there are large numbers of files/directories). Vagrantfile directory mounted as /vagrant in guest Vagrant is mounting the current working … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)