From 942d509f802a75b95014702aff328f0d1edb6cbd Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman Date: Tue, 15 Oct 2024 12:14:30 -0300 Subject: [PATCH] infra/image/start.sh: Disable selection of cpus. On Github and Azure, Ubuntu 22.04 images do not allow the selection of the CPU numbers. --- infra/image/shcontainer | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/infra/image/shcontainer b/infra/image/shcontainer index 6f4e8a8527..18704bfa37 100644 --- a/infra/image/shcontainer +++ b/infra/image/shcontainer @@ -22,12 +22,14 @@ container_create() { --hostname "${hostname}" \ --network bridge:interface_name=eth0 \ --systemd true \ - --cpus "${cpus}" \ --memory "${memory}" \ --memory-swap -1 \ --no-hosts \ --replace \ "${image}" + + # Ubuntu 22.04 does not provide 'cpu' in cgroups in Github/Azure + # --cpus "${cpus}" \ echo }