Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #30 from cgwalters/elaborate-virtinstall
Browse files Browse the repository at this point in the history
cloud: Add some more virt-install/cloud-init explanations
  • Loading branch information
cgwalters authored Jan 24, 2024
2 parents 909f064 + 02098f2 commit 857d7a4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions cloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ can be used in any virtualization/IaaS system that is
such as [libvirt](https://blog.wikichoon.com/2020/09/virt-install-cloud-init.html),
AWS, etc.

A good example reference for cloud-init is
[the RHEL documentation](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_and_managing_cloud-init_for_rhel_9/introduction-to-cloud-init_cloud-content).

## Pre-generated disk images

There are pre-generated disk images available which can be launched directly.
Expand Down Expand Up @@ -54,3 +57,18 @@ $ zstd -d fedora-bootc-cloud-eln.qcow2.zst
fedora-bootc-cloud-eln.qcow2.zst: 790560768 bytes
$
```

## Example virt-install invocation

This is one example:

```bash
virt-install --cloud-init root-ssh-key=/path/to/your/ssh/key --connect qemu:///system --import --name fedora-bootc-cloud --memory 4096 --disk /path/to/fedora-bootc-cloud-eln.qcow2 --os-variant rhel9-unknown
```

## Known bugs

Because today `virt-install` appears to remove the cloud-init ISO, this will
cause `cloud-init` to hang for several minutes on subsequent boots. To work
around this right now, `rm /etc/systemd/system/cloud-init.target.wants/*` in the
firstboot.

0 comments on commit 857d7a4

Please sign in to comment.