o/s 버전 : rocky 9.x
1. 기본패키지 설치
1 |
[root@controller ~]# yum install openstack-octavia-diskimage-create debootstrap python3-octaviaclient qemu-img git e2fsprogs policycoreutils-python-utils |
2. 공홈에서 데이터 다운로드 및 설치
1 2 3 4 5 |
[root@controller src]# git clone https://opendev.org/openstack/octavia.git [root@controller src]# cd octavia/diskimage-create/ [root@controller diskimage-create]# pip3 install requirements.txt |
3. 이미지 생성
1 |
[root@controller diskimage-create]# ./diskimage-create.sh |
4. 이미지가 생성이 되었으면
1 2 |
[root@controller diskimage-create]# ls -l amphora-x64-haproxy.qcow2 -rw-r--r-- 1 root root 360333312 7월 25 15:04 amphora-x64-haproxy.qcow2 |
5. 이미지 업로드
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
[root@controller diskimage-create]# openstack image create "Amphora" --tag "Amphora" --file amphora-x64-haproxy.qcow2 --disk-format qcow2 --container-format bare --public --project service +------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value | +------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ | container_format | bare | | created_at | 2024-07-25T06:10:51Z | | disk_format | qcow2 | | file | /v2/images/ae1c051d-6a4f-42bb-96bb-e3d95f602a34/file | | id | ae1c051d-6a4f-42bb-96bb-e3d95f602a34 | | min_disk | 0 | | min_ram | 0 | | name | Amphora | | owner | 1a7014acfe214850adb1007b9fc98bee | | properties | os_hidden='False', owner_specified.openstack.md5='', owner_specified.openstack.object='images/Amphora', owner_specified.openstack.sha256='' | | protected | False | | schema | /v2/schemas/image | | status | queued | | tags | Amphora | | updated_at | 2024-07-25T06:10:51Z | | visibility | public | +------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ |