I've been working on setting up a vagrant box using Ubuntu for development purposes. I've been working on my base box. I setup a vagrant user, admin group, home directory, etc. I setup the


As mentioned here, and installed chef + puppet. When I package the box and run vagrant up however, I get the title error message when the VM is booting up.

Hosts file on my mac:       localhost broadcasthost
::1             localhost 
fe80::1%lo0     localhost

My Vagrantfile:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant::Config.run do |config|
  config.vm.define :app do |app|
    app.vm.box = "ruby193-aaron"
    app.vm.box_url = "/Users/aaronmcleod/package.box"
    app.vm.network :hostonly, ""
    app.vm.share_folder "v-root", "/vagrant", ".", :nfs => true
    app.vm.provision :shell, :path => "config/vagrant/app.sh"
    app.vm.host_name = "sojourner.vm"
  • Could you be a little more specific on the 'title error message' that you're getting? – Matthew Brown Oct 31 '12 at 9:45
  • The full message is: "SSH authentication failed! This is typically caused by the public/private keypair for the SSH user not being properly set on the guest VM. Please verify that the guest VM is setup with the proper public key, and that the private key path for Vagrant is setup properly as well." However, I have grabbed the example vagrant public key that is mentioned in the linked wiki. – agmcleod Nov 1 '12 at 0:02
  • 1
    Also, maybe check that the you've got the correct key (public key) listed in ~/.ssh/authorized_keys on the base vm. Also, make sure there is a file called insecure_private_key in ~/.vagrant.d on your local machine. – Matthew Brown Nov 1 '12 at 1:21

Running sudo vagrant up fixed it for me.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.