Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

.ssh/authorized_keys

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:

127.0.0.1       localhost
255.255.255.255 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, "192.168.100.35"
    app.vm.share_folder "v-root", "/vagrant", ".", :nfs => true
    app.vm.provision :shell, :path => "config/vagrant/app.sh"
    app.vm.host_name = "sojourner.vm"
  end
end
share|improve this question
    
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
    
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

1 Answer 1

Running sudo vagrant up fixed it for me.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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