How do I associate a Vagrant project directory with an existing VirtualBox VM?

For Vagrant 1.6.3 do the following: 1) In the directory where your Vagrantfile is located, run the command VBoxManage list vms You will have something like this: “virtualMachine” {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} 2) Go to the following path: cd .vagrant/machines/default/virtualbox 3) Create a file called id with the ID of your VM xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 4) Save the file and … Read more

VBoxManage: error: Failed to create the host-only adapter [closed]

I had the same problem today. The reason was that I had another VM running in VirtualBox. Solution: Open VirtualBox and shut down every VM running Go to System Preferences > Security & Privacy Then hit the “Allow” button to let Oracle (VirtualBox) load. Restart VirtualBox sudo “/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh” restart You should now be able … Read more

Error when trying vagrant up

It looks like you may have created a Vagrant project with just vagrant init. That will create your Vagrantfile, but it won’t have a box defined. Instead, you could try $ vagrant init hashicorp/precise32 $ vagrant up which uses a standard Ubuntu image. The Vagrant website has a Getting Started which gives some good examples.

Psql could not connect to server: No such file or directory, 5432 error?

I’ve had this same issue, related to the configuration of my pg_hba.conf file (located in /etc/postgresql/9.6/main). Please note that 9.6 is the postgresql version I am using. The error itself is related to a misconfiguration of postgresql, which causes the server to crash before it starts. I would suggest following these instructions: Certify that postgresql … Read more

How to change Vagrant ‘default’ machine name?

I found the multiple options confusing, so I decided to test all of them to see exactly what they do. I’m using VirtualBox 4.2.16-r86992 and Vagrant 1.3.3. I created a directory called nametest and ran vagrant init precise64 http://files.vagrantup.com/precise64.box to generate a default Vagrantfile. Then I opened the VirtualBox GUI so I could see what … Read more

tech