Open stack 4day

32
OpenStack 4 th days KOSS Lab. Mario Cho [email protected]

Transcript of Open stack 4day

Page 1: Open stack 4day

OpenStack4th days

KOSS Lab.Mario Cho

[email protected]

Page 2: Open stack 4day

Who am I ?Development Experience◆ Image Recognition using Neural Network◆ Bio-Medical Data Processing◆ Human Brain Mapping on High Performance

Computing◆ Medical Image Reconstruction

(Computer Tomography) ◆ Enterprise System◆Open Source Software Developer

Open Source Software Developer◆ Linux Kernel & LLVM ◆ OPNFV (NFV&SDN) & OpenStack◆ Machine Learning (TensorFlow)

Book◆ Unix V6 Kernel

Korea Open Source Software Lab.Mario Cho

[email protected]

Page 3: Open stack 4day

Packstack 준비• # yum update –y• # setenforce 0• # edit /etc/selinux/config -> Edit (vi or nano) selinux disabled 확인 • # # systemctl stop firewalld• # systemctl disable firewalld• # systemctl disable NetworkManager• # systemctl disable NetworkManager• # yum install gcc python-devel• # rmp –iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-

7.8.noarch.rpm• # yum install python-pip• # pip install oslo.concurrency• # pip install netifaces• # yum install –y http://rdoproject.org/repos/openstack-liberty.rpm• # yum install openstack-packstack• # packstack --gen-answer-file=/root/answer.txt

Page 4: Open stack 4day

Edit answer.txt• # NTP Server• CONFIG_NTP_SERVERS=<NTP_Server_IP>

• # Disable Demo Version• CONFIG_PROVISION_DEMO=n

• # Set KeyStone Admin Password or Admin user Password• CONFIG_KEYSTONE_ADMIN_PW=<password>

• # Config Horizon over SSL• CONFIG_HORIZON_SSL=y

• # Disable Nagios• CONFIG_NAGIOS_INSTALL=n

Page 5: Open stack 4day

Packstack 설치• # Edit (vi or nano) /root/answer.txt• # packstack --answer-file /root/answer.txt

Page 6: Open stack 4day

• Identity Tab –> Projects and Click on Create Project.

Page 7: Open stack 4day

• Identify Tab–> Users–> Click on ‘Create User’

Page 8: Open stack 4day

• Admin Tab –> Flavors –> Click on create Flavor.

Page 9: Open stack 4day

• Specify the Flavor Name (fedora.small) , VCPU , Root Disk , Ephemeral Disk & Swap disk.

Page 10: Open stack 4day

Image 생성:• Admin Tab –> Images—> Click on Create Image.

Page 11: Open stack 4day

• Network Tab —> Click on Networks —> then Click on Create Network

Page 12: Open stack 4day

• Specify the Subnet name (sub-internal) and Network Address (10.10.0.0/24)

Page 13: Open stack 4day
Page 14: Open stack 4day

Create External Network . • Click on “Create Network” again , Specify Network

Name as “external”

Page 15: Open stack 4day

Specify subnet Name• as “sub-external” & Network Address as

“192.168.1.0/24”

Page 16: Open stack 4day

Untick “Enable DHCP” option• and Specify the ip address pool for external network.

Page 17: Open stack 4day

create a Router.• Network Tab –> Routers –> Click on ‘+ Create

Router’

Page 18: Open stack 4day

• Admin Tab —> Networks–> Click on Edit Network for “External”

Page 19: Open stack 4day

• Network Tab —> Routers –> for Router1 click on “Set Gateway”

Page 20: Open stack 4day

• Click on the “router1″ and select on “interfaces” and then click on “Add interface”

Page 21: Open stack 4day

“Network Topology”

Page 22: Open stack 4day

• Access & Security’ Tab —> Click on Key Pairs –> then click on ‘Create Key Pair‘

Page 23: Open stack 4day

“myssh-keys.pem”

• Add a new Security Group with name ‘fedora-rules’ from Access & Security Tab. Allow 22 and ICMP from Internet ( 0.0.0.0 ).

Page 24: Open stack 4day

• the Security Group ‘fedora-rules’ created , click on Manage Rules and allow 22 & ICMP ping.

Page 25: Open stack 4day

• Compute Tab –> Click on Instances –> then click on ‘Launch Instance’

Page 26: Open stack 4day

• Click on ‘Access & Security’ and Select the Security Group ‘fedora-rules’ & Key Pair ”myssh-keys‘

Page 27: Open stack 4day

• Networking

Page 28: Open stack 4day

• Once the VM is launched , Associate a floating ip so that we can access the VM.

Page 29: Open stack 4day

‘Associate Floating IP‘

Page 30: Open stack 4day

Click on Allocate IP.

Page 31: Open stack 4day

Click on Associate

Page 32: Open stack 4day

• Now try to access the VM with floating IP ( 192.168.1.20) using keys.