Page 1 of 1
Changing the XI Virtual Machine Network Configuration
Posted: Wed May 01, 2013 7:04 pm
by lyle
In regards to the article "Changing the XI Virtual Machine Network Configuration", if the VM never gets any initial network info from DHCP, you can't really "yum install" anything, or is there a trick?
I mean until the VM gets an IP and default route, it can't really get anyplace. At least mine can't.
Unfortunately first try at editing ifcfg-eth0 by hand means it won't boot at all.
Thanks...Lyle
Re: Changing the XI Virtual Machine Network Configuration
Posted: Thu May 02, 2013 9:26 am
by lmiltchev
You are correct - you can't run "yum install" in this case, however this tutorial describes cases, when you need to use a static IP, or change the DNS name for the machine, provided you've obtained an IP via DHCP already. If you do a minimal install, you will have to edit the "ifcfg-eth0" file:
Code: Select all
vi /etc/sysconfig/network-scripts/ifcfg-eth0
Make sure you have the following two lines:
Restart the network to obtain an IP address:
In addition, you can configure a static IP in the ifcfg-eth0. Please, review this guide:
http://www.lifelinux.com/how-to-configu ... on-centos/
Re: Changing the XI Virtual Machine Network Configuration
Posted: Thu May 02, 2013 3:16 pm
by lyle
That guide was pretty good, but no matter how I tried, the VM would not withstand a reboot, just kept hanging up on the boot.
Finally after several reinstalls of the OVA, I manually reconfigured & restarted the network, did not reboot, and used that opportunity to install system-config-network-tui. Using that tool to set the static IP did make the VM bootable.
Your doc "Virtual Machine Notes" doesn't mention that one has to run /usr/local/installNagiosXI.sh
Thanks for the help....Lyle
Re: Changing the XI Virtual Machine Network Configuration
Posted: Thu May 02, 2013 3:31 pm
by slansing
Your doc "Virtual Machine Notes" doesn't mention that one has to run /usr/local/installNagiosXI.sh
Could you elaborate on what you mean by running "/usr/local/installNagiosXI.sh?"
Re: Changing the XI Virtual Machine Network Configuration
Posted: Thu May 02, 2013 5:34 pm
by lyle
I downloaded "vSphere OVF Template 64-bit 2012R1.8" from the Nagios XI Downloads page. I deployed the VM under ESX 5.1, and *finally* getting the networking to work (no DHCP here, only static IP's).
But none of the Nagios products were installed. Looking under /usr/local I found the "installNagiosXI.sh" script, which checks to see if XI is installed, and downloads & installs if not. I had to run this script, which did a fine job of installing all the products mentioned in the "Virtual Machine Notes" doc, then rebooted.
So it was a happy ending, but the doc should probably mention this. Hope this helps....Lyle
Re: Changing the XI Virtual Machine Network Configuration
Posted: Thu May 02, 2013 7:38 pm
by scottwilkerson
Glad you got it working. I believe this is a bug in the latest vSphere OVF Template 64-bit 2012R1.8, I will be checking into this