From ab523403668c7be3a76c3aa9b01ae58768d2dafd Mon Sep 17 00:00:00 2001 From: Kadin Sayani Date: Thu, 26 Sep 2024 17:49:12 -0600 Subject: [PATCH] lxd/instance: Add default setting for limits.cpu.pin_strategy Signed-off-by: Kadin Sayani --- lxd/instance/instance_utils.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lxd/instance/instance_utils.go b/lxd/instance/instance_utils.go index 03d6a6da1241..30103066feb4 100644 --- a/lxd/instance/instance_utils.go +++ b/lxd/instance/instance_utils.go @@ -693,6 +693,10 @@ func CreateInternal(s *state.State, args db.InstanceArgs, clearLogDir bool) (Ins args.Config["volatile.uuid.generation"] = args.Config["volatile.uuid"] + if args.Config["limits.cpu.pin_strategy"] == "" { + args.Config["limits.cpu.pin_strategy"] = "none" + } + if args.Devices == nil { args.Devices = deviceConfig.Devices{} }