Saturday, August 2, 2014

Setting up local repository using centOS07 iso in centOS07

for setting up repository in centos7 using centos7 iso image

below are the steps i followed to setup



yum install createrepo

mkdir -p /mnt/iso/centos07
mount -o loop /home/arvind/CentOS-7.0-1406-x86_64-Everything/CentOS-7.0-1406-x86_64-Everything.iso /mnt/iso/centos07

# cd /mnt/iso
# createrepo .


#yum clean all

#vi /etc/yum.repos.d/iso.repo
Append following text:
[My_ISO_Repository]
baseurl=file:///mnt/iso
enabled=1

#save and close the file

take backup of everything in /etc/yum.repos.d/ to safe place
i have only iso.repo (created above) in directory /etc/yum.repos.d/ because i do not want to use package
from internet

# yum install package-name

Stop Linux Firewall and disable selinux for clustered database issue "No Local Node Error"

step 1- stop firewall

sudo service iptables stop
sudo chkconfig iptables off

step 2- disable selinux in file /etc/sysconfig/selinux and save it ,,reboot the machine

How to access vm(centos on virtualbox ) from host(Ubuntu)

step 1. create two network adapter one bridged network and host only adapter(create it using file-->preferences-->network-->Host only network-->add host network)

Step 2. login in vm and run renew ip using dhclient -r and dhclient

Step 3. machine will get ip and access ip from local machine