Skip to content

Conversation

@diafour
Copy link
Member

@diafour diafour commented Feb 3, 2026

Description

Change kubevirt behaviour for target Pod: add 60Mi more memory to the target Pod resource requirements depending on coreFraction value:

  • Increase requests and limits if cpu cores are guaranteed (coreFraction = 100%)
  • Increase limits only if cpu cores are not guaranteed (coreFraction < 100%).

See deckhouse/3p-kubevirt#66

Why do we need it, and what problem does it solve?

This additional memory should prevent OOMKills for the target Pod during VM migration with hotplugged disks.

What is the expected result?

VM with 16 hotplugged disks migrates with no OOMKills.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: vm
type: fix
summary: Prevent OOMKills for the target Pod during VM migration with hotplugged disks.

Change kubevirt behaviour for target Pod:
add 60Mi more memory to the target Pod resource requirements depending on coreFraction value:
- Increase requests and limits if cpu cores are guaranteed (coreFraction = 100%)
- Increase limits only if cpu cores are not guaranteed (coreFraction < 100%).

Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
@diafour diafour added this to the v1.6.0 milestone Feb 3, 2026
@diafour diafour requested review from Isteb4k and fl64 as code owners February 3, 2026 06:26
@diafour diafour requested review from yaroslavborbat and removed request for Isteb4k and fl64 February 3, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants