Hello,
Network configuration for an ovirt host is managed by VDSM. If you try
to make changes manually, such as through calling nmcli or manually
editing the network scripts via an ssh session on each host, VDSM will
just reset everything back to the configuration it had before. (It's on
a timer, and it will also happen if VDSM / the host restarts.)
To make permanent changes to the network configuration, you'll need to
configure the IP addresses / VLANs through the web admin interface for
each host.
The steps to do this safely are:
Go to web admin, Main menu -> Compute -> Hosts.
For each host,
1. Migrate or power off all running VMs. (You can see and control each
VM running on a host by clicking on the host's name and selecting the
"Virtual Machines" tab.)
2. Put the host into maintenance.
3. Click on the host's name and then go to the Network Interfaces tab.
4. Click on the "Setup Host Networks" button. For each interface listed
on the dialog, there is a pencil icon on the far right. Click on that
pencil to edit the configuration for that interface.
5. Make your changes as desired. A couple things to note:
Be careful about where you define a gateway, it will effect
the host's routing table and can prevent the engine from being able to
contact that host.
The engine will not validate the IP configuration on the UI
screen. I.e. You can set any IP address / subnet mask even if it
doesn't match the network address / subnet mask of any other host on
the same logical network. Nor will the engine protect against reusing
an IP of an existing host on the network. (Regardless if said host is
registered with the engine.) Be careful when you type in those
addresses. They are functionally just a text box.
6. Once your changes are done make sure that the "Verify connectivity
between Host and Engine" and "Save network configuration" check boxes
are checked then, click on the OK button.
7. Wait a few minutes. The engine will update the interfaces and the
display in the host list. If the engine cannot complete the network
changes, it should revert them back to what they were originally.
As a side note because the engine doesn't make this very clear in the
UI: If you want to change the network used for the various roles,
(storage, VM, console, management, default gateway, migration) you do
so at the cluster level. (Main menu-> Compute -> Clusters -> Cluster
name -> Logical Networks) The roles are assigned to virtual networks,
not the interfaces on each host.
- Patrick Hibbs
On Sat, 2022-02-19 at 01:09 +0000, Abe E wrote:
Hello All,
So due to some issues with provisioning new networks in our lab, I
have to use a different VLAN in for my ovirt cluster.
Cluster -> 3 Hosts (Hyperconverged)
What I want to do is essentially change the Ovirtmgmt interface to
another vlan but also change the IP Schemes, I wont be needing to
change the storage network vlans.
I am just wondering how this is done safely.
Can I through the engine, put the host 1 by 1 into maint mode and
manually adjust the IPs and apply and reconfigure the switch port?
What about the IP that the engine has set or would I change that
manually through console once I change the ovirtmgmt vlan on all the
nodes?
_______________________________________________
Users mailing list -- users(a)ovirt.org
To unsubscribe send an email to users-leave(a)ovirt.org
Privacy Statement:
https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/5JTGYJ6K5CD...