Skip to content

Commit

Permalink
Update install from ISO docs
Browse files Browse the repository at this point in the history
Creating instances with blank nova local storage is not supported ([1]).
The documentation for installation from ISO is adapted to refelct that.

Signed-off-by: Jan Horstmann <[email protected]>
  • Loading branch information
janhorstmann committed Jan 18, 2025
1 parent e6b9559 commit 4475012
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions docs/guides/user-guide/openstack/install-instance-from-iso.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,15 @@ The `hw_rescue_device` and `hw_rescue_bus` properties may be omitted if you do n

### Using nova local storage

Create an instance with a blank local boot device, e.g.:

Until [this bug](https://bugs.launchpad.net/nova/+bug/2090926) is fixed, one cannot create an instance with a blank local boot device. As a workaround create an unbootable dummy image first, e.g.:
One cannot create an instance with a blank local boot device. As a workaround create a blank image first, e.g.:

```
DUMMY_IMAGE_NAME="dummy"
dd if=/dev/zero of="$DUMMY_IMAGE_NAME" bs=1k count=1
BLANK_IMAGE_NAME="blank"
dd if=/dev/zero of="$BLANK_IMAGE_NAME" bs=1k count=1
openstack image create \
--file "$DUMMY_IMAGE_NAME" \
"$DUMMY_IMAGE_NAME"
rm "$DUMMY_IMAGE_NAME"
--file "$BLANK_IMAGE_NAME" \
"$BLANK_IMAGE_NAME"
rm "$BLANK_IMAGE_NAME"
```

Create the instance:
Expand All @@ -48,19 +46,7 @@ INSTANCE_NAME=""
FLAVOR=""
openstack server create \
--flavor "$FLAVOR" \
--image "$DUMMY_IMAGE_NAME" \
--no-network \
"$INSTANCE_NAME"
```

Once the bug is fixed the instance may be created directly:

```
INSTANCE_NAME=""
FLAVOR=""
openstack server create \
--flavor "$FLAVOR" \
--block-device "source_type=blank,destination_type=local,guest_format=raw,boot_index=0" \
--image "$BLANK_IMAGE_NAME" \
--no-network \
"$INSTANCE_NAME"
```
Expand Down

0 comments on commit 4475012

Please sign in to comment.