1. 네트워크 구성
* 외부접속 : 192.168.0.0/24, Gateway : 192.168.0.254
* 내부접속 : 10.10.10.0/24, Gateway : 10.10.10.1
root@controller:~# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 controller
#controller
192.168.0.221 controller
#network
192.168.0.222 network
#compute
192.168.0.223 compute1
192.168.0.224 compute2
192.168.0.225 compute3
192.168.0.226 compute4
* Interface 설정 : Controller/Compute 노드는 2개의 인터페이스, Network(Neutron) 노드는 3개의 인터페이스 필요
- Cotroller
root@controller:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.221
netmask 255.255.255.0
gateway 192.168.0.254
dns-nameservers 168.126.63.1
auto eth1
iface eth1 inet static
address 10.10.10.221
netmask 255.255.255.0
- Network
root@network:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.222
netmask 255.255.255.0
gateway 192.168.0.254
dns-nameservers 168.126.63.1
auto eth1
iface eth1 inet static
address 10.10.10.222
netmask 255.255.255.0
auto eth2
iface eth2 inet manual
up ip link set dev $IFACE up
down ip link set dev $IFACE down
- Compute1
root@compute1:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.223
netmask 255.255.255.0
gateway 192.168.0.254
dns-nameservers 168.126.63.1
auto eth1
iface eth1 inet static
address 10.10.10.223
netmask 255.255.255.0
2. Ubuntu 구성
(1) OS 설치
- SSH 활성화
(2). sudo 구성
$ sudo vi /etc/sudoers
stack ALL=NOPASSWD: ALL
(3) root 유저 passwd 구성
$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
(4). Ubuntu 1차 update
/etc/apt/sources.list 수정 (us.archive.ubuntu.com -> ftp.daum.net)
:1,$s/us.archive.ubuntu.com/ftp.daum.net/g
# old ubuntu 지원 중단 되어 OS update를 먼저 수행 해야 함
$ sudo apt-get update
$ sudo apt-get dist-upgrade
# neutron 최신 드라이버 구성을 위한 커널 업데이트
$ sudo apt-get install linux-image-generic-lts-saucy linux-headers-generic-lts-saucy
$ sudo reboot
(5) OpenStack Icehouse repository 설치
$ sudo apt-get install python-software-properties
$ sudo add-apt-repository cloud-archive:icehouse
$ sudo apt-get update
$ sudo apt-get dist-upgrade
$ sudo reboot
'IT > openstack' 카테고리의 다른 글
OpenStack 설치 (4) - Network 노드 (Neutron) (0) | 2015.08.19 |
---|---|
OpenStack 설치 (3) - Controller 노드 (0) | 2015.08.19 |
OpenStack 설치 (2) - 공통환경 (NTP, MySQL) (0) | 2015.08.19 |
Ubuntu 이전 버전의 apt-get 오류 발생 시 (0) | 2015.07.29 |
OpenStack API 개발 관련 사이트 (0) | 2015.05.21 |