OpenNebula attach VM to hypervisor physical network interface

I want to connect my OpenNebula hypervisor node physical network interface to VM directly so that VM can send traffic to hypervisor network. is there any way out for this solution?

Hello @mosharaflink

I don’t know if I understand well, but if you want to connect VMs to the interface which is connected to the physical network, you can use linux bridges, here you can find more information.

@ahuertas. Yes you got my point of networking which is connecting VM networking with host access network. But the link given for bridging does not has enough information for the configuration.

Hi,

Please post here the following output:
$ brctl show
$ ip link
$ iptables-save
Redact any IP information from that output.

root@node1:~# brctl show
bridge name bridge id STP enabled interfaces
virbr0 8000.525400b08dfd yes virbr0-nic

root@node1:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 00:0c:29:67:f2:bd brd ff:ff:ff:ff:ff:ff
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
link/ether 52:54:00:b0:8d:fd brd ff:ff:ff:ff:ff:ff
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel master virbr0 state DOWN mode DEFAULT group default qlen 1000
link/ether 52:54:00:b0:8d:fd brd ff:ff:ff:ff:ff:ff