CoreOS Image for OpenNebula

I believe that a community member (carletes) wrote a to build CoreOS images for OpenNebula using Packer. However, that didn’t work. I’ve tried merging the features branch from other contributor’s repo… Still nothing.

Thus, I made a similar script to build such image. My approach is to use CoreOS’s supported OEM config, the EC2 way. Putting the files under /usr/share/oem instead of doing coreos-install.

This is the blog post on my process of trying out CoreOS on OpenNebula.

Very interesting, thanks for sharing!

hello

I tried CoreOS Image for OpenNebula, but I could not build it. I found out that there is no ver 1000 at https://stable.release.core-os.net/amd64-usr/, so I tried it at 899.13.0.

An error like the one below came out. Could you tell me the solution?

2018/05/07 15:45:35 packer: 2018/05/07 15:45:35 [DEBUG] handshaking with SSH
2018/05/07 15:45:35 packer: 2018/05/07 15:45:35 [ERROR] handshake error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain
2018/05/07 15:45:35 packer: 2018/05/07 15:45:35 [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain
2018/05/07 15:45:35 packer: 2018/05/07 15:45:35 [DEBUG] Detected authentication error. Increasing handshake attempts.
2018/05/07 15:45:42 packer: 2018/05/07 15:45:42 [INFO] Attempting SSH connection…
2018/05/07 15:45:42 packer: 2018/05/07 15:45:42 [DEBUG] reconnecting to TCP connection for SSH
2018/05/07 15:45:42 packer: 2018/05/07 15:45:42 [DEBUG] handshaking with SSH
2018/05/07 15:45:42 packer: 2018/05/07 15:45:42 [ERROR] handshake error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain
2018/05/07 15:45:42 packer: 2018/05/07 15:45:42 [DEBUG] SSH handshake err: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain
2018/05/07 15:45:42 packer: 2018/05/07 15:45:42 [DEBUG] Detected authentication error. Increasing handshake attempts.
2018/05/07 15:45:42 ui error: ==> qemu: Error waiting for SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain
==> qemu: Error waiting for SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain
2018/05/07 15:45:42 ui: ==> qemu: Deleting output directory…
==> qemu: Deleting output directory…
2018/05/07 15:45:42 [INFO] (telemetry) ending qemu
2018/05/07 15:45:42 ui error: Build ‘qemu’ errored: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain
2018/05/07 15:45:42 Builds completed. Waiting on interrupt barrier…
2018/05/07 15:45:42 machine readable: error-count []string{“1”}
2018/05/07 15:45:42 ui error:
==> Some builds didn’t complete successfully and had errors:
2018/05/07 15:45:42 machine readable: qemu,error []string{“ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain”}
2018/05/07 15:45:42 ui error: --> qemu: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain
2018/05/07 15:45:42 ui:
==> Builds finished but no artifacts were created.
2018/05/07 15:45:42 [INFO] (telemetry) Finalizing.
Build ‘qemu’ errored: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain

==> Some builds didn’t complete successfully and had errors:
–> qemu: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password keyboard-interactive], no supported methods remain

==> Builds finished but no artifacts were created.
2018/05/07 15:45:43 waiting for all plugin processes to complete…
2018/05/07 15:45:43 /opt/packer/packer: plugin process exited
make: *** [builds/coreos-stable-899.13.0-qemu/coreos-stable-899.13.0] エラー 1