Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update install from ISO docs #771

Merged
merged 1 commit into from
Jan 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading