Cobbler? 定义重装
当现有虚拟机运? 出现故障后, 需要进? 重装操作, 可通过 koan 进? 重装系统
将 CentOS6 重装成 CentOS7
1. 客户端安装 koan
- # 下载当前系统对应的 epel 源 (Centos6)
- [root@localhost ~]# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
- # 安装 koan
- [root@localhost ~]# yum install -y koan
2. 指定对应 profile 重装操作系统
- # 客户端列出 Cobbler Server 端存在的 profile
- [root@localhost ~]# koan --server=10.0.0.202 --list=profiles
- CentOS-7-x86_64-web
- # 选择对应配置即可 (执行完该命令会显示一堆信息)
- [root@localhost ~]# koan --replace-self --server=10.0.0.202 --profile=CentOS-7-x86_64-Web
- #replace-self 将当前系统更换
3, 重启客户端, 客户端? 动进? 重装
[root@localhost ~]# reboot
来源: http://www.bubuko.com/infodetail-2922471.html