Giter Club home page Giter Club logo

Comments (6)

lorin avatar lorin commented on July 18, 2024

Unfortunately, I don't think there's an easy way to configure things to allow an instance to connect out to the internet. This is because the VirtualBox network interface associated with the floating IPs is associated with a vagrant "private network", so there are no rules for routing packets out to the internet.

You could configure Vagrant to use bridged networking mode, and that way the virtual machine running devstack would be connected directly to your local network. However, then you need to make sure that the subnet you specify in the vagrantfile matches the subnet of your local network (you would need to change this from 172.24.4.225/27 to whatever your local network uses), and you also need to make sure that OpenStack doesn't hand out an IP that's already used on your subnet.

The alternative is to configure your host operating system to NAT the connections out. Configuring this is non-trivial and depends on what operating system you are running on the host.

from devstack-vm.

simpl1g avatar simpl1g commented on July 18, 2024

Thx for reply, I had some experiments with NAT on my Ubuntu, so I'll keep moving forward with that, I thought that it's common problem :)

from devstack-vm.

lorin avatar lorin commented on July 18, 2024

Note that the newest release of VirtualBox (4.3) now has experimental support for NAT. Might be able to use this to allow instances to connect out the Internet.

from devstack-vm.

marklee77 avatar marklee77 commented on July 18, 2024

If you have an up-to-date copy of vagrant and can get access to the internet from the network node through eth0, then the solution is just to tell iptables to masquerade traffic passing out through that interface.

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

At least, this fixed the problem for me. YMMV.

I haven't yet figured out how to make it so you can connect to VMS from the controller node in virtualbox.

from devstack-vm.

simpl1g avatar simpl1g commented on July 18, 2024

Running this on my host machine solved the problem

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE

Lorin you can add it to README:)
Thanks all!

from devstack-vm.

lorin avatar lorin commented on July 18, 2024

README updated at 6db0232

from devstack-vm.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.