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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s