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 
posted on 2012-05-24 16:32  一个人的天空@  阅读(167)  评论(0编辑  收藏  举报