반응형
1. 서버 사양
- OS : Ubuntu 22.04
- 인스턴스 유형 : t3.large
- 스토리지 : 100GB
2. 사용자 계정 설정
- DevStack은 root가 아닌 일반 사용자 계정에서 설치 권장
$ sudo adduser stack
$ echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
3. DevStack 다운로드
$ su - stack
$ git clone <https://opendev.org/openstack/devstack>
$ cd devstack/
4. local.conf 설정
- /devstack/samples/local.conf 를 /devstack/local.conf 로 복사
stack@ip-10-0-0-37:~/devstack$ ifconfig
br-ex: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.24.4.1 netmask 255.255.255.0 broadcast 0.0.0.0
inet6 fe80::a0ca:a4ff:fe62:f54f prefixlen 64 scopeid 0x20<link>
inet6 2001:db8::2 prefixlen 64 scopeid 0x0<global>
ether a2:ca:a4:62:f5:4f txqueuelen 1000 (Ethernet)
RX packets 4 bytes 112 (112.0 B)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 12 bytes 1272 (1.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9001
inet 10.0.0.37 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::f8:d6ff:fe88:d1a9 prefixlen 64 scopeid 0x20<link>
ether 02:f8:d6:88:d1:a9 txqueuelen 1000 (Ethernet)
RX packets 141394 bytes 194717003 (194.7 MB)
RX errors 0 dropped 387 overruns 0 frame 0
TX packets 29137 bytes 5474033 (5.4 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 238265 bytes 109863769 (109.8 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 238265 bytes 109863769 (109.8 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:eb:17:8d txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
$ cp samples/local.conf local.conf
$ vim local.conf
[[local|localrc]]
.
.
.
ADMIN_PASSWORD=nomoresecret
DATABASE_PASSWORD=stackdb
RABBIT_PASSWORD=stackqueue
SERVICE_PASSWORD=$ADMIN_PASSWORD
# ``HOST_IP`` and ``HOST_IPV6`` should be set manually for best results if
# the NIC configuration of the host is unusual, i.e. ``eth1`` has the default
# route but ``eth0`` is the public interface. They are auto-detected in
# ``stack.sh`` but often is indeterminate on later runs due to the IP moving
# from an Ethernet interface to a bridge on the host. Setting it here also
# makes it available for ``openrc`` to include when setting ``OS_AUTH_URL``.
# Neither is set by default.
HOST_IP=192.168.122.1
.
.
.
5. DevStack 실행
$ ./stack.sh
.
.
.
This is your host IP address: 192.168.122.1
This is your host IPv6 address: ::1
Horizon is now available at <http://192.168.122.1/dashboard>
Keystone is serving at <http://192.168.122.1/identity/>
The default users are: admin and demo
The password: nomoresecret
.
.
.
6. 접속 확인
반응형