Closed ypismerov-tmx closed 6 months ago
Hi @ypismerov-tmx thanks for reaching out. What specific CLI commands are you trying to use --boot-mode
? Here are all of the ec2
commands for reference: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/index.html.
From the EC2 service API models (used by both the AWS CLI and Boto3) it looks like uefi-preferred
was added 14 months ago to BootModeValues
:
(Here is a link to the commit. And it looks like this is the related line in the CLI CHANGELOG.)
You mentioned using 2.15.38 which is a recent version, so I would expect the --boot-mode
support for uefi-preferred
to be up to date. If you want to share your debug logs (with sensitive info redacted) by adding --debug
to the command, that could help give more insight into the issue. Depending on the information we receive, we may need to reach out to the EC2 team to verify that their API models are up to date in regard to this parameter.
import-image
Just noticed the option not supported for that command. I guess my request is invalid. We can close it.
The uefi-preferred boot mode isn't supported for importing images. (Source: https://docs.aws.amazon.com/cli/latest/reference/ec2/import-image.html)
Yuri Pismerov | Team Lead - Automation Global Enterprise Services Toronto Stock Exchange TMX Group Cell: +16472836481 *Email: @.*** | www.tmx.com
On Mon, Apr 29, 2024 at 6:17 PM Tim Finnigan @.***> wrote:
Hi @ypismerov-tmx https://github.com/ypismerov-tmx thanks for reaching out. What specific CLI commands are you trying to use --boot-mode? Here are all of the ec2 commands for reference: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/index.html .
From the EC2 service API models https://github.com/boto/botocore/blob/develop/botocore/data/ec2/2016-11-15/service-2.json (used by both the AWS CLI and Boto3) it looks like uefi-preferred was added 14 months ago to BootModeValues: image.png (view on web) https://github.com/aws/aws-cli/assets/87778557/218f89f8-6263-41a6-9a0f-dc5122bd7416
(Here https://github.com/boto/botocore/commit/0c234474bec3730b92352738e6b536e591194b85 is a link to the commit. And it looks like this is the related line https://github.com/aws/aws-cli/blob/752f52470e6002ab80be30e3df83d5243607b824/CHANGELOG.rst?plain=1#L2360 in the CLI CHANGELOG.)
You mentioned using 2.15.38 which is a recent version, so I would expect the --boot-mode support for uefi-preferred to be up to date. If you want to share your debug logs (with sensitive info redacted) by adding --debug to the command, that could help give more insight into the issue. Depending on the information we receive, we may need to reach out to the EC2 team to verify that their API models are up to date in regard to this parameter.
— Reply to this email directly, view it on GitHub https://github.com/aws/aws-cli/issues/8651#issuecomment-2083780964, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARKAZ2ZUUQYZRYZRFRS4KFLY73BF5AVCNFSM6AAAAABG3SMUQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTG44DAOJWGQ . You are receiving this because you were mentioned.Message ID: @.***>
--
NOTICE OF CONFIDENTIALITYThis e-mail, including all materials contained in or attached to this e-mail, contains proprietary and confidential information solely for the internal use of the intended recipient. If you have received this email in error, please notify us immediately by return e-mail or otherwise and ensure that it is permanently deleted from your systems, and do not print, copy, distribute or read its contents. AVIS DE CONFIDENTIALITÉLe présent courriel, y compris tous les documents qu'il contient ou qui y sont joints, renferme des renseignements exclusifs et confidentiels destinés uniquement à l'usage interne du destinataire prévu. Si vous avez reçu le présent courriel par erreur, veuillez nous aviser immédiatement, notamment par retour de courriel, et vous assurer qu'il est supprimé de façon permanente de vos systèmes; veuillez également vous abstenir d'imprimer, de copier, de distribuer ou de lire son contenu.
Thanks for following up - yes from the import-image command documentation it looks like uefi-preferred
is not supported:
(That option is still listed under "Possible values" because it is modeled to be used across other APIs/commands. But the note was added there for clarification.)
Here is the boot modes page in the VM Import/Export User Guide for more information.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
Describe the feature
There are cases uefi-preferred has to be set up for AMI to be able to work with AWS metal instances (dedicated hosts). It is currently missing. Only uefi and legacy-bios modes are supported by --boot-mode. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html lists of currently supported boot modes.
Use Case
Proposed Solution
No response
Other Information
No response
Acknowledgements
CLI version used
aws-cli/2.15.38 Python/3.11.8 Linux/5.14.0-362.24.1.el9_3.x86_64 exe/x86_64.rhel.9 prompt/off
Environment details (OS name and version, etc.)
Red Hat Enterprise Linux release 9.3 (Plow)