Skip to content
This repository has been archived by the owner on Feb 13, 2025. It is now read-only.

Cloud-init does not work on RHEL BYOI to BM. #1

Open
MktMatsuyama opened this issue Mar 6, 2022 · 4 comments
Open

Cloud-init does not work on RHEL BYOI to BM. #1

MktMatsuyama opened this issue Mar 6, 2022 · 4 comments

Comments

@MktMatsuyama
Copy link

MktMatsuyama commented Mar 6, 2022

phenomenon

How to create an image

  • Create an image of RHEL7.9 with Virtual Box using Packer from the above Github
  • Send the finished image to OCI and convert it to a custom image
  • Deploy bare metal server from custom image with BM.Optimized3.36
  • Upgrade the above server to RHEL 8.4 with RHEL in-place upgrade

https://urldefense.com/v3/__https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/8/html-single/upgrading_from_rhel_7_to_rhel_8/index__;!!ACWV5N9M2RV99hQ!dHBfMouBp2

  • Install cloud-init with yum, copy 99_cloud.cfg installed on Oracle Linux to the specified location, and restart.

log

  • Attach the log with the problem and the log (/var/log/cloud-init.log) when deploying with Oracle Linux 8.
    The problem log did not record access to the metadata server.
    Also, it seemed that 99_oci.cfg itself was not executed, such as an error occurred when setting the default GW and no other swap file was created.

RHEL_BM_log.txt (log with problem)
OracleLinux_BM_log.txt (normal log deployed on Oracle Linux 8)

Workaround

  • The operation itself can be done by logging in from the serial console using an account created separately from opc. However, since the operation method differs between bare metal and virtual server, I would be grateful if there was a solution.

Please let me know if there is a solution.

@MktMatsuyama
Copy link
Author

@MktMatsuyama
Copy link
Author

Is such a write good here?

@zkaufman
Copy link
Contributor

zkaufman commented Mar 9, 2022

@MktMatsuyama
I believe I am able to get RHEL with cloud-init to work on Bare Metal with RHEL 7.9 but not 8.x. Is Bare Metal a requirement?

@MktMatsuyama
Copy link
Author

Thank you.
Bare metal + RHEL 8.4 is required.
Currently, we are working on bare metal + RHEL 8.4 by setting the ssh public key etc. using the serial console.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants