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

Help / Suggestions how to get this working with OVH? #39

Open
shofetim opened this issue Sep 13, 2023 · 2 comments
Open

Help / Suggestions how to get this working with OVH? #39

shofetim opened this issue Sep 13, 2023 · 2 comments

Comments

@shofetim
Copy link

Hello,

I'm building an image (on an Alpine 3.18 host) for deployment on OVH bare metal, using the following:

alpine-make-vm-image --image-format qcow2 \
--image-size 2G \
--boot-mode UEFI \
--packages "chrony doas doas-sudo-shim less logrotate openssh ssmtp" \
--script-chroot  \
alpine.qcow2 -- ./configure.sh

The built image is available here: https://jordanschatz.com/alpine.qcow2

When loading it in OVH via their BYOI (bring-your-own-image)

After installing the host does not respond to a ping. Using IPMI the host hangs (?) after booting to EFI

image

Any suggestions how to debug or what to try?

Thank you!

@dermotbradley
Copy link

[ I hope @jirutka doesn't mind me jumping in here ]

@shofetim Looking at the BYOI document you linked to, OVH Bare Metal assumes you'll be using cloud-init for the machine's initial configuration.

Also you're trying to bootstrap a physical machine rather than a VM, which this script appears to be designed for.

You might be interested in my alternative script which uses cloud-init and handles physical machines: https://github.com/dermotbradley/create-alpine-disk-image

My script doesn't specifically target OVH Bare Metal but I believe I'd just need to create a new config profile derived from the existing "physical PC" profile with a few minor changes for OVH.

@jirutka
Copy link
Member

jirutka commented Sep 14, 2023

for deployment on OVH bare metal

The default kernel flavor is virt, this is for virtual machines and it won’t work on bare metal. You have to set the option --kernel-flavor lts.

When loading it in OVH via their BYOI (bring-your-own-image)

This page says it needs cloud-init in the image. It looks like you don’t have it installed unless it’s in your ./configure.sh. However, cloud-init is a bloated complexity mess, so I recommend trying tiny-cloud instead – it should work as a drop-in replacement. Don’t forget also to enable the service to start on boot (you can do this in configure.sh.

However, as @dermotbradley wrote, this script is intended for virtual machines, not for bare metal. I’ve never tested it on bare metal and anything special that would only be needed for bare metal is outside the scope of the project. That said, I don’t know of anything that would prevent it from working on bare metal. You may just need to enable some initfs features (--initfs-features) and install some firmware packages – the script installs linux-firmware-none by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants