@@ -6,15 +6,17 @@ for orchestrating HPC clusters in Azure.
6
6
Please send questions or comments to
[ the Azure CycleCloud PM team
] ( mailto:[email protected] ) .
7
7
8
8
## Goals
9
+
10
+ In this lab you will learn how to:
11
+
9
12
* Create a fully functional, configured Azure CycleCloud instance that can be
10
- used for further labs, pilot deployments, etc.
11
- * Learn how to configure and deploy a LAMMPS HPC cluster, one of the standard
13
+ used for further labs, pilot deployments, etc.
14
+ * Configure and deploy a LAMMPS HPC cluster, one of the standard
12
15
cluster types included with Azure CycleCloud.
13
16
14
17
## Pre-requisites
15
- * Standard lab
16
- [ prerequisites] ( https://github.com/CycleCloud/cyclecloud_tutorials/blob/master/README.md#prerequisites )
17
-
18
+
19
+ * Standard lab [ prerequisites] ( /README.md#prerequisites )
18
20
19
21
## 1. Starting An Azure CycleCloud Server
20
22
@@ -30,8 +32,9 @@ As you follow the steps below, *please keep track of the following*:
30
32
CycleCloud web UI for your user.
31
33
32
34
33
- ### 1.1 Log into (Azure Cloud Shell)[ https://shell.azure.com ]
34
- ```
35
+ ### 1.1 Log into [ Azure Cloud Shell] ( https://shell.azure.com )
36
+
37
+ ``` sh
35
38
Requesting a Cloud Shell.Succeeded.
36
39
Connecting terminal...
37
40
@@ -43,44 +46,52 @@ ellen@Azure:~$
43
46
```
44
47
45
48
### 1.2 Figure out your username
46
- ```
49
+
50
+ ``` sh
47
51
ellen@Azure:~ $ whoami
48
52
ellen
49
53
ellen@Azure:~ $
50
54
```
51
55
52
56
### 1.3 Generate an SSH keypair (if you do not already have one)
57
+
53
58
* In Cloud Shell, run:
54
- ```
55
- ellen@Azure:~$ ssh-keygen -f ~/.ssh/id_rsa -N "" -b 4096
56
- Generating public/private rsa key pair.
57
- Your identification has been saved in /home/ellen/.ssh/id_rsa.
58
- Your public key has been saved in /home/ellen/.ssh/id_rsa.pub.
59
- The key fingerprint is:
60
- SHA256:L8DFLyfXbKQT5PZZFwTGFnAY4ODCtYFyhGhoHFTpbKM ellen@cc-c6733553-7b96c85fb8-hbmlw
61
- The key's randomart image is:
62
- +---[RSA 4096]----+
63
- |+o+.+..+ .oo==+o |
64
- |.= +.oo.=o .oo .|
65
- |o o oo oo.+ o . .|
66
- | = ... o B o . |
67
- | o . o S * * |
68
- | E . * o |
69
- | . . |
70
- | . |
71
- | |
72
- +----[SHA256]-----+
73
- ellen@Azure:~$
74
- ```
59
+
60
+ ``` sh
61
+ ellen@Azure:~ $ ssh-keygen -f ~ /.ssh/id_rsa -N " " -b 4096
62
+ Generating public/private rsa key pair.
63
+ Your identification has been saved in /home/ellen/.ssh/id_rsa.
64
+ Your public key has been saved in /home/ellen/.ssh/id_rsa.pub.
65
+ The key fingerprint is:
66
+ SHA256:L8DFLyfXbKQT5PZZFwTGFnAY4ODCtYFyhGhoHFTpbKM ellen@cc-c6733553-7b96c85fb8-hbmlw
67
+ The key' s randomart image is:
68
+ +---[RSA 4096]----+
69
+ |+o+.+..+ .oo==+o |
70
+ |.= +.oo.=o .oo .|
71
+ |o o oo oo.+ o . .|
72
+ | = ... o B o . |
73
+ | o . o S * * |
74
+ | E . * o |
75
+ | . . |
76
+ | . |
77
+ | |
78
+ +----[SHA256]-----+
79
+ ellen@Azure:~$
80
+ ```
81
+
75
82
### 1.4 Retrieve the SSH-pubkey
76
- ```
77
- ellen@Azure:~$ cat ~/.ssh/id_rsa.pub
78
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCwIvmC4K/0BUwOBqCsPxw5Ht8qWyDkorrU+gc6cJbohREoMFZkMlGEe2XqIyYTpHAu0ISicZEJ4MoWExPFrrZRqoYAHPrHyNnie9tVR5UMkqzNhs31qEWLtfEBOrcJIsPNdFuvnAqiQnhMQut3Jtamjc3XnMU8kJ3yL/+xIU4vKkQ8XIey+GGowR69oJI37mYKr9jT9dejB4gP2l6JyrVehnOG6QXRtg/gzFgyX08u8wKhuohNIPLlf2VzIXQml69P9PcD3muePIxi/JsJ6hb6czMCqhyHSFA42XpUpeWTml41HuBO9R5Bcsb3Q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w1KprpErlrtd1epIGQTUDgx4YhChyrdXQiYCJBJ1jvhJcWfKj6rHz94eTEr6S5W4etP/IuACqKTpmAxQqSdU7NdHZVPH8c6w89JX3DAYRjg0PKVm56Ib6C+kct8M6/NQQeyhi5DM0SGW+T7tBjDxsUQ== ellen@cc-c6733553-7b96c85fb8-hbmlw
87
+ ellen@Azure:~$
88
+ ```
89
+
90
+ ### <a name="1.5"></a>1.5 Create a service principal
91
+
82
92
Substitute a custom value for `cyclecloudlabs` as the name of your service principal. The name must be unique across all of Azure.
83
- ```
93
+
94
+ ```sh
84
95
ellen@Azure:~$ az ad sp create-for-rbac --name cyclecloudlabs
85
96
{
86
97
"appId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
@@ -90,7 +101,8 @@ ellen@Azure:~$ az ad sp create-for-rbac --name cyclecloudlabs
90
101
"tenant": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
91
102
}
92
103
```
93
- _ Save this output somewhere. You will need it in the section below as well as in future tutorials in this lab._
104
+
105
+ _Save this output somewhere. You will need it in the section below as well as later in this lab and in other labs._
94
106
95
107
### 1.6 Deploy Azure CycleCloud
96
108
[
134
146
* Accept the End-User License Agreement and click "Next".
135
147
* Create an admin user:
136
- - For the User ID, use the same ` username ` used above in step 1.5. Remember
137
- that this is also the username of your Cloud Shell session.
138
- - Enter a name for the user.
139
- - Enter and confirm a new password that meets the minimum requirements.
148
+ * For the User ID, use the same `username` used above in step 1.5. Remember
149
+ that this is also the username of your Cloud Shell session.
150
+ * Enter a name for the user.
151
+ * Enter and confirm a new password that meets the minimum requirements.
140
152
141
153

142
154
@@ -165,7 +177,7 @@ LAMMPS as a solver.
165
177
* Click the "Save" button on the bottom to create this cluster.
166
178
* Click the "Start" button to provision the cluster resources in Azure.
167
179

168
- - Starting up the cluster for the first time takes about 10 minutess. By
180
+ * Starting up the cluster for the first time takes about 10 minutess. By
169
181
default, only the master (or "head") node of the cluster is started. Azure
170
182
CycleCloud provisions all the necessary network and storage resources needed
171
183
by the master node, and also sets up the scheduling environment in the
@@ -174,7 +186,7 @@ LAMMPS as a solver.
174
186
for the green status bar before proceeding to the next step.
175
187

176
188
177
- ### 2.2 Connecting to the master node and submitting a LAMMPS job
189
+ ### <a name="2.2"></a> 2.2 Connecting to the master node and submitting a LAMMPS job
178
190
179
191
The SSH public key you specified as part of the deployment is stored in the Azure CycleCloud application server and pushed into each cluster that you create. As a result, you can use your SSH private key to log into the
180
192
master node.
@@ -272,4 +284,4 @@ master node.
272
284
* Continue to [Lab 2 - Customizing an HPC cluster template](/Lab2/Tutorial.md),
273
285
or
274
286
* Click on the "Terminate" button to terminate the cluster until you need it
275
- again.
287
+ again.
0 commit comments