glance 镜像导入

基于rbd存储, 上传glance镜像

1
2
3
4
5
6
7
8
openstack image create "CentOS 7.6 64bit" \
--disk-format raw --container-format bare \
--public --min-disk 50 \
--property hw_disk_bus=scsi --property hw_scsi_model=virtio-scsi \
--property hw_video_model=qxl --property vm_mode=hvm \
--property os_distro=centos \
--property os_type=linux \
--property hw_qemu_guest_agent=yes

#rbd -p sata_pool1 import –image-format 2 CentOS76.raw

#rbd -p sata_pool1 snap create –image CentOS76.raw –snap snap

#rbd -p sata_pool1 snap protect –image CentOS76.raw –snap snap

#glance location-add –url rbd://$ceph_fsid/sata_pool1/CentOS76.raw/snap $image_uuid