|
|
|
@ -10,7 +10,8 @@ |
|
|
|
|
├── control # 控制脚本目录 |
|
|
|
|
│ ├── KVMInstall.sh # kvm服务安装脚本 |
|
|
|
|
│ ├── VMHost.sh # kvm虚拟机克隆脚本 |
|
|
|
|
│ └── VMTemplate.sh # kvm模板机安装脚本 |
|
|
|
|
│ ├── VMTemplate.sh # kvm模板机安装脚本 |
|
|
|
|
| └── ks.cfg.temp # 自动安装模板 |
|
|
|
|
├── mount # 此目录保持为空,为克隆时临时挂载使用 |
|
|
|
|
├── README.md |
|
|
|
|
├── template # 模板文件存放位置 |
|
|
|
@ -29,9 +30,6 @@ |
|
|
|
|
宿主机: cd kvm |
|
|
|
|
宿主机: sh KVMInstall.sh # 安装KVM服务 |
|
|
|
|
宿主机: sh VMTemplate.sh # 安装模板机 |
|
|
|
|
宿主机: virsh console template # 进入模板机,安装python3 |
|
|
|
|
template: yum install -y python3 python3-devel |
|
|
|
|
template: pip3 install requests httpsig -i https://mirrors.aliyun.com/pypi/simple |
|
|
|
|
宿主机: sh VMHost.sh -a 192.168.96.223 -p 6667 -n vmtest1 -c 2 -m 4096 |
|
|
|
|
[root@kvm-server control]# sh VMHost.sh |
|
|
|
|
"Usage: $0 [OPTION]..." |
|
|
|
|