UCL-INGI / INGInious

INGInious is a secure and automated exercises assessment platform using your own tests, also providing a pluggable interface with your existing LMS.
http://www.inginious.org
Other
202 stars 139 forks source link

[base/kvm] Add KVM enabled base container #949

Open nrybowski opened 1 year ago

nrybowski commented 1 year ago

This PR adds a new base container able to launch a specific Linux kernel within a KVM. New grading environments should inherit from this container as it is the case for the base container. Task leveraging such grading environments must support the SSH feature of INGInious.

TODO

TODO in further PRs

https://github.com/UCL-INGI/INGInious/blob/a9962cad2a18caf87a73f10c627fc98f561f0e6c/base-containers/base/inginious_container_api/utils.py#L79

Such logs could be used in further grading scripts.

nrybowski commented 1 year ago

This PR should solve https://github.com/UCL-INGI/INGInious/issues/939.

nrybowski commented 1 year ago

Some slowness is observed during the execution of a simple mininet command such as mn --switch lxbr --topo tree,depth=2,fanout=8 --test pingall at the startup of the fifth switch. The VM has two cores and 256Mo of RAM but none of those ressources are used at their maximum. Further investigation is required but do not prevent the integration of this feature which is anyway still experimental.