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 /cdromcd /cdromcp -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.3failovermethod=prioritybaseurl=http://<ip>/3.0.3/enabled=1gpgcheck=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.
