diff --git a/internal/server/instance/drivers/driver_lxc.go b/internal/server/instance/drivers/driver_lxc.go index a33aadbb954..0a1d7668d0a 100644 --- a/internal/server/instance/drivers/driver_lxc.go +++ b/internal/server/instance/drivers/driver_lxc.go @@ -617,7 +617,7 @@ func (d *lxc) findIdmap() (*idmap.Set, int64, error) { offset = mapentries.Entries[i].HostID + mapentries.Entries[i].MapRange } - if offset+size < d.state.OS.IdmapSet.Entries[0].HostID+d.state.OS.IdmapSet.Entries[0].MapRange { + if offset+size <= d.state.OS.IdmapSet.Entries[0].HostID+d.state.OS.IdmapSet.Entries[0].MapRange { set, err := mkIdmap(offset, size) if err != nil && err == idmap.ErrHostIDIsSubID { return nil, 0, err