Setting up a local YUM repository for OVM

This can be executed on any linux server ( even a vm in the current OVM pool )

Apache

  • Install and start HTTP server

yum install httpd

service httpd start

chkconfig –levels 235 httpd on

  • Adjust the apache config, set the documentroot in /etc/httpd/conf/httpd.conf to the value you want as root for the repo’s.

DocumentRoot “/opt/soft/OVM3-YUM”

  • Restart the Apache service to make the change active.

service httpd restart

Repo

  • Create the required subdirectories
mkdir /opt/soft/OVM3-YUM/3.0.3
  • Mount and copy the rpm’s
mount -o loop /opt/soft/OVM3/OVM-3.0.3.iso /cdrom
cd /cdrom
cp -rp Server/* /opt/soft/OVM3-YUM/3.0.3/.
  • You can now access the repo using http

http://<ip>/3.0.3

Clients

  • On the different OVM Servers you can create a file :  /etc/yum.repos.d/mylocal.repo with the following contents :
[base-local]
name=OVM 3.0.3
failovermethod=priority
baseurl=http://<ip>/3.0.3/
enabled=1
gpgcheck=0
  • Or in OVM Manager Fill in the details in the yum repository settings.

Update

  • Update your system using yum update or using the OVM Manager.

 

 

Advertisements

Upgrading OVM Manager 3.0.2 to 3.0.3

  • Mount the ovm-upgrade cd

# mount -o loop V29654-01.iso /cdrom

  • Run the Upgrade

# cd /cdrom

# ./runUpgrader.sh

upgrade: line 174: /u01/app/oracle/ovm-manager-3/.config: No such file or directory

  • We ran into an issue with a missing .config file. Bases on other installs I found how the file should look, so I just created a new file with the information :
DBHOST=oem12rep
SID=OEMREP
LSNR=1521
APEX=8080 ( default )
OVSSCHEMA=ovs
WLSADMIN=weblogic ( default )
OVSADMIN=admin ( default )
COREPORT=54321 ( default )
UUID=0004fb0000010000601287fc46b3fab3 ( Can be found by checking the .ovsrepo file in the root of your repostiory )
  • Run the Upgrade again, it will work now and after upgrade the .config file looks like this :
DBHOST=oem12rep
SID=OEMREP
LSNR=1521
APEX=8080
OVSSCHEMA=ovs
WLSADMIN=weblogic
OVSADMIN=admin
COREPORT=54321
UUID=0004fb0000010000601287fc46b3fab3
BUILDID=3.0.3.126