-
Notifications
You must be signed in to change notification settings - Fork 160
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
open sys/devices/virtual/dmi/id/product_uuid: permission denied #405
Comments
Hi @myugan, can you please paste here the instruction you are using to launch the container? Also, if you're using docker, can you share the Also, please provide the Linux distro and kernel. |
This is my config file:
Kernel: |
I can reproduce it neither with v0.4.1 nor with v0.4.0. Please provide the following:
|
|
Previously I tried to upgrade to 0.4.1 but got the same error and rollback the version to 0.4.0 seems it affected the previous version |
Looks like your docker config (
Did you restart dockerd after making those config changes? |
Yes, i restarted it also reboot the server but still got the same problem |
That's strange. Can you double-check that docker is really running in your machine ( |
If it helps, I am using Docker 20.10.9 in userns-remap mode, and
|
@myugan, can you please answer my previous question above? If you are unable to reproduce the issue due to this one being a non-sysbox problem, please close this one when have a chance. |
Closing this issue, since I restored the machine with the previous backup. |
I have the same issue, It's because there's no
by running
by normal server I got the correct uuid:
and |
Thanks @mkarimim. Looks like Sysbox is assuming that the host will have a valid Question: in your host, does
For example, in my dev machine I see:
Thanks! |
@mkarimim, that's right, I recently noticed this error in Linode's KVM machines where VMs were being spawned without the kvm/qemu's We have a fix in mind that will eliminate this Sysbox dependency. |
@rodnymolina is there a workaround that one could use in the meantime, please? |
Hi @kevinnls, what do you see on your host with:
Does that file exist? If not, then you can work-around the problem by creating a fake uuid as follows:
You need root access to do that. Use a better / random UUID too. |
hi, @ctalledo . thanks for the response
no
this is how it went :// sudo -i
uuidgen >fakeuuid
mount -B fakeuuid /sys/devices/virtual/dmi/id/product_uuid
### ERR ### mount: /sys/devices/virtual/dmi/id/product_uuid: mount point does not exist.
touch $_
### ERR ### touch: [...] permission denied
mkdir $_
### ERR ### mkdir: [...] operation not permitted i did check additional output: ls -ldZ /sys/devices/virtual/dmi/id/
### OUT ### drwxr-xr-x. 3 root root system_u:object_r:sysfs_t:s0 0 Dec 12 16:01 /sys/devices/virtual/dmi/id i am on a Linode running Fedora34 |
Hi @kevinnls,
I see, the file is not there and you can't even create a fake one on top. I am afraid that's the only (hacky) workaround I had in mind. Short of that, fixing this will require that we make a change in Sysbox such that if the host machine does not have the Question: Sysbox works best on Ubuntu (because it carries a module called |
hi @ctalledo
no. i'll give it a shot later and share the results on this thread |
@kevinnls, please keep in mind that the same problem should be present in Ubuntu. As I said above, the problem here is a consequence of how Linode instantiates its KVM-based VMs, so the issue will be seen in all the Linux distros installed in those VMs. Btw, we haven't seen this issue in any other cloud vendor so far. We should have a proper fix for this one in the next release (in ~ 3 weeks from now). |
as @rodnymolina noted
same results on Ubuntu 20.04 on Linode. the |
Thanks @kevinnls for confirming. Looks like a work-around is not possible then, we will need the work-around in Sysbox itself. |
Duplicate of sysbox issue #439. Let's use that one to track the issue. |
Hi, I'm facing an issue when executing the container using sysbox (0.4.0) here is the log that I got using
docker inspect
The text was updated successfully, but these errors were encountered: