Skip to content

Commit e643348

Browse files
committed
incusd/instance/qemu: Limit memory hotplug slots to 8
Closes #2003 Signed-off-by: Stéphane Graber <[email protected]>
1 parent 858d3a3 commit e643348

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/server/instance/drivers/driver_qemu_templates.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,10 @@ func qemuMemory(opts *qemuMemoryOpts) []cfg.Section {
157157
Comment: "Memory",
158158
Entries: map[string]string{
159159
"size": fmt.Sprintf("%dM", opts.memSizeMB),
160-
"slots": "16",
161160
"maxmem": fmt.Sprintf("%dM", opts.maxSizeMB),
161+
// Some systems hit odd errors when using more than 8 hotplug slots.
162+
// That's even with maxmem capped at the total system memory.
163+
"slots": "8",
162164
},
163165
}
164166

0 commit comments

Comments
 (0)