DICLOUD/GEC12tutorial: GEC12tutorial.txt

File GEC12tutorial.txt, 3.1 KB (added by David Irwin, 8 years ago)

Commands for tutorial in a text file.

Line 
1Slide 11:
2
3cd ~/Tutorials/DiCloud
4./key_install.sh geni.cs.umass.edu
5ls -la ec2/keys
6ls -la /
7
8Slide 12:
9
10cd ~/Tutorials/DiCloud
11source ./environment
12cd dicloud/bin
13./dicloud_server.sh
14
15Slide 13:
16
17cd ~/Tutorials/DiCloud
18source ./environment
19cd dicloud/bin
20cat ec2pricing.properties
21
22Slide 14:
23
24cd ~/Tutorials/DiCloud
25source ./environment
26./dicloud_console.sh
27help
28
29Slide 15:
30
31connect localhost 1099
32get balance
33add credit 100
34get balance
35
36Slide 16:
37
38head ~/Tutorials/DiCloud/s3_test
39s3 create gec12-tutorial-<rand> us
40s3 put gec12-tutorial-<rand> test /home/geni/Tutorials/DiCloud/s3_test
41s3 get gec12-tutorial-<rand> test /home/geni/Tutorials/DiCloud/test
42s3 delete gec12-tutorial-<rand> us
43get balance
44head ~/Tutorials/DiCloud/test
45
46Slide 17:
47
48ec2 start /geni_cert.pem /geni_pk.pem ami-013d6c44 1 m1.small us-west-1 geni-keypair
49ec2 probe /geni_cert.pem /geni_pk.pem <instance id> us-west-1 ascii
50
51Slide 18:
52
53ssh -i /geni-keypair.pem root@<public dns name>
54ls -la /dev/sdg
55
56Slide 19:
57
58ebs create /geni_cert.pem /geni_pk.pem 1 us-west-1 us-west-1<availability zone letter>
59ebs attach /geni_cert.pem /geni_pk.pem us-west-1 <volume id> <instance id> sdg
60ls -la /dev/sdg
61mkfs.ext3 /dev/sdg
62mount -t ext3 /dev/sdg /mnt
63umount /mnt
64exit
65get balance
66
67Slide 20:
68
69cd ~/Tutorials/DiCloud/dicloud/bin
70nano getbalance.txt
71./dicloud_console_script.sh < getbalance.txt
72
73Slide 21:
74
75ebs detach /geni_cert.pem /geni_pk.pem us-west-1 <volume id>
76ebs delete /geni_cert.pem /geni_pk.pem <volume id> us-west-1
77ec2 stop /geni_cert.pem /geni_pk.pem <instance id> us-west-1 geni-keypair
78get balance
79
80Slide 24:
81
82/geni_cert_web.pem
83/geni_pk_web.pem
84geni-keypair
85
86Slide 35:
87
88cp ~/Tutorials/DiCloud/ec2/keys/geni-keypair.pem ~/.ssh/id_rsa
89cp ~/Tutorials/DiCloud/ec2/keys/geni-keypair.pub ~/.ssh/id_rsa.pub
90keychain ~/.ssh/id_rsa
91ssh root@<Amazon IP 1> "hostname <Insert IP 1>"
92ssh root@<Amazon IP 2 "hostname <Insert IP 2>"
93cd ~/Tutorials/DiCloud/gush
94nano directory.xml
95
96Slide 36:
97
98cd ~/Tutorials/DiCloud/gush
99./gush -P 15000
100info nodes
101load simple.xml
102run
103disconnect
104quit
105
106Slide 38:
107
108cd ~/Tutorials/DiCloud/gush
109cat omni_config
110nano directory.xml
111
112Slide 39:
113
114cd ~/.ssh/
115keychain --clear
116keychain ~/.ssh/id_rsa
117keychain ~/.ssh/id_rsa_geni
118cd ~/Tutorials/DiCloud/gush
119cp simple.xml simple-orca.xml
120nano simple-orca.xml
121
122Slide 40:
123
124nano orca-new.rspec
125
126Slide 41:
127
128helper-scripts/handle-geni.py -n -f pg -a https://www.emulab.net/protogeni/xmlrpc/am createslice gush-orca-david
129
130helper-scripts/handle-geni.py -n -f pg -a https://geni.renci.org:11443/orca/xmlrpc createsliver gush-orca-david orca-new.rspec
131
132Slide 42:
133
134helper-scripts/handle-geni.py -n -f pg -a https://geni.renci.org:11443/orca/xmlrpc sliverstatus gush-orca-david
135
136helper-scripts/handle-geni.py -n -f pg -a https://geni.renci.org:11443/orca/xmlrpc sliverstatus gush-orca-david
137
138Slide 43:
139
140ssh root@<ip address> “hostname <ip address>”
141ssh root@<ip address> “hostname <ip address>”
142
143Slide 44:
144
145./gush -P 15000
146info nodes
147load simple-orca.xml
148run
149
150Slide 46:
151
152disconnect
153quit
154helper-scripts/handle-geni.py -n -f pg -a https://geni.renci.org:11443/orca/xmlrpc deletesliver gush-orca-david