ClearLinux on Openstack

I’m having trouble getting ClearLinux to work on OpenStack.

From their download source, based on their sites download page & documentation, I’ve tried clear-29690-cloud.img, clear-29690-cloud-native.img, clear-29690-live-server.img, and clear-29690-live-server.iso after running it through conversion. I can’t tell if this is something specific with clearlinux or not.

Their documentation states the one for OpenStack is the cloud-img file.

We reference this documentation on how to convert an image to a raw format by the documentation of the internal cluster, but even after converting I’m still running into either “Booting from Hard Drive” or “Boot failed: not a bootable disk - No bootable device”.

After trying these images, I run openstack image create --private --disk-format raw --container-format bare and have passed the images themselves and the qcow2 images over. I would think the images would be in their proper formats and that I may be doing the step of converting them to qcow2 types needlessly, but in all scenarios nothing works and I’m having the worst of luck here. Any help would be appreciated.

Edit:

Rancher releases as qcow2. just noticed I was also converting from what was given to qcow2 for half of my attempts. Maybe that is the key. Is it a standard to release in qcow2 for openstack images? Testing this now.

Also lets be adults and not downvote without comment here.

Edit 2: TIL (Tonight(at 3am) I learned)

qemu-img convert -f qcow2 -O raw clear-29690-cloud.img clear-29690-cloud.raw

I was not only doing the conversion backward but qcow2 is the format given by Clear Linux’s OpenStack image and maybe the common one for OpenStack in general. Fun venture. Thanks Rancher!

Edit 3: Spoke too soon. RancherOS works. Clear Linux still stalls at “Booting form harddisk”

+------------------+------------------------------------------------------------------------------------------------------------------------------------------------                                                                                                           --------------------------------------------------------------------------------------------------------------------------------------------------------------------                                                                                                           ---------------------------------------------------------------------------------------------------------------------------+
| Field            | Value                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
+------------------+------------------------------------------------------------------------------------------------------------------------------------------------                                                                                                           --------------------------------------------------------------------------------------------------------------------------------------------------------------------                                                                                                           ---------------------------------------------------------------------------------------------------------------------------+
| checksum         | ada1f029ffbaee41f10b4fc2422d9f38                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| container_format | bare                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| created_at       | 2019-05-31T08:09:06Z                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| disk_format      | raw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| file             | /v2/images/33dc7258-27ff-4807-b552-a57a823e1fd7/file                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| id               | 33dc7258-27ff-4807-b552-a57a823e1fd7                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| min_disk         | 0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| min_ram          | 0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| name             | clear-29690-cloud-raw-actual                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| owner            | 61af61cc80b04e14a185f5a08e763d3c                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| properties       | direct_url='rbd://bd0b115f-4871-4bc0-a5e8-0207e6e69f18/images/33dc7258-27ff-4807-b552-a57a823e1fd7/snap', locations='[{u'url': u'rbd://bd0b115f                                                                                                           -4871-4bc0-a5e8-0207e6e69f18/images/33dc7258-27ff-4807-b552-a57a823e1fd7/snap', u'metadata': {}}]', os_hash_algo='sha512', os_hash_value='44fb841206b98e1505524e829f                                                                                                           4189bf464aac1659686dc7fdb8fd40135a36bad41b1859c124e76ce375f24c3dfde3718ee20dcf7681a75ed61d86846d6f3cc5', os_hidden='False' |
| protected        | False                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| schema           | /v2/schemas/image                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| size             | 907018240                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| status           | active                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| tags             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| updated_at       | 2019-05-31T08:09:53Z                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| virtual_size     | None                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| visibility       | private                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
+------------------+--------------------

In the old days OpenStack did not support UEFI boot. This is likely still the case?

1 Like

Thanks for that!
https://docs.openstack.org/glance/pike/admin/troubleshooting.html#launch-instances-with-uefi

Looks like Openstack does support it but our admin has not yet applied the necessary requirements since it is an in-progress internal setup. Is there one built that does not use UEFI boot? If not I will unfortunately have to delay the use of this operating system.

I don’t know - we publish lots of images but they are all for specific purposes and therefore may not work in OpenStack - e.g. AWS images boot with a legacy bootloader but they require a different Hypervisor. Other images do not contain cloud-init and will therefore not be usable. You could try any of the iso images or legacy images, but I’m afraid none will likely work.

@mhorn I think this is something that clr-installer can help with since a custom image could be generated by @quantomworks. Any chance you might have a template example handy for creating a legacy bios enabled image?

1 Like

There is a legacy bios example in the clr-installer source:

curl -O -L https://raw.githubusercontent.com/clearlinux/clr-installer/master/scripts/legacy-kvm.yaml
sudo clr-installer --log-level 4 --config legacy-kvm.yaml