From a4c19d70d826d8c0a221e397dbace441accf5e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Thu, 12 Dec 2024 19:23:28 +0800 Subject: [PATCH] fix(region): skip cloudpods vm kernel check (#21794) --- pkg/mcclient/cloudpods/instance.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/mcclient/cloudpods/instance.go b/pkg/mcclient/cloudpods/instance.go index e0bb447d90c..2f78ccf9a63 100644 --- a/pkg/mcclient/cloudpods/instance.go +++ b/pkg/mcclient/cloudpods/instance.go @@ -366,8 +366,9 @@ func (self *SInstance) LiveMigrateVM(hostId string) error { input := api.GuestLiveMigrateInput{} input.PreferHost = hostId input.PreferHostId = hostId - skipCpuCheck := true - input.SkipCpuCheck = &skipCpuCheck + skipCheck := true + input.SkipCpuCheck = &skipCheck + input.SkipKernelCheck = &skipCheck _, err := self.host.zone.region.perform(&modules.Servers, self.Id, "live-migrate", input) return err }