devstack networking for standalone virtualbox VM - can't ping to/from instances
I have a vagrant virtualbox image that is installed with CentOS 6.4 (desktop version).
The machine has a single NIC created by default by vagrant:
Network Type: NAT
Host IP: 10.0.2.2 / 255.255.255.0
Guest IP: 10.0.2.15 / 255.255.255.0
The NIC is use by vagrant to communicate with the guest, and also to provide the guest with internet access.
I've set the NIC to promisc:
vb.customize ["modifyvm", :id, "--nicpromisc1", "allow-all"]
The devstack setup is straightforward:
sudo yum install -y git
git clone git://github.com/openstack-dev/devstack.git
cd devstack
./stack.sh
I then:
- proceeded to create a new instance, which was successful.
- added ICMP all to the security group.
- added a floating IP address.
However, I can't ping to/from instance the private/public interfaces.
Questions:
- What is missing with my setup?
- Do I need to add another network card to this standalone guest vm for devstack to work properly?
Hope your instance has IP address of external network as well. 10.0.2.2 must be the internal network IP address. You must be trying to reach from your box to VM. Your box is in different network. So you need to assign the external IP address to your vms. Then it will surely work.