Networking in oVirt

Hi all, Today I have installed oVirt 4.2 on a single machine (self hosted engine). My server has 6 physical adapters, but only 1 has an active uplink (enp2s0f0). The server is directly connected to the internet. The installation of oVirt created the following interfaces: - br-int - ovirtmgmt [IP configured: inet 85.17.x.x] - virbr0 [IP configured: inet 192.168.122.1] - virbr0-nic - vnet0 The hosted-engine is attached to ovirtmgmt and got IP 192.168.122.76 assigned. The hosted-engine does have access to the internet. The logical network ovirtmgmt is assigned to the physical interface enp2s0f0 when I check this via the oVirt webgui. I have 2 questions. Q1: I would like to achieve the following: - Create a new network, call it vm_network. - Create VM's and attach them to the vm_network. - These VM's should able to access the internet. Is this possible, if so, how do I achieve this? Q2: When my first question is answered and I have VM's running, some of the VM's I would like to give an external/public IP address. How do I achieve this? Thanks! Sinan

On Fri, 28 Sep 2018 19:16:50 +0200 sinan@turka.nl wrote:
Hi all,
Today I have installed oVirt 4.2 on a single machine (self hosted engine).
My server has 6 physical adapters, but only 1 has an active uplink (enp2s0f0). The server is directly connected to the internet.
The installation of oVirt created the following interfaces: - br-int - ovirtmgmt [IP configured: inet 85.17.x.x] - virbr0 [IP configured: inet 192.168.122.1] - virbr0-nic - vnet0
The hosted-engine is attached to ovirtmgmt and got IP 192.168.122.76 assigned. The hosted-engine does have access to the internet.
The logical network ovirtmgmt is assigned to the physical interface enp2s0f0 when I check this via the oVirt webgui.
I have 2 questions.
Q1: I would like to achieve the following: - Create a new network, call it vm_network. - Create VM's and attach them to the vm_network.
This is no problem.
- These VM's should able to access the internet.
Can you explain this more detailed? oVirt does not provider snat, so you require either multiple internet IP addresses or a node, e.g. a VM, doing the routing/snat.
Is this possible, if so, how do I achieve this?
Q2: When my first question is answered and I have VM's running, some of the VM's I would like to give an external/public IP address. How do I achieve this?
Let's postpone this until the first question is answered.
Thanks!
Sinan _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/YQAADTUEQEDLOQ...

Hi, A physical Interface can have only 1 logical network attached, the interface is already in use by ovirtmgmt. Since the physical interface is directly connected to the internet, I thought I can natively route the logical network to the internet. Thanks! Sinan
Op 29 sep. 2018 om 19:46 heeft Dominik Holler <dholler@redhat.com> het volgende geschreven:
On Fri, 28 Sep 2018 19:16:50 +0200 sinan@turka.nl wrote:
Hi all,
Today I have installed oVirt 4.2 on a single machine (self hosted engine).
My server has 6 physical adapters, but only 1 has an active uplink (enp2s0f0). The server is directly connected to the internet.
The installation of oVirt created the following interfaces: - br-int - ovirtmgmt [IP configured: inet 85.17.x.x] - virbr0 [IP configured: inet 192.168.122.1] - virbr0-nic - vnet0
The hosted-engine is attached to ovirtmgmt and got IP 192.168.122.76 assigned. The hosted-engine does have access to the internet.
The logical network ovirtmgmt is assigned to the physical interface enp2s0f0 when I check this via the oVirt webgui.
I have 2 questions.
Q1: I would like to achieve the following: - Create a new network, call it vm_network. - Create VM's and attach them to the vm_network.
This is no problem.
- These VM's should able to access the internet.
Can you explain this more detailed? oVirt does not provider snat, so you require either multiple internet IP addresses or a node, e.g. a VM, doing the routing/snat.
Is this possible, if so, how do I achieve this?
Q2: When my first question is answered and I have VM's running, some of the VM's I would like to give an external/public IP address. How do I achieve this?
Let's postpone this until the first question is answered.
Thanks!
Sinan _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/YQAADTUEQEDLOQ...

I'm not an expert but as far as I can tell, if your router supports a secondary ip in that network and routes these packets to the internet it should work. If not you should do NAT/Masquerade the vm network to the internet. But that is something that is not in ovirt configuration to handle, you have to do it with other means.
participants (4)
-
Dominik Holler
-
g.vasilopoulos@uoc.gr
-
Sinan Polat
-
sinan@turka.nl