You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Adds the `instance_external_ip` table for tracking external IP
addresses and port ranges for instance source NAT, allocated out of an
IP pool / range.
- Adds child-generation counter and tracking to the `ip_pool_range`
table, and checks for allocated addresses when deleting a range.
- Adds query to insert next available address from any range, updating
the parent rcgen. Adds tests for query behavior, including testing
exhaustion.
- Add test helper to create an IP pool and range, since all
instance-creation tests now need to have a pool available.
- Forwards external IP configuration to sled agent and passes to OPTE.
Copy file name to clipboardExpand all lines: docs/how-to-run.adoc
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,7 +151,24 @@ command line interface. Note that the `jq` command is required. In addition, th
151
151
oxide org create myorg
152
152
oxide project create -o myorg myproj
153
153
154
-
2. Define a global image that will be used as initial disk contents.
154
+
2. Create an IP Pool, for providing external connectivity to the instance later.
155
+
We need to create an IP Pool itself, and a range of IP addresses in that pool.
156
+
157
+
oxide api /ip-pools --method POST --input - <<EOF
158
+
{
159
+
"name": "mypool",
160
+
"description": "an IP pool"
161
+
}
162
+
EOF
163
+
164
+
oxide api /ip-pools/mypool/ranges/add --method POST --input - <<EOF
165
+
{
166
+
"first": "10.0.0.1",
167
+
"last": "10.0.0.255"
168
+
}
169
+
EOF
170
+
171
+
3. Define a global image that will be used as initial disk contents.
155
172
156
173
a. This can be the alpine.iso image that ships with propolis:
157
174
@@ -188,7 +205,7 @@ command line interface. Note that the `jq` command is required. In addition, th
188
205
}
189
206
EOF
190
207
191
-
3. Create a disk from that global image (note that disk size must be greater than or equal to image size and a 1GiB multiple!). The example below creates a disk using the image made from the alpine ISO that ships with propolis, and sets the size to the next 1GiB multiple of the original alpine source:
208
+
4. Create a disk from that global image (note that disk size must be greater than or equal to image size and a 1GiB multiple!). The example below creates a disk using the image made from the alpine ISO that ships with propolis, and sets the size to the next 1GiB multiple of the original alpine source:
192
209
193
210
oxide api /organizations/myorg/projects/myproj/disks/ --method POST --input - <<EOF
194
211
{
@@ -203,7 +220,7 @@ command line interface. Note that the `jq` command is required. In addition, th
203
220
}
204
221
EOF
205
222
206
-
4. Create an instance, attaching the alpine disk created above:
223
+
5. Create an instance, attaching the alpine disk created above:
207
224
208
225
oxide api /organizations/myorg/projects/myproj/instances --method POST --input - <<EOF
209
226
{
@@ -221,7 +238,7 @@ command line interface. Note that the `jq` command is required. In addition, th
221
238
}
222
239
EOF
223
240
224
-
5. Optionally, attach to the propolis server serial console, though the serial console is under active development and these commands are subject to change:
241
+
6. Optionally, attach to the propolis server serial console, though the serial console is under active development and these commands are subject to change:
225
242
226
243
a. find the zone launched for the instance: `zoneadm list -c | grep oxz_propolis-server`
227
244
b. get the instance uuid from the zone name. if the zone's name is `oxz_propolis-server_3b03ad43-4e9b-4f3a-866c-238d9ec4ac45`, then the uuid is `3b03ad43-4e9b-4f3a-866c-238d9ec4ac45`
0 commit comments