This shows you the differences between two versions of the page.
|
scgc:laboratoare:10 [2020/12/16 18:39] darius.mihai [2. [15p] Keystone] |
scgc:laboratoare:10 [2021/11/17 18:38] (current) maria.mihailescu |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Laboratory 10. Openstack security ===== | + | ===== Openstack security ===== |
| <hidden> | <hidden> | ||
| Line 33: | Line 33: | ||
| ==== 0. [5p] Creating and preparing the VM ==== | ==== 0. [5p] Creating and preparing the VM ==== | ||
| - | In the faculty's [[http://cloud.curs.pub.ro/|OpenStack cloud]], launch an instance with the following parameters: | + | In the faculty's [[http://cloud.grid.pub.ro/|OpenStack cloud]], launch an instance with the following parameters: |
| - | * //Name//: **newton** | + | * //Name//: **<user-name>-openstack** |
| * //Availability Zone//: **any** | * //Availability Zone//: **any** | ||
| * //Instance boot source//: **Boot from image** | * //Instance boot source//: **Boot from image** | ||
| - | * //Image name//: **SCGC Template** | + | * //Image name//: **Ubuntu 16.04 Xenial** |
| * //Flavor//: **m1.large** | * //Flavor//: **m1.large** | ||
| - | * //Keypair//: your own keypair from ''fep.grid.pub.ro'' | ||
| - | <note important> | + | Connect to the VM using the username ''ubuntu''. |
| - | Delete the ''qcow2'' images from the ''scgc'' directory as we will not be using them today. | + | |
| - | </note> | + | |
| - | + | ||
| - | Connect to the VM from ''fep.grid.pub.ro'', using the username ''student''. | + | |
| - | In ''/etc/hosts'', map the IP address of the instance to its hostname: | + | In ''/etc/hosts'', map the IP address of the instance to ''newton'': |
| <code bash> | <code bash> | ||
| $ cat /etc/hosts | $ cat /etc/hosts | ||
| Line 180: | Line 175: | ||
| <code bash> | <code bash> | ||
| $ sudo keystone-manage bootstrap --bootstrap-password admin \ | $ sudo keystone-manage bootstrap --bootstrap-password admin \ | ||
| - | --bootstrap-admin-url http://newton:5000/v3/ \ | + | --bootstrap-admin-url http://newton:35357/v3/ \ |
| --bootstrap-internal-url http://newton:5000/v3/ \ | --bootstrap-internal-url http://newton:5000/v3/ \ | ||
| --bootstrap-public-url http://newton:5000/v3/ \ | --bootstrap-public-url http://newton:5000/v3/ \ | ||
| Line 209: | Line 204: | ||
| export OS_USERNAME=admin | export OS_USERNAME=admin | ||
| export OS_PASSWORD=admin | export OS_PASSWORD=admin | ||
| - | export OS_AUTH_URL=http://newton:5000/v3 | + | export OS_AUTH_URL=http://newton:35357/v3 |
| export OS_IDENTITY_API_VERSION=3 | export OS_IDENTITY_API_VERSION=3 | ||
| export OS_IMAGE_API_VERSION=2 | export OS_IMAGE_API_VERSION=2 | ||
| Line 989: | Line 984: | ||
| </note> | </note> | ||
| - | For testing, launch ''firefox'' from the command-line on ''fep.grid.pub.ro''. | + | For testing, launch ''firefox'' from the command-line on ''fep8.grid.pub.ro''. Make sure to use compression (add the ''-C'' flag to the ''ssh'' command). |