Replies: 2 comments 3 replies
-
Hi @zulinx86 What's the side-effect of not using CPU templates? How does this change integrate with the Firecracker Go SDK? Is there already a new example available of how to use a custom CPU template? |
Beta Was this translation helpful? Give feedback.
3 replies
-
This discussion has been open for a month and we conducted the deprecation in v1.5.0 (PR #4126). They are supposed to be removed in v2.0.0 according to the policy. We close this discussion for now, but please feel free to reopen this and ask the migration path! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear community,
After introducing the custom CPU template feature in Firecracker v1.4.0, we are now planning to start the deprecation process of all the static CPU templates and the
cpu_template
field in the/machine-config
API in Firecracker v1.5.0. This discussion aims to improve the visibility of the deprecation to inform any user of static CPU templates as early as possible.Background
CPU templates allow users to manipulate how the vCPUs are represented to the guest. A common application of this feature is to provide CPU feature parity to guests that run in a heterogeneous fleet made up of hosts with different CPU models.
To improve customer experience and operation agility for our customers, we introduced the custom CPU template in Firecracker v1.4.0, which is an improved iteration of the previously released static CPU templates. This will give flexibility to any customer to define their own CPU template and be completely decoupled from the static set of templates hardcoded in the Firecracker binary. As a result, we plan to deprecate all the static CPU templates in Firecracker v.1.5.0 and remove them in accordance with our deprecation policy.
Transition from static CPU templates to custom CPU templates
To facilitate the transition from the old feature to the new one, we have prepared corresponding custom CPU templates in the new JSON format for all the existing static CPU templates. The set of templates is available here and will be maintained at least until the static CPU templates are removed from Firecracker. For more details about static and custom CPU templates, please refer to our documentation.
Maintenance of custom CPU templates
Custom CPU templates are user-defined and strictly depend on the combination of CPU, microcode, BIOS, operating system and Firecracker version in use. The user who defined a custom CPU template is also responsible for maintaining the template according to the CPU features that need to be exposed to the guest whenver there is an update to its dependencies. In Firecracker v1.4.0, we released the custom CPU template helper tool (
cpu-template-helper
binary) which assists a user in creating and maintaining custom CPU templates. For more details on the CPU template helper tool, please refer to our documentation.Should you have any questions, please feel free to ask in this discussion.
Sincerely,
The Firecracker team
Beta Was this translation helpful? Give feedback.
All reactions