Fix NoCloud docs:#1423
Merged
Merged
Conversation
- fix failing example command - replace "alternative command" with more common utilities - drop reference to decade old release
TheRealFalcon
suggested changes
May 3, 2022
Contributor
TheRealFalcon
left a comment
There was a problem hiding this comment.
Instructions don't work for me. See my inline comments.
Additionally, since we're here, can we also update:
## 1) create user-data and meta-data files that will be used
## to modify image on first boot
$ { echo instance-id: iid-local01; echo local-hostname: cloudimg; } > meta-data
$ printf "#cloud-config\npassword: passw0rd\nchpasswd: { expire: False }\nssh_pwauth: True\n" > user-dataSeems a bit silly to write to files using echo for one and printf for the other.
| ## $ mcopy -oi seed.img user-data meta-data | ||
|
|
||
| ## 3) create a new qcow image to boot, backed by your original image | ||
| $ qemu-img create -f qcow2 -b disk.img -F qcow2 -K qcow2 boot-disk.img |
Contributor
There was a problem hiding this comment.
qemu-img: unrecognized option '-K'
Member
Author
|
@TheRealFalcon Thanks for the review! I think I addressed all of your comments. |
TheRealFalcon
approved these changes
May 3, 2022
Contributor
TheRealFalcon
left a comment
There was a problem hiding this comment.
Looks good, thanks!
aciba90
pushed a commit
to aciba90/cloud-init
that referenced
this pull request
May 10, 2022
- fix failing example command - replace "alternative command" with more common utilities - drop reference to decade old release
This was referenced May 12, 2023
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
qemu-img correctly identifies the format of the backing file, but fails anyways:
Fix by adding
-F qcow2to invocation.Additionally, add some context to the
mcopycommand, as well as alternative option with mount/umount/cp