Ask Your Question

How to access Devstack in my host machine?

asked 2013-09-15 08:40:51 -0500

geraldvillorente gravatar image

updated 2013-09-16 09:33:11 -0500

I recently installed Devstack inside Vagrant environment. My main OS is Linux Mint 14 while Vagrant is running Ubuntu Precise(12.04).

After running here the last ouput in cli.

Horizon is now available at Keystone is serving at Examples on using novaclient command line is in The default users are: admin and demo The password: password This is your host ip: completed in 2979 seconds.

My problem is I can't access in my main OS.


Vagrant.configure("2") do |config| = "devstack"
  config.vm.box_url = ""

  #Horizon :forwarded_port, guest: 80, host: 8181
  #VNC :forwarded_port, guest: 6080, host: 6080
  #Keystone :forwarded_port, guest: 5000, host: 5000 :private_network, ip: ""
    config.ssh.forward_agent = true

  config.vm.provider :virtualbox do |v|
    v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
    v.customize ["modifyvm", :id, "--memory", 1024]
    v.customize ["modifyvm", :id, "--name", "DevStack Challenge - Precise"]

  config.vm.synced_folder "./", "/var/www/public_html/", id: "vagrant-root", :extra => "dmode=777,fmode=666"
  config.vm.provision :shell, :inline =>
    "if [[ ! -f /apt-get-run ]]; then sudo apt-get update && sudo touch /apt-get-run; fi"

  config.vm.provision :shell, :inline => 'echo -e "mysql_root_password=password
controluser_password=awesome" > /etc/phpmyadmin.facts;'

  config.vm.provision :puppet do |puppet|
    puppet.manifests_path = "manifests"
    puppet.module_path = "modules"
    puppet.options = ['--verbose']

Part of localrc:

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-09-15 10:46:26 -0500

darragh-oreilly gravatar image

updated 2013-09-15 12:40:48 -0500

Vagrant tells VirtualBox (or whatever) to configure the VM's eth0 for NAT and forward port 22 for ssh. You can forward additional ports like 80 for Horizon and 6080 for the VNC console. Here is a Vagrantfile for VirtualBox that does that so you can access Horizon from the host with http://localhost:8080

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

Vagrant.configure("2") do |config| = "precise64"
  config.vm.hostname = "devstack" :forwarded_port, guest: 80, host: 8080   # horizon :forwarded_port, guest: 6080, host: 6080 # vnc

  config.vm.provider "virtualbox" do |vb|
    vb.customize ["modifyvm", :id, "--memory", "2500"]
    vb.customize ["modifyvm", :id, "--uart1", "0x3F8", 4]

edit flag offensive delete link more


Thanks for your response. I tried what you suggested and still no luck. I updated my post for more info.

geraldvillorente gravatar imagegeraldvillorente ( 2013-09-16 09:29:44 -0500 )edit

I donno why it is not working, but seeing that you are also giving it a non-NATed IP, why not use it? You may have to set localrc HOST_IP to That FLOATING_RANGE will need to be fixed too. Also are you sure the "config.ssh.forward_agent" should be where it is?

darragh-oreilly gravatar imagedarragh-oreilly ( 2013-09-16 10:26:21 -0500 )edit

After running ./ I have got the same message. Seems that everything went well, but I have the same problem, I cannot access! I did not use vagrant though!

Arash gravatar imageArash ( 2013-10-30 11:32:56 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2013-09-15 08:40:51 -0500

Seen: 6,571 times

Last updated: Sep 16 '13