Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to initialize sandbox with --cg parameters #174

Open
yaghya opened this issue Jan 18, 2025 · 2 comments
Open

Not able to initialize sandbox with --cg parameters #174

yaghya opened this issue Jan 18, 2025 · 2 comments

Comments

@yaghya
Copy link

yaghya commented Jan 18, 2025

Getting this error , certain directories are missing in the /sys/fs/cgroup/cgroup path

azureuser@azure-docker:~/Documents/algoOJ/isolate$ sudo isolate --cg --init -b 1
Failed to create control group /sys/fs/cgroup/cpuacct/box-1/: No such file or directory

also this path
/sys/fs/cgroup/memory/

@yaghya
Copy link
Author

yaghya commented Jan 18, 2025

using you are using cgroup v2.
in ubuntu24.04

mount | grep cgroup
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)

azureuser@yaghya-oj:~$ cat /proc/cgroups
#subsys_name hierarchy num_cgroups enabled
cpuset 0 101 1
cpu 0 101 1
cpuacct 0 101 1
blkio 0 101 1
memory 0 101 1
devices 0 101 1
freezer 0 101 1
net_cls 0 101 1
perf_event 0 101 1
net_prio 0 101 1
hugetlb 0 101 1
pids 0 101 1
rdma 0 101 1
misc 0 101 1

@gollux
Copy link
Member

gollux commented Jan 31, 2025

Is isolate.service running?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants