CentOS-7-x86_64-GenericCloud.qcow2镜像配置实例密码

openstack环境中,使用官方镜像CentOS-7-x86_64-GenericCloud.qcow2,不知道默认密码,可以在创建实例时候配置脚本写入root密码

执行脚本

#!/bin/bash
passwd root<<EOF
1234qwer
1234qwer
EOF

 

posted @ 2020-08-24 18:28  chili7  阅读(4961)  评论(0编辑  收藏  举报