Difference between revisions of "DevStack: Install OpenStack"

From OnnoWiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Persiapan VM==
 
==Persiapan VM==
  
Siapkan VM di VirtualBox
+
Siapkan VM di VirtualBox (Mungkin yang aman Ubuntu 16.04)
  
 
* Memory 4GB
 
* Memory 4GB
Line 9: Line 9:
  
 
'''WARNING:''' DevStack akan mengubah sistem habis-habisan saat instalasi. Jalankan DevStack pada server / mesin virtual yang di dedikasikan untuk keperluan tersebut.
 
'''WARNING:''' DevStack akan mengubah sistem habis-habisan saat instalasi. Jalankan DevStack pada server / mesin virtual yang di dedikasikan untuk keperluan tersebut.
 
  
 
==Siapkan Repo & User==
 
==Siapkan Repo & User==
Line 17: Line 16:
  
 
Edit /etc/apt/sources.list, tambahkan universe dan multiverse
 
Edit /etc/apt/sources.list, tambahkan universe dan multiverse
 +
 +
deb http://archive.ubuntu.com/ubuntu xenial main universe multiverse
 +
deb http://archive.ubuntu.com/ubuntu xenial-security main universe multiverse
 +
deb http://archive.ubuntu.com/ubuntu xenial-updates main universe multiverse
 +
 +
Untuk 18.04
  
 
  deb http://archive.ubuntu.com/ubuntu bionic main universe multiverse
 
  deb http://archive.ubuntu.com/ubuntu bionic main universe multiverse
Line 55: Line 60:
 
==Instalasi==
 
==Instalasi==
  
Jalankan
+
Jalankan (mungkin perlu beberapa kali menjalankan ini)
  
 
  ./stack.sh
 
  ./stack.sh
  
Hasilnya
+
Contoh Hasil Akhirnya
 +
 
 +
This is your host IP address: 192.168.0.107
 +
This is your host IPv6 address: fe80::a00:27ff:fe7d:33c6
 +
Horizon is now available at http://192.168.0.107/dashboard
 +
Keystone is serving at http://192.168.0.107/identity/
 +
The default users are: admin and demo
 +
DevStack Version: train
 +
Change: 0cb721b790baa8f2929f716dc8945f4bfd25f08f Merge "Fix is_neutron_legacy_enabled function"  2019-05-04 22:38:45 +0000
 +
OS Version: Ubuntu 16.04 xenial
 +
2019-05-10 02:03:55.964 | stack.sh completed in 1312 seconds.
 +
 
 +
Atau di 18.04
 +
 
  
 
  This is your host IP address: 192.168.0.3
 
  This is your host IP address: 192.168.0.3

Latest revision as of 09:05, 10 May 2019

Persiapan VM

Siapkan VM di VirtualBox (Mungkin yang aman Ubuntu 16.04)

  • Memory 4GB
  • Akses ke Internet
  • Terbuka port 22 dan 80 untuk di akses dari laptop.
  • Ubuntu Server kosong dapat digunakan.

WARNING: DevStack akan mengubah sistem habis-habisan saat instalasi. Jalankan DevStack pada server / mesin virtual yang di dedikasikan untuk keperluan tersebut.

Siapkan Repo & User

SSH ke VM.


Edit /etc/apt/sources.list, tambahkan universe dan multiverse

deb http://archive.ubuntu.com/ubuntu xenial main universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-security main universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates main universe multiverse

Untuk 18.04

deb http://archive.ubuntu.com/ubuntu bionic main universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-security main universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe multiverse

Save dan update

apt update


Buat user stack (sudoer) untuk menjalankan DevStack,

sudo useradd -s /bin/bash -d /opt/stack -m stack
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack

Pindah user

sudo su - stack

Download & Setup

Download

git clone https://git.openstack.org/openstack-dev/devstack

Edit

cd devstack/
vi local.conf
localrc
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD

Instalasi

Jalankan (mungkin perlu beberapa kali menjalankan ini)

./stack.sh

Contoh Hasil Akhirnya

This is your host IP address: 192.168.0.107
This is your host IPv6 address: fe80::a00:27ff:fe7d:33c6
Horizon is now available at http://192.168.0.107/dashboard
Keystone is serving at http://192.168.0.107/identity/
The default users are: admin and demo
DevStack Version: train
Change: 0cb721b790baa8f2929f716dc8945f4bfd25f08f Merge "Fix is_neutron_legacy_enabled function"  2019-05-04 22:38:45 +0000
OS Version: Ubuntu 16.04 xenial
2019-05-10 02:03:55.964 | stack.sh completed in 1312 seconds.

Atau di 18.04


This is your host IP address: 192.168.0.3
This is your host IPv6 address: fe80::a00:27ff:fe33:525
Horizon is now available at http://192.168.0.3/dashboard
Keystone is serving at http://192.168.0.3/identity/
The default users are: admin and demo
The password: secret
DevStack Version: train
OS Version: Ubuntu 18.04 bionic
2019-05-07 03:57:31.386 | stack.sh completed in 3869 seconds.

Waktu instalasi tergantung akses Internet yang kita miliki.

Akses Dashboard

URL

http://<HOST_IP>/dashboard
User      demo atau admin
password  sesuai local.conf

Referensi