2024. 1. 15. 05:27ㆍ사설 클라우드/openstack
참고 사이트
https://docs.openstack.org/kolla-ansible/2023.1/user/quickstart.html
Quick Start for deployment/evaluation — kolla-ansible 16.2.1.dev52 documentation
Quick Start for deployment/evaluation This guide provides step by step instructions to deploy OpenStack using Kolla Ansible on bare metal servers or virtual machines. For developers we have the developer quickstart. Recommended reading It’s beneficial to
docs.openstack.org
설치 사양
VMware Workstation PRO 17
Image : Ubuntu.22.04.3-live-server-amd64
CPU : 4 processors / 1 core per processor
RAM : 16G
Disk : 40G
Network : NAT 2개
필수 설치 유틸
apt update
apt install -y vim net-tools inetutils-ping wget tmux
apt install -y git python3-dev libffi-dev gcc libssl-dev python3-pip
apt install -y python3-venv
pip install docker
가상환경 진입
python3 -m venv /root/python3
source /root/python3/bin/activate
ansible 설치
pip install -U pip
pip install 'ansible>=6,<8'
pip install git+https://opendev.org/openstack/kolla-ansible@stable/2023.1
mkdir -p /etc/kolla
chown $USER:$USER /etc/kolla
cp -r /root/python3/share/kolla-ansible/etc_examples/kolla/* /etc/kolla
cp /root/python3/share/kolla-ansible/ansible/inventory/all-in-one .
kolla-ansible install-deps
# 비밀번호 생성
# /etc/kolla/passwords.yml 에서 비밀번호 확인 가능
kolla-genpwd
/etc/kolla/globals.yml 설정파일 수정
kolla_base_distro: "ubuntu"
kolla_internal_vip_address: "10.0.2.10"
network_interface: "ens32"
neutron_external_interface: "ens33"
enable_haproxy: "no"
nova_compute_virt_type: "qemu"
kolla-ansible을 이용한 openstack 설치
kolla-ansible -i ./all-in-one bootstrap-servers
kolla-ansible -i ./all-in-one prechecks
kolla-ansible -i ./all-in-one deploy
pip install python-openstackclient -c https://releases.openstack.org/constraints/upper/2023.1
kolla-ansible post-deploy
# admin-openrc.sh 생성됨
재설치 시 destroy 명령어
kolla-ansible -i ./all-in-one destroy --yes-i-really-really-mean-it
설치 완료 시 확인 사항
sysctl -a | grep forward
# 패킷을 다른 인터페이스로 전달되지 않도록 아래 항목 확인
net.ipv4.ip_forward = 0
'사설 클라우드 > openstack' 카테고리의 다른 글
OpenStack 운영 (1) | 2024.03.04 |
---|---|
Cinder 설치 [kolla-ansible] (0) | 2024.01.22 |
인스턴스 통신 (0) | 2023.09.05 |
인스턴스 생성 (0) | 2023.09.04 |
Openstack 기본 실습 (0) | 2023.09.04 |