-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathExercise 1 - nova
More file actions
41 lines (27 loc) · 948 Bytes
/
Copy pathExercise 1 - nova
File metadata and controls
41 lines (27 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
cd /opt/stack/devstack
source openrc admin admin
openstack --help
openstack server list
openstack image list
openstack flavor list
openstack server create --image cirros-0.3.2-x86_64-uec --flavor m1.tiny MY_FIRST_INSTANCE
openstack floating ip create public # Note the IP Address created.
openstack server add floating ip MY_FIRST_INSTANCE IP_ADDRESS
openstack server list
openstack security group list
# note the default group ID for the demo group.
openstack security group rule create --proto icmp --project demo SECURITY_GROUP_ID
openstack security group rule create --proto tcp --project demo --dst-port 22 SECURITY_GROUP_ID
IP_ADDRESS=... # Get IP address from nova list
ping $IP_ADDRESS
nova show MY_FIRST_INSTANCE
ssh cirros@$IP_ADDRESS
# password is cubswin:)
uname -a
free -m
ifconfig
ping google.com
exit
openstack server --debug list
openstack console log show MY_FIRST_INSTANCE
openstack server delete MY_FIRST_INSTANCE