kraftkit: Running kraftkit without `sudo` runs much slower
Describe the bug
After running the hello-world application I tried to use kraft ps command.
Running kraft ps takes much longer(2 seconds) than sudo kraft ps.
Steps to reproduce
git clone --depth=1 https://github.com/unikraft/app-helloworld.git;
cd app-helloworld;
kraft build --plat qemu --arch x86_64;
kraft run
kraft ps
Also, I think this is the same with all kraft commands.
Running as sudo it much faster.
Expected behavior
Both kraft ps and sudo kraft ps commands should run at the same fast.
Which architectures were you using or does this bug affect?
x86_64
Which operating system were you using or does this bug affect?
linux/debian
Relevant log output
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 21 (21 by maintainers)
Not if a common group is added that a user is part of and the group owns these resources. This is the idea behind
chowning the runtime directory/var/kraftkit. Then multiple users can read and write to this common path.By far the easiest solution here is to change
--runtime-dirconfig value to somewhere owned by the user such that they do not have to usesudo.I built
kraftfrom staging and ran it.If the user needs to fiddle with permissions manually on their machine the issue isn’t “fixed”.
I can’t reproduce this 😢
@nderjung has no chance to reproduce because his computer does not support more than one user
@antoineco can you investigate this when you have time?
Nope. For
kraft versionI don’t see this problem.