Comments (6)
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.
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.
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.
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.
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.
README updated at 6db0232
from devstack-vm.
Related Issues (13)
- id_vagrant may need to be chmod 0400 in order to allow use as an ssh identity file HOT 2
- libvirt-bin is missing HOT 1
- How to correct reboot HOT 2
- VM still cannot access internet
- FATAL: all hosts have already failed -- aborting HOT 2
- Creating an instance with the script `./boot-cirros.py` causes was warning for using an innerclass. HOT 1
- cinder segmentation fault issue HOT 5
- Please update devstack.yml
- become is not a legal parameter in an Ansible task or handler HOT 2
- It would be great to remove Ansible dependency HOT 3
- Install fails HOT 2
- Upgraded to cirros-0.3.2 and ubuntu thrusty HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devstack-vm.