feat(vm): reducing USB device downtime during VM migration#2098
Merged
Conversation
3ccb463 to
b27d513
Compare
b3853fd to
e9797cb
Compare
8 tasks
Member
|
Do we need to update this alert in USER_GUIDE.md? Upd: updated the alert in the 1.7.0 documentation PR. |
8ae8005 to
cc6b8ff
Compare
danilrwx
previously approved these changes
Mar 23, 2026
80248bc to
49a4f58
Compare
Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>
49a4f58 to
603a31d
Compare
danilrwx
approved these changes
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR improves USB device migration for virtual machines by delegating USB migration logic to KubeVirt.
Changes:
USBMigrationStrategyAnnannotation on KVVMI to control USB device behavior during migrationUSBMigrationStrategyIgnore: USB device is not detached before migration, instead it is ignored on the target domain and automatically detached/re-attached when the VM switches to the target nodeWhy do we need it, and what problem does it solve?
Previously, the USB migration logic was implemented in virtualization-controller:
This approach caused significant downtime for USB devices during migration — the device was unavailable from the detach operation until the attach operation completed on the target node.
The new approach moves this logic into KubeVirt and uses the
USBMigrationStrategyAnnannotation (set toUSBMigrationStrategyIgnore) on the KVVMI object:What is the expected result?
Expected behavior:
USBMigrationStrategyAnnannotation on KVVMIChecklist
Changelog entries