openstack setup tenant - Murray-LIANG/forgetful GitHub Wiki
OpenStack Setup Tenant
Prerequisites
- Have the account to the OpenStack env.
Steps
Login to the OpenStack GUI.
Open 192.168.1.254 in Chrome or other web browser.
[Do for the first time] Setup the Networks
- Navigate
Project -> Network -> Networks, clickCreate Network. - Input the network name and create a
Subnet. Suggest using private subnets like:172.16.*.*to172.30.*.*. - Input the DNS servers.

- Navigate
Project -> Network -> Routers, clickCreate Router. This router makes sure your VMs can access to external networks. - Input the router name like
router-net-ext. Select thenet-extas the external network.
- Navigate the
Interfacestab ofrouter-net-ext, clickAdd Interface. Select the network created in #1.

- Navigate
Project -> Network -> Security Groups, clickManage Rulesofdefaultgroup. To make it easy, I add several rules to allow most of ports.
Boot a VM
- Navigate
Project -> Compute -> Key Pairs, clickCreate Key Pair. Store the private key to local path likeprivate.pem. You will need it to ssh to the created VM without password. - Copy the private key
private.pemto10.245.48.66. - Navigate
Project -> Compute -> Instances, clickLaunch Instance. SelectNotoCreate New Volume.
Access the VM
- Navigate
Project -> Compute -> Instances, clickAssociate Floating IPto the created VM. This makes you can access the VM easily from outside. - You can see the IP like
172.30.1.50in theFloating IPsof the VM. - On
10.245.48.66, run:eval "$(ssh-agent -s)" ssh-add ~/private.pem - From
10.245.48.66,ssh [email protected].