VMs traffic cannot go outside host
by deyaa112006@hotmail.com
Hi
trying to get hands on ovirt virtualization.
built a test environment on vmware workstation:
- 2 VMs running centos7 as ovirt Hosts
- 1 VM running centos 7 as ovirt-manager
on ovirt Hosts:
[root@ovirt-node1 ~]# rpm -q cockpit-ovirt-dashboard qemu-kvm-ev libvirt virt-install bridge-utils vdsm
cockpit-ovirt-dashboard-0.13.10-1.el7.noarch
qemu-kvm-ev-2.12.0-44.1.el7_8.1.x86_64
libvirt-4.5.0-36.el7_9.5.x86_64
virt-install-1.5.0-7.el7.noarch
bridge-utils-1.5-9.el7.x86_64
vdsm-4.30.46-1.el7.x86_64
on ovirt-manager:
[oVirt shell (connected)]# info
backend version: 4.3.10
sdk version : 4.3.4
cli version : 3.6.9.2
python version : 2.7.5.final.0
entry point : https://ovirt-manager.home.lab/ovirt-engine/api
I created two ovirt VMs, running ubuntu16, on the same VM Networks "vmnet-02"
Both VMs' traffic cannot go outside hosts (i.e they can reach each others only if they run on the same host)
need help fix this please!
[d@dv6 ~]$ ovirt-node2
Last login: Mon Jun 28 15:25:12 2021 from 10.0.1.1
[root@ovirt-node2 ~]# ifconfig
ens32: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:0c:29:d2:71:10 txqueuelen 1000 (Ethernet)
RX packets 5388529 bytes 7970598031 (7.4 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 287643 bytes 124694822 (118.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ens34: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:0c:29:d2:71:1a txqueuelen 1000 (Ethernet)
RX packets 6574 bytes 637208 (622.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3573 bytes 393479 (384.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
genev_sys_6081: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 65000
ether fe:66:e6:5e:51:f8 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
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Local Loopback)
RX packets 15152 bytes 3732985 (3.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 15152 bytes 3732985 (3.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ovirtmgmt: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.1.22 netmask 255.255.255.0 broadcast 10.0.1.255
ether 00:0c:29:d2:71:10 txqueuelen 1000 (Ethernet)
RX packets 308773 bytes 7630918499 (7.1 GiB)
RX errors 0 dropped 42 overruns 0 frame 0
TX packets 253627 bytes 92412626 (88.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vmnet-02: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.57.146 netmask 255.255.255.0 broadcast 192.168.57.255
ether 00:0c:29:d2:71:1a txqueuelen 1000 (Ethernet)
RX packets 9367 bytes 640524 (625.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1015 bytes 248111 (242.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vnet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether fe:6f:b4:ee:00:01 txqueuelen 1000 (Ethernet)
RX packets 6483 bytes 289530 (282.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5120 bytes 480414 (469.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@ovirt-node2 ~]#
[root@ovirt-node2 ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.1.254 0.0.0.0 UG 0 0 0 ovirtmgmt
10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 ovirtmgmt
169.254.0.0 0.0.0.0 255.255.0.0 U 1023 0 0 ovirtmgmt
192.168.57.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet-02
Here I can access the guest VM:
[root@ovirt-node2 ~]# ssh sysadmin(a)10.0.1.44
sysadmin(a)10.0.1.44's password:
sysadmin@ubuntu16-1:~$ ifconfig
ens4 Link encap:Ethernet HWaddr 56:6f:b4:ee:00:01
inet addr:10.0.1.44 Bcast:10.0.1.255 Mask:255.255.255.0
inet6 addr: fe80::546f:b4ff:feee:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:312 errors:0 dropped:0 overruns:0 frame:0
TX packets:1834 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:75924 (75.9 KB) TX bytes:87332 (87.3 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1136 errors:0 dropped:0 overruns:0 frame:0
TX packets:1136 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:105288 (105.2 KB) TX bytes:105288 (105.2 KB)
sysadmin@ubuntu16-1:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.1.254 0.0.0.0 UG 0 0 0 ens4
10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 ens4
but from the other host "node1" I cannot.