mitchellh / vagrant-rackspace

Use Vagrant to manage Rackspace Cloud instances.
MIT License
236 stars 155 forks source link

No host IP was given to the Vagrant core NFS helper. #112

Closed brettswift closed 10 years ago

brettswift commented 10 years ago

I've created a gist of the log file and vagrantfile being used.

https://gist.github.com/brettswift/79f52974075f9f1fc1cd

This happens on vagrant up and subsequently on vagrant provision.

This is my first time trying to get the rackspace plugin working, so it may be some configuration in the Vagrantfile I have wrong?

Vagrant version: 1.5.3

I have a couple of other provider plugins as well as oscar but they shouldn't be impacting this I wouldn't think.

I'm able to ssh into the box after this error.

maxlinc commented 10 years ago

Hi @brettswift

I wasn't able to use your Vagrantfile on 1.5.3 or 1.6.3 without cleaning it up. I got an errors that:

Bringing machine 'suite_brettswift_com' up with 'rackspace' provider... There are errors in the configuration of this machine. Please fix the following errors and try again:

vm:

  • A box must be specified.

RackSpace Provider:

  • An API key is required.
  • A username is required.

I added some notes to your gist showing the Vagrantfile I used, but I wasn't able to reproduce with that. Can you give my modified version a try and confirm you still have the same problem?

brettswift commented 10 years ago

Will do. Sorry must have made a mistake on the vagrantfile while cleansing it of some other stuff.

Brett Sent from my iPhone

On Jul 7, 2014, at 13:19, Max Lincoln notifications@github.com wrote:

Hi @brettswift

I wasn't able to use your Vagrantfile on 1.5.3 or 1.6.3 without clean it up. I got an errors that:

Bringing machine 'suite_brettswift_com' up with 'rackspace' provider... There are errors in the configuration of this machine. Please fix the following errors and try again:

vm:

A box must be specified. RackSpace Provider:

An API key is required. A username is required. I added some notes to your gist showing the Vagrantfile I used, but I wasn't able to reproduce with that. Can you give my modified version a try and confirm you still have the same problem?

— Reply to this email directly or view it on GitHub.

maxlinc commented 10 years ago

Hi @brettswift

I think I found the problem, see: https://github.com/mitchellh/vagrant-rackspace/issues/113#issuecomment-48415183.

If I'm right, you can workaround this issue by explicitly telling Vagrant to use rsync with the Rackspace provider (first line inside the rackspace block):

Vagrant.configure("2") do |config|

  config.vm.define :suite_brettswift_com do |nodeserver|

    nodeserver.vm.provider :rackspace do |rs, override|
      override.vm.synced_folder ".", "/vagrant", type: "rsync" 
      override.vm.box               = "rackspace"
      override.vm.box_url           = "https://github.com/mitchellh/vagrant-rackspace/raw/master/dummy.box"
      rs.username                   = "#{ENV['RACKSPACE_USERNAME']}"
      rs.api_key                    = "#{ENV['RACKSPACE_API_KEY']}"
      rs.flavor                     = /512MB Standard Instance/  
      rs.image                      = /Ubuntu 12.04/
      rs.rackspace_region           = 'dfw'

      override.ssh.private_key_path = "~/.ssh/id_rsa"
      override.ssh.username         = 'root'
      rs.public_key_path            = "~/.ssh/id_rsa.pub"
    end
  end
end
smashwilson commented 10 years ago

Closing this in favor of #113 because there are more comments there.