Ask Your Question
1

Cannot ping provider gateway from instance (OpenStack on VirtualBox)

asked 2017-02-03 01:39:43 -0500

gree-gorey gravatar image

Hi,

I am trying to test Openstack on VirtualBox. I have created two VMs, one for controller, and one for compute.

On my HOST machine ifconfig:

wlp1s0    Link encap:Ethernet  HWaddr 08:d4:0c:ac:c1:1e  
          inet addr:192.168.0.110  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::14c9:51d1:67c3:7c0b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:40584 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25193 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:28161704 (28.1 MB)  TX bytes:3852137 (3.8 MB)

and ip route:

default via 192.168.0.1 dev wlp1s0  proto static  metric 600  
192.168.0.0/24 dev wlp1s0  proto kernel  scope link  src 192.168.0.110  metric 600

From VirtualBox GUI I set on each VM machine:

  • first adapter: Internal network (for management network, just to communication between two VMs)
  • second adapter: bridge from my HOST wlp1s0 interface
  • third adapter: NAT (just for Internet connection inside VMs)

Interface configuration on these VMs I set as follows:

# The loopback network interface
auto lo
iface lo inet loopback

# Management (internal network)
auto enp0s3
iface enp0s3 inet static
  address 10.0.0.11
  netmask 255.255.255.0

# Bridge from my HOST wlp1s0 (I configure it here as "provider" network from openstack documentation)
auto enp0s8
iface enp0s8 inet manual
  up ip link set dev $IFACE up
  down ip link set dev $IFACE down

# NAT (for internet access on VM)
auto enp0s9
iface enp0s9 inet dhcp

ifconfig from VM (e.g, controller):

enp0s3    Link encap:Ethernet  HWaddr 08:00:27:28:fa:b4  
          inet addr:10.0.0.11  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe28:fab4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:193 errors:0 dropped:0 overruns:0 frame:0
          TX packets:182 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:26627 (26.6 KB)  TX bytes:19783 (19.7 KB)

enp0s8    Link encap:Ethernet  HWaddr 08:00:27:3d:e3:6d  
          inet6 addr: fe80::a00:27ff:fe3d:e36d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:57 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4001 (4.0 KB)  TX bytes:648 (648.0 B)

enp0s9    Link encap:Ethernet  HWaddr 08:00:27:60:22:23  
          inet addr:10.0.4.15  Bcast:10.0.4.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe60:2223/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:156 errors:0 dropped:0 overruns:0 frame:0
          TX packets:123 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:18400 (18.4 KB)  TX ...
(more)
edit retag flag offensive close merge delete

Comments

So many good questions has not been answered :(

sakiraa gravatar imagesakiraa ( 2019-08-30 09:44:42 -0500 )edit

Your opportunity to answer them!

Bernd Bausch gravatar imageBernd Bausch ( 2019-08-30 10:19:40 -0500 )edit

I mean I am facing issue :((

sakiraa gravatar imagesakiraa ( 2019-08-30 23:03:48 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-09-02 05:04:13 -0500

I don't know exactly what issue You actually have but if it's problem with communication e.g. from controller node to the VM spawned by Openstack, maybe You should set promiscuous mode to "Allow All" (or "Allow VMs") in virtualbox settings for Your controller and compute.

edit flag offensive delete link more

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

Stats

Asked: 2017-02-03 01:39:43 -0500

Seen: 305 times

Last updated: Aug 30 '19