官方镜像下载地址:http://cloud.centos.org/centos/ OpenStack环境中,使用官方镜像CentOS-7-x86_64-GenericCloud.qcow2,我们不知道镜像的默认密码,可以在创建实例时候配置脚本写入root密码。 操作方法 在创建实例——定制化脚本的输入框中输入以下内容 #!/bin/bash passwd root<<EOF 1234qwer 1234qwer EOF