virtcontainers: apply devices constraints#701
Conversation
|
Build failed (third-party-check pipeline) integration testing with
|
|
@devimc Lets verify this change works with device passthrough. |
| @@ -669,7 +669,6 @@ func constraintGRPCSpec(grpcSpec *grpc.Spec) { | |||
| // By now only CPU constraints are supported | |||
There was a problem hiding this comment.
The comment is outdated even before this PR.
|
PSS Measurement: Memory inside container: |
Apply devices constraints to the container in the virtual machine Depends-on: github.com/kata-containers/agent#352 fixes kata-containers#656 Signed-off-by: Julio Montes <julio.montes@intel.com>
c257eea to
a825fda
Compare
|
@amshinde do you know if currently we have a device passthrough test? https://github.com/kata-containers/tests/blob/master/integration/docker/run_test.go#L85-L138 |
|
Build failed (third-party-check pipeline) integration testing with
|
|
PSS Measurement: Memory inside container: |
|
Hi, is there any difference in the use of docker command by using device constrain? I use following command to enable INTEL GPU device support, with this commit added in, the GPU device node "/dev/dri/card0" and "/dev/dri/renderD128" can be seen in container, but returns error if open() the device node. Without this commit, everything works well. docker run -it --runtime=kata-runtime --rm --device=/dev/vfio/0 -v /dev:/dev ubuntu /bin/bash |
|
@xindazhao this patch is to honour the devices cgroup, for example if you want to grant access to |
|
There is no direct relationship between the VFIO node and GPU device node. In the GVT-g (VFIO Mdev) scenario, multiple virtual GPUs share a physical GPU. We append different VFIO nodes (/dev/vfio/0, /dev/vfio/1 /dev/vfio/2 ....) to the docker command line, but in the guest VM, all the GPU device nodes that you see might be the same "/dev/dri/card0" and "/dev/dri/renderD128" |
|
@devimc what's the story on this PR? What is the blocker to make CI passing so that we can move to a mergeable state? |
|
if device constrains are applied, we'll face issues with vfio devices see #701 (comment) |
…anch-bump # Kata Containers 1.10.0-rc0
Apply devices constraints to the container in the virtual machine
Depends-on: github.com/kata-containers/agent#352
fixes #656
Signed-off-by: Julio Montes julio.montes@intel.com