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

amazon-import - ClientError: Unable to determine kernel version #8302

Closed
breisig opened this issue Oct 31, 2019 · 2 comments
Closed

amazon-import - ClientError: Unable to determine kernel version #8302

breisig opened this issue Oct 31, 2019 · 2 comments
Labels
bug stage/waiting-on-upstream This issue is waiting on an upstream change

Comments

@breisig
Copy link

breisig commented Oct 31, 2019

Overview of the Issue

I am trying to import my CentOS 8 VM image using packer 1.4.4 to AWS and the following error messages occur. But if I try to import a CentOS 7 vm to AWS, It has no issues.

    virtualbox-ovf (amazon-import): Uploading output-virtualbox-ovf\packer-awsdevelopment.ova to s3://imagevmplace/packer-import-1572541471.ova
    virtualbox-ovf (amazon-import): Completed upload of output-virtualbox-ovf\packer-awsdevelopment.ova to s3://imagevmplace/packer-import-1572541471.ova
    virtualbox-ovf (amazon-import): Started import of s3://imagevmplace/packer-import-1572541471.ova, task id import-ami-0a982d965114f8228
    virtualbox-ovf (amazon-import): Waiting for task import-ami-0a982d965114f8228 to complete (may take a while)
Build 'virtualbox-ovf' errored: 1 error(s) occurred:

* Post-processor failed: Import task import-ami-0a982d965114f8228 failed with status message: ClientError: Unable to determine kernel version., error: ResourceNotReady: failed waiting for successful resource state

==> Some builds didn't complete successfully and had errors:
--> virtualbox-ovf: 1 error(s) occurred:

* Post-processor failed: Import task import-ami-0a982d965114f8228 failed with status message: ClientError: Unable to determine kernel version., error: ResourceNotReady: failed waiting for successful resource state

==> Builds finished but no artifacts were created.

Again, if I try to import my CentOS 7 vm, it has no issues to successfully uploads.

Packer version

Packer v1.4.4

Operating system and Environment details

Running packer 1.4.4 on the latest Windows 10 to build a CentOS 8 image to import to AWS.

@breisig breisig added the bug label Oct 31, 2019
@SwampDragons
Copy link
Contributor

Hi, thanks for reaching out. Looks like you're not the only one with this issue; I found some posts on the AWS forums with people asking the same questions.

Looking at Amazon's docs on import/export requirements, the CentOS versions you're able to import are:

CentOS 5.1-5.11, 6.1-6.8, 7.0-7.6 (6.0 lacks required drivers)

I'd recommend opening a support ticket with Amazon asking them to allow CentOS 8 imports.

In the meantime, it looks like people have had success building from a CentOS ami already on amazon either using the ebs builder or the ebssurrogate builder: https://www.reddit.com/r/aws/comments/dek12y/centos_8_import/ even seems to have a person who's started wtih a centos7 ami, used ebssurrogate to build centos8, and generated a functioning Centos 8 ami from that.

Unfortunately, since this is squarely on the Amazon side of things, Packer can't fix this for you :(

@SwampDragons SwampDragons added post-processor/amazon-import stage/waiting-on-upstream This issue is waiting on an upstream change labels Oct 31, 2019
@ghost
Copy link

ghost commented Jan 23, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Jan 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug stage/waiting-on-upstream This issue is waiting on an upstream change
Projects
None yet
Development

No branches or pull requests

2 participants