配置Cobbler装机平台
1)虚拟机名设置为Cobbler
2)IP地址设置为:192.168.4.123/24
3)关闭SELinux安全机制
4)设置防火墙默认区域为trusted
1. 在虚拟机中解压cobbler.zip包
此cobbler.zip包,起初应该在真机上,可以通过scp命令传递到虚拟机。
1)将真机cobbler.zip包传递到虚拟机中/root目录下,注意真机cobbler.zip绝对路径
[root@room9pc01 桌面]# scp -r /root/桌面/Cobbler/ root@192.168.4.123:/root/
The authenticity of host ‘192.168.4.123 (192.168.4.123)’ can’t be established.
ECDSA key fingerprint is SHA256:TFNqSD+oJMsA88kLwSdLSKZhSigkQIIAfrXLdKoUaJA.
ECDSA key fingerprint is MD5:f9:b8:7d:8d:ca:4e:20:0d:10:c4:72:a5:9f:42:28:8e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘192.168.4.123’ (ECDSA) to the list of known hosts.
root@192.168.4.123’s password:
cobbler_web.png 100% 78KB 6.7MB/s 00:00
cobbler.zip 100% 9781KB 61.1MB/s 00:00
cobbler_boot.tar.gz 100% 416KB 45.7MB/s 00:00
[root@room9pc01 桌面]#
2)确认虚拟机中的目录内容
[root@cob ~]# ls /root/Cobbler/
cobbler_boot.tar.gz cobbler_web.png cobbler.zip
[root@cob ~]#
2. 搭建Yum仓库,安装Cobbler
1)将cobbler.zip包,解压缩到根目录下
[root@cob ~]# unzip /root/Cobbler/cobbler.zip -d /
……
[root@cob ~]# ls /cobbler/
……
2)搭建Yum仓库,利用yum安装所有rpm软件包
[root@cob ~]# mount /dev/cdrom /mnt/ #首先通过图形将CentOS光盘放入光驱设备
mount: /dev/sr0 写保护,将以只读方式挂载
[root@cob ~]#