RedHatOfficial / rhelai-dev-preview

Red Hat Enterprise Linux AI -- Developer Preview
Apache License 2.0
135 stars 47 forks source link

AWS AMI image doesn't boot: missing nvme modules #21

Closed ivanbaldo closed 2 months ago

ivanbaldo commented 2 months ago

Created the disk.raw with sudo make disk-nvidia DISK_TYPE=ami. The import failed with "ClientError: Unknown OS / Missing OS files.". So I copied it (with dd) to an EBS bigger than the image size and put it as root volume of an EC2 instance. It loads the kernel but the nvme disks don't show up so it panics because it can't mount the root filesystem. I created an VMDK but couldn't import it as an AMI neither, same error. It seems also that it doesn't load an initrd or initramfs. I will try to run the qcow2 in a local virtual machine and then maybe dd it into an EBS if it works and see if it works in AWS. If it doesn't, then I think I am going to start again from scratch just in case. Any other suggestions? Thanks! P.s.: kernel messages on boot in AWS: rhelai.panic.txt

ivanbaldo commented 2 months ago

Restarted from scratch and this time worked. The first time I tried, some of the commands required sudo, I had run them without before and then a seconds time with sudo. This time since I knew this, I run all the commands only once and it worked correctly. Sorry for the noise.