Ask Your Question
0

Provide internet usage for VMs

asked 2018-09-24 06:47:58 -0600

soheil08 gravatar image

Hi, I installed OpenStack, using PackStack, all controller, network and compute on the same physical node, say the host node. I created a CentOS VM on that but the VM has no access to the Internet Network, while the host node has. Here are the interfaces on the host node:

br-ex: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.20  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::288e:5cff:fed6:ac47  prefixlen 64  scopeid 0x20<link>
        ether 00:10:f3:69:03:56  txqueuelen 1000  (Ethernet)
        RX packets 15258  bytes 1849860 (1.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 17812  bytes 6587279 (6.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

br-int: flags=4098<BROADCAST,MULTICAST>  mtu 1450
        ether d6:1c:c0:eb:9c:44  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 871  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

br-tun: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 4e:37:e2:25:74:40  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eno1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:10:f3:69:03:55  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xf7d00000-f7d20000  

enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::210:f3ff:fe69:356  prefixlen 64  scopeid 0x20<link>
        ether 00:10:f3:69:03:56  txqueuelen 1000  (Ethernet)
        RX packets 15258  bytes 2063472 (1.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 20843  bytes 6787473 (6.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device memory 0xf7c00000-f7c7ffff  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 980918  bytes 620751503 (591.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 980918  bytes 620751503 (591.9 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ovs-system: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 8a:29:58:4f:00:bf  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

In the OpenStack Web UI, Horizon, I created a network with the IP and the range of ... (more)

edit retag flag offensive close merge delete

Comments

The NICs and bridges look OK. Do you have an external network in your cloud, and is VMs-Network routed to it?

Although your subnet is OK, literally any IP address range is fine for the subnet. It does not have to be identical to the host's network.

Bernd Bausch gravatar imageBernd Bausch ( 2018-09-24 09:44:02 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-09-25 15:54:15 -0600

fsalaman gravatar image

updated 2018-09-25 15:55:19 -0600

Hi!

You need:

1.- external network with appropiate subnet
2.- router tenant network with appropiate subnet
3.- add tenant subnet to router
4.- your tenant subnet must have gateway enabled, also add correct DNS servers

Cheers!

edit flag offensive delete link more

Comments

Yes, as documented on https://www.rdoproject.org/networking.... Perhaps soheil08 misunderstands the process and thinks that it's sufficient to create a subnet that corresponds to the outside network?

Bernd Bausch gravatar imageBernd Bausch ( 2018-09-25 20:00:13 -0600 )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

1 follower

Stats

Asked: 2018-09-24 06:47:58 -0600

Seen: 38 times

Last updated: Sep 25 '18