如何生成一个centos 10和centos 9 的镜像
1. 下载 对应的版本
wget https://cloud.centos.org/centos/10-stream/x86_64/images/CentOS-Stream-GenericCloud-x86_64-10-latest.x86_64.qcow2
wget https://cloud.centos.org/centos/9-stream/x86_64/images/CentOS-Stream-GenericCloud-9-20241216.0.x86_64.qcow2
2 生成镜像
glance image-create --name centos10 --disk-format=qcow2 --container-format=bare --file=/root/CentOS-Stream-GenericCloud-10-latest.x86_64.qcow2
glance image-create --name centos9 --disk-format=qcow2 --container-format=bare --file=/root/CentOS-Stream-GenericCloud-9-20241216.0.x86_64.qcow2
由于镜像的root密码不知道,通过下面的命令不能改变密码。
systemctl start libvirtd
export LIBGUESTFS_BACKEND=direct
virt-customize -a CentOS-Stream-GenericCloud-10-latest.x86_64.qcow2 --root-password password:xxxxx
但是通
openstack下如何生成centos9 centos10 和Ubuntu24 镜像
最新推荐文章于 2025-04-17 13:17:51 发布