-
Notifications
You must be signed in to change notification settings - Fork 96
Update evictionStrategy for imported VMs #956
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -243,3 +243,30 @@ To address the issue, perform one of the following workarounds: | |||||
| - Shut down the virtual machine before migrating it to Harvester | ||||||
| - In the `VirtualMachineImport` CRD spec, set the `forcePowerOff` field to `true`. | ||||||
| - Install VMware Tools or [open-vm-tools](https://knowledge.broadcom.com/external/article?legacyId=2073803). | ||||||
|
|
||||||
| ##### Eviction strategy is not set | ||||||
|
|
||||||
| When importing virtual machines, the eviction strategy field is not configured, which subsequently prevents live migration of the virtual machine. | ||||||
| To fix this, please run the following command: | ||||||
|
Comment on lines
+249
to
+250
|
||||||
|
|
||||||
| ```shell | ||||||
| kubectl patch VirtualMachine <vm-name> -n <namespace> --type=merge -p '{ | ||||||
| "spec": { | ||||||
| "template": { | ||||||
| "spec": { | ||||||
| "evictionStrategy": "LiveMigrateIfPossible" | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| }' | ||||||
| ``` | ||||||
|
|
||||||
| To configure all incorrectly configured virtual machines at once, please use the following command: | ||||||
|
||||||
| To configure all incorrectly configured virtual machines at once, please use the following command: | |
| To update all virtual machines missing the eviction strategy at once, use the following command: |
Copilot
AI
Jan 15, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation should clarify the prerequisites for running the bulk update command. The command requires jq to be installed, which may not be immediately obvious to all users. Consider adding a note that jq is required for the second command, or provide an alternative approach for users who don't have jq installed.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -285,3 +285,30 @@ To address the issue, perform one of the following workarounds: | |||||
| - Shut down the virtual machine before migrating it to Harvester | ||||||
| - In the `VirtualMachineImport` CRD spec, set the `forcePowerOff` field to `true`. | ||||||
| - Install VMware Tools or [open-vm-tools](https://knowledge.broadcom.com/external/article?legacyId=2073803). | ||||||
|
|
||||||
| ##### Eviction strategy is not set | ||||||
|
||||||
| ##### Eviction strategy is not set | |
| ##### Eviction Strategy Is Not Set |
Copilot
AI
Jan 15, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The phrase "To fix this, please run the following command:" could be more consistent with the documentation style used in the previous known issue. Consider using a more formal and consistent phrasing such as "To address the issue, run the following command:" which matches the style of "To address the issue, perform one of the following workarounds:" used in the VMware Tools issue above.
Copilot
AI
Jan 15, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The phrasing "To configure all incorrectly configured virtual machines" is redundant. Consider simplifying to "To configure all affected virtual machines at once" or "To update all virtual machines missing the eviction strategy" for better clarity and conciseness.
| To configure all incorrectly configured virtual machines at once, please use the following command: | |
| To update all virtual machines missing the eviction strategy, run the following command: |
Copilot
AI
Jan 15, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation should clarify the prerequisites for running the bulk update command. The command requires jq to be installed, which may not be immediately obvious to all users. Consider adding a note that jq is required for the second command, or provide an alternative approach for users who don't have jq installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading capitalization is inconsistent with other headings in the same section. Other headings like "Source Virtual Machine Name Is Not RFC1123-Compliant" and "VMware-Based Virtual Machine Without VMware Tools Is Not Migrated" use title case with major words capitalized. This heading should be "Eviction Strategy Is Not Set" for consistency.