Changing Hypervisor ip address
Hi folks,
I have recently installed a complete RHEV 3.1 solution in the same host. It runs on a local storage data center. It´s only a POC. I know about the all-in-one package but I wanted to install it step by step.
My issue is that each time I try to access VM´s console, I get "Unable to connect graphic console".
After enabling the debug logs I noticed that it is trying to connect to 127.0.0.1 address.That´s why it only works accesing through the RHEVM-RHEVH host.
I think that it is because I added RHEVH using the loopback interface 127.0.0.1 instead of using the NIC ip. I have tried changing the ip of the RHEVH through the manager but it seems to be imposible. The only way seems to be removing the RHEVH but to do that it also asks to remove the Local data center prior to removing the RHEVH.
Is there any way to change the IP address of an already added RHEVH?
Thank you very much for your help in advance.
Cheers.
Responses
""My issue is that each time I try to access VM´s console, I get "Unable to connect graphic console".""
Do you have the correct network assigned as "Display" network? Please check under the Cluster-tab, Logical networks, "Set as display" on the logical network you want to access for connecting to VNC/Spice.
"Is there any way to change the IP address of an already added RHEVH?"
I needed the same change a while ago on my all-in-one RHEV 3.1 environment on a external SSD drive. I solved this by doing a shutdown on the ovirt-engine, updating the interace config on the host and updating the engine database with the same values (vds_interface table, find vds_id via https://<rhevmhostname>/api/hosts?search=<yourhostname>).
This works perfect for all-in-one test/poc environments. It can easily be scripted so that IP changes are submitted on reboot.
I'm in need of changing the address field on a RHEV-H in production.
Is there a supported/easy way to do this that doesn't involve manually altering the database (which isn't a supported method AFAIK).
Hi Par,
>> I'm in need of changing the address field on a RHEV-H in production.
You want to change the IP field or hostname field ?
Any way once you will complete the installation of rhev-h and its registered to the rhevm, then its not possible to change any of the field(either IP or hostname). The only way is to do a fresh reinstallation of the rhev-h and register it to the rhevm again.
Thanks,
Uday
The address field of the RHEV-H, which can be either be FQDN of the RHEV-H or the IP.
>>The only way is to do a fresh reinstallation of the rhev-h and register it to the rhevm again.
That's a bit tedious to change such a trivial thing.
Par,
I had a wrong line earlier. Re-installation is not required. Its re-registration of the rhev-H after making the necessary IP or FQDN change.
Please take a look into the following Red Hat Knowledge Base:
https://access.redhat.com/site/solutions/168983
In the above KCS, the IP change process is mentioned but if you will try in the same way for the FQDN then it should work.
If you have multiple logical network then also it should work properly.
Thanks,
Uday
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
