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

Vagrant ssh authentication failure

For general information: by default to ssh-connect you may simply use user: vagrant password: vagrant https://www.vagrantup.com/docs/boxes/base.html#quot-vagrant-quot-user First, try: to see what vagrant insecure_private_key is in your machine config $ vagrant ssh-config Example: $ vagrant ssh-config Host default HostName 127.0.0.1 User vagrant Port 2222 UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile C:/Users/konst/.vagrant.d/insecure_private_key IdentitiesOnly yes LogLevel FATAL … Read more

Using vagrant to run virtual machines with desktop environment

I just got this working with basically three steps. The advice from askubuntu.com didn’t quite work for me, so try this simplified version: Get a basic Ubuntu image working. You should be able to boot it and vagrant ssh. Next, enable the VirtualBox display, which is off by default. Halt the VM and uncomment these … 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

How to disable “Cannot Render Console from…” on Rails

You need to specifically allow the 10.0.2.2 network space in the Web Console config. So you’ll want something like this: class Application < Rails::Application config.web_console.permissions=”10.0.2.2″ end Read here for more information. As pointed out by pguardiario, this wants to go into config/environments/development.rb rather than config/application.rb so it is only applied in your development environment.

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

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