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-ext
as the external network. - Navigate the
Interfaces
tab ofrouter-net-ext
, clickAdd Interface
. Select the network created in #1. - Navigate
Project -> Network -> Security Groups
, clickManage Rules
ofdefault
group. 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.pem
to10.245.48.66
. - Navigate
Project -> Compute -> Instances
, clickLaunch Instance
. SelectNo
toCreate New Volume
.
Access the VM
- Navigate
Project -> Compute -> Instances
, clickAssociate Floating IP
to the created VM. This makes you can access the VM easily from outside. - You can see the IP like
172.30.1.50
in theFloating IPs
of the VM. - On
10.245.48.66
, run:eval "$(ssh-agent -s)" ssh-add ~/private.pem
- From
10.245.48.66
,ssh [email protected]
.