📘 Day 52 (2025.08.26.TUE) - OpenStack 설치(3)

📊 Horizon 로그인 에러 해결

https → http로 수정 후 재시작.

sudo nano /etc/openstack-dashboard/local_settings.py
OPENSTACK_KEYSTONE_URL = "http://192.168.0.198:5000/v3"

sudo systemctl restart memcached
sudo systemctl restart apache2

RabbitMQ 접속: http://192.168.0.194:15672

ID: test / Password: test

🖼️ 클라우드 이미지 준비

대시보드 접근 후 사용할 실전용 Ubuntu 이미지 등록:

wget http://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img
modprobe nbd
qemu-nbd --connect=/dev/nbd0 ubuntu-22.04-server-cloudimg-amd64.img
mount /dev/nbd0p1 /mnt

암호 없는 기본 사용자(ubuntu) 로그인 가능하도록 수정:

nano /mnt/etc/cloud/cloud.cfg

ssh_pwauth: true
system_info:
# This will affect which distro class gets used
distro: ubuntu
# Default user name + that default users groups (if added/used)
default_user:
name: ubuntu
lock_passwd: False
gecos: Ubuntu
umount /mnt
qemu-nbd --disconnect /dev/nbd0p1

이미지 업로드:

openstack image create "Ubuntu2204" \
--file ubuntu-22.04-server-cloudimg-amd64.img \
--disk-format qcow2 --container-format bare --public
openstack image list
openstack image show cirros
💻 Compute 노드 설정

Compute 서비스 설치 및 VNC 설정.

apt -y install nova-compute nova-compute-kvm

nano /etc/nova/nova.conf

[vnc] 설정 추가:

[vnc]
enabled = True
server_listen = 0.0.0.0
server_proxyclient_address = 192.168.0.198
novncproxy_host = 0.0.0.0
novncproxy_port = 6080
novncproxy_base_url = http://192.168.0.198:6080/vnc_auto.html
systemctl restart nova-compute
su -s /bin/bash nova -c "nova-manage cell_v2 discover_hosts"
systemctl status nova-compute

컨트롤러 노드에서 확인:

openstack compute service list