echo '192.168.0.27 KVM' >> /etc/hosts rm -rf /etc/yum.repos.d/* cat >> /etc/yum.repos.d/CentOS-Media.repo << EOF [c5-media] name=CentOS-\$releasever - Media baseurl=file:///misc/sysimage/ gpgcheck=0 enabled=1 EOF echo 'sysimage kvm:/media/CentOS58' >> /etc/auto.misc