Build Private Cloud with OpenStack Kolla-ansible Step by Step Guide 1.0 -Part 8 - Openstack Upload Image
1 min readJan 23, 2022
Index
Part 3 Prepare Docker Registry
Part 5-Ceph Cluster Troubleshooting
Part 6-Deploy Openstack with Kolla-ansible
Part 7-Openstack Cluster Post Installation
Download image from openstack
https://docs.openstack.org/image-guide/obtain-images.html
Convert image to RAW
Since we’re using ceph RBD, RAW format image will significantly boost up VM start up time, QCOW2 image works though but you lost the benefit of Ceph RBD.
source admin-openrc.sh
root@openstack-staging:/home/kevin# qemu-img convert focal-server-cloudimg-amd64.img focal-server-cloudimg-amd64.raw
Upload image
source admin-openrc.sh
root@ems-la4-staging:~/openstack/images# openstack image create "Ubuntu Server 20.04" --file focal-server-cloudimg-amd64.raw --disk-format raw --container-format bare --property hw_qemu_guest_agent=yes --property os_type=linux --public
root@ems-la4-staging:~/openstack/images# openstack image create Fedora-CoreOS --file=fedora-coreos-32.20201004.3.0-openstack.x86_64.raw --disk-format=raw --container-format=bare --property os_distro='fedora-coreos' --public
source octavia-openrc.sh
root@ems-la4-staging:~/openstack/images# openstack image create "amphora-x64-haproxy" --file ./amphora-x64-haproxy.raw --disk-format raw --container-format bare --tag amphora