Last active
June 28, 2024 12:42
-
-
Save ianychoi/d7ecbe8ba1637461bad89aea17b68e52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. DevStack | |
- http://docs.openstack.org/developer/devstack/ | |
- 환경: Ubuntu 16.04 Server (14.04도 무관) | |
1) Ubuntu 가상 머신을 설치 후 최신으로 업데이트 | |
## 설치시: 두 번째 어댑터에 기본 host-only 네트워크 추가 | |
# apt-get update | |
===> # apt update | |
# apt-get upgrade | |
===> # apt upgrade | |
# apt-get dist-upgrade | |
===> # apt dist-upgrade | |
2) 해당 가상머신을 종료하고 스냅샷을 찍어둠 (권장) | |
3) DevStack 소스 클론 | |
## Ubuntu 16.04는 -b 옵션을 사용하지 않는 것을 권장 | |
$ git clone [-b stable/mitaka] git://git.openstack.org/openstack-dev/devstack.git | |
4) eth1 (16.04: enp0s8) 네트워크 인터페이스 IP 주소 설정 | |
$ sudo vi /etc/network/interfaces | |
==> eth1 정보 추가 | |
## DHCP 설정 [1] | |
auto enp0s8 | |
iface enp0s3 inet dhcp | |
## IP 주소 수동 설정 [2] | |
auto enp0s8 | |
iface enp0s3 inet static | |
address 192.168.56.101 | |
netmask 255.255.255.0 | |
## [참고] IP를 할당하지 않는 설정 | |
auto enp0s8 | |
iface enp0s3 inet manual | |
up ip link set dev $IFACE up | |
down ip link set dev $IFACE down | |
$ sudo ifup eth1 | |
## ifconfig eth0 up => 별도의 설정 파일을 사용하지 않고 직접 up | |
## ifup eth0 => /etc/network/interfaces 파일 참고하여 up | |
## ifdown enp0s8 && ifup enp0s8 # enp0s8 장치를 down&up | |
5) 터미널로 접속 | |
$ ssh stack@192.168.56.101 | |
case 1) password를 바로 묻는 경우: 기존에 접속한 경우가 있을 때 | |
case 2) “The authenticity of host” 메시지 -> 접속 처음 시도 | |
case 3) “WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!” 메시지 | |
-> ~/.ssh/known_hosts 파일에서 해당 IP 주소가 있는 목록 제거 | |
6) local.conf 다운로드 https://goo.gl/x93SoS | |
=> $ cd devstack | |
$ wget -O local.conf https://goo.gl/x93SoS | |
7) $ ./stack.sh 실행 | |
## “[sudo] password for (username) : “ 으로 물어볼 수 있음 | |
8) iptables로 masquerading을 추가해 준다. | |
$ sudo iptables –t nat –A POSTROUTING –o enp0s3 –j MASQUERADE | |
(14.04: enp0s3 -> eth0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment