OpenStack镜像服务 - 以Centos 8.0为例
1. 下载 CentoOS8 通用云镜像
修改镜像中root 的密码
# sudo apt install libguestfs-tools
- 固定密码
# sudo virt-customize -a CentOS-7-x86_64-GenericCloud-1703.qcow2 --root-password password:mypassword
- 随机密码
# sudo virt-customize -a CentOS-7-x86_64-GenericCloud-1703.qcow2 --root-password random
2. 在OpenStack中创建镜像
3. 创建实例
4. 登录 CentOS