-
Notifications
You must be signed in to change notification settings - Fork 149
[base/kvm] Add KVM enabled base container #949
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
Draft
nrybowski
wants to merge
122
commits into
INGInious:main
Choose a base branch
from
nrybowski:kvm_container
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
122 commits
Select commit
Hold shift + click to select a range
257272b
fix - change class for file code icon
anaHue d217a51
Merge pull request #829 from anaHue/fix_missing_icon
Drumor 8387d00
add - submission date to feedback
anaHue 92edb30
use strftime instead of replacing microseconds
anaHue 752bc46
corrected the display for submission date
anaHue eccc423
Merge pull request #831 from anaHue/fix_issue_278
Drumor d8c2ecc
[frontend/course admin] switch course settings layout to tabs (#821)
Drumor d5726df
[frontend/course_admin] fix bad student count (#836)
Drumor 7de1fb1
[filesystems/local] use copy2 instead of copy (#840)
anaHue b55107c
[frontend/course_admin] move tags page to settings page (#841)
Drumor c1f47ac
[course_admin/edit_tabs] add network interface hint tooltip (#839)
anaHue fc5bde4
[frontend] Moving the concept of weight into the Task Dispenser (#849)
maleclercq 7a4a27d
[task_dispenser/combinatory_test] now return a proper dispenser data …
maleclercq 7c05707
[frontend] Moving the number of stored submission into the Task Dispe…
maleclercq 18d6025
[ci] temporarily mitigate issue with markupsafe
anthonygego 78e05cf
[frontend] Moving the concept of evaluation submission into the Task …
maleclercq 4b64864
[doc] fix #856 : typo in hidden-until docs
anthonygego ae95c5e
[frontend] Categories managed by the Task Dispenser (#855)
maleclercq 83a76a0
[routes] adapt CookielessConverter to new werkzeug router
anthonygego a1dc28f
[backend] do not erase previous state in case of errors
anthonygego cad231e
Merge pull request #857 from UCL-INGI/keep_state_on_errors
Drumor 0c52359
[installer] Add default configuration flag (#860)
nrybowski 300e7ce
[audiences] replace import/export format by human-readable CSV
Drumor d495824
[frontend/parsable_text] fix hidden-until behaviour when time is passed
anthonygego e7ffd0d
[frontend/tasks] add ssh client option to use password authentication…
FlyearthR 64d71e3
Update issue templates
nrybowski 0a882b1
[frontend/i18n] fix variable name in portuguese string
anthonygego 706ec66
Translated using Weblate (French)
anthonygego b8523f7
[frontend/course_admin] add additional course fields (#825)
Drumor 3599289
Merge pull request #859 from INGIbot/weblate-inginious-frontend
anthonygego 39f3a86
[frontend/tests] Removing and migrating legacy tests (#879)
Drumor 0959be6
[frontend/installer] fix containers build (#877)
Drumor bed7d63
[utils/task-tester] Updated version of task-tester
nrybowski 0ca5988
[utils/task-tester] Add generic way to add problem types from plugins
nrybowski dea7f3d
[utils/task-tester] Improve logs
nrybowski e77822c
[utils/task-tester] Move to dir and add submissions anonymizer
nrybowski 38ba24c
[utils/task-tester] Dump anonymized submissions in course-alike struc…
nrybowski 633218d
[utils/task-tester] Improve submissions anonymizer script
nrybowski 4e6dc94
[utils/task_tester] Modular anonymized fields
nrybowski f4c8ae3
[utils/task-tester] Fix failing tag value concatanation to logs
nrybowski 6e49a9d
[utils/task-tester] Refactor logging system
nrybowski 0ae0236
[utils/task-tester] Add warning on task anonymizer
nrybowski 565f102
[utils/task-tester] Update scripts documentation
nrybowski 7aec561
[utils/task-tester] Add simple tests and get taskid from submission
nrybowski ce34c1f
[utils/task-tester] Automatically load problem types
nrybowski 7e6a664
[docs] update setup instructions for Ubuntu (#873)
Drumor daa97fe
Add roadmap link in README (#889)
nrybowski f6c2108
Translated using Weblate (French)
NoaQuenon f0918bd
Merge pull request #890 from INGIbot/weblate-inginious-frontend
anthonygego 427d4d7
Merge pull request #861 from nrybowski/task_test
anthonygego 103dc9e
[common/tasks_problems] Problem types auto-discovery (#866)
nrybowski c38f4de
File extensions must be separated by commas
tbarbette 443e0e2
Merge pull request #902 from tbarbette/patch-1
Drumor d84f8c9
[backend] BackendJobDone should be sent to the job initiating client
anthonygego dd96507
Update installation.rst
petitpouletrose 85f764d
Merge pull request #906 from petitpouletrose/patch-1
Drumor 8e05424
Update copyright dates
anthonygego a0dfe26
[frontend/tasks] fix call for task_user_can_submit
anthonygego ed6d038
Added translation using Weblate (Hebrew)
yarons adceeb4
Translated using Weblate (Hebrew)
yarons 96ec030
Translated using Weblate (Hebrew)
yarons 6e4f025
Merge pull request #911 from INGIbot/weblate-inginious-frontend
Drumor 3de90fb
[docker_agent] fix container timestamp for docker 23+
anthonygego 9f645aa
Merge pull request #913 from UCL-INGI/container_created_time
nrybowski 1b778bb
[agent_docker] add support for nvidia runtime
anthonygego ff216fe
[docs] add documentation for other docker runtimes
anthonygego 9392a74
Addition of a "centralize" property for match problem to display only…
f769064
Addition of a "centralize" property for match problem. Js behaviour a…
79c784f
Merge pull request #918 from UCL-INGI/fix_909
anthonygego 1c6fe48
[course_admin] filter non activate and "empty username" users. (#919)
Drumor 14aba42
import prebuilded files (bootstrap RTL)
ef1e5ee
style files for RTL
2e97fc9
RTL activation logic
17d6b5f
Localization file updates
8c4e934
Make a unique grunt file
eff6a19
Update after conflicted rebase
5795088
Get same version of bootswatch. (update to 4.5.3)
8843f80
Update style based on remarks + rebuild minified js files.
5c4eb0b
Merge pull request #910 from UCL-INGI/RTL
anthonygego 678a688
[frontend/tasks] move submission_limit to task_dispensers
anthonygego 7c9095c
[frontend/tasks] move group_submission_mode to task_dispensers
anthonygego 152b4d3
[frontend/tasks] move task accessibility to task_dispensers (1/2)
anthonygego 196c865
[frontend/tasks] move task accessibility to task_dispensers (2/2)
anthonygego afed13e
[frontend/tasks] mark the current task dispenser as selected in the s…
anthonygego 56767f2
[course_admin/edit_tasks] remove task deletion from the task edit page
anthonygego e3cba97
[frontend/task_dispenser] remove dead code in sectionslist
anthonygego 57b6c51
[frontend/task_dispenser] remove id and rank from sectionslist
anthonygego 88ff4db
[frontend/task_dispenser] improve dispenser data structure
anthonygego d4a3023
[frontend/task_dispensers] optimize fetching multiple accessibilities
anthonygego 0ea62cc
[frontend/task_dispensers] optimize course grade computation
anthonygego 25a163c
[frontend/task_dispensers] make CombinatoryTest inherit from TableOfC…
anthonygego 57b6d32
[frontend/task_dispensers] sort dangling tasks by name natural order
anthonygego 56d9d02
[frontend/task_dispensers] make task config fields set modular
anthonygego dcba35a
[plugins/upcoming_tasks] clean plugin according to task dispensers ch…
anthonygego 2c587eb
[frontend/task_dispenser] fix get_all_categories if no tasks
anthonygego 00637ab
[frontend/task_dispenser] remove duplicate dispenser structure gencode
anthonygego 3de072e
[frontend/js] update minified js
anthonygego 31a8b8e
Merge pull request #915 from UCL-INGI/nvidia_runtime
Drumor 2b054c4
Merge pull request #908 from UCL-INGI/task_disp_refactor
Drumor cebfaad
[frontend/course] Additional fields for student (#832)
Drumor c2f58fe
[submission_manager] forward user settings in submission input (#835)
Drumor ddb8ad1
[frontend] remove social share feature (#933)
Drumor c78ee4b
Update transalations (#934)
Drumor 684c885
Update translation files
weblate b936d3a
Translated using Weblate (French)
145fc84
[frontend/templates] replace css btn-default by btn-secondary
anthonygego 6fcd7c5
[agent/docker] replace SSH opt-in by env types
anthonygego b3f66e3
Merge pull request #940 from UCL-INGI/fix_887
Drumor 789df86
Merge pull request #935 from INGIbot/weblate-inginious-frontend
anthonygego 09629d1
[frontend/submission_manager] catch DocumentTooLarge exception
anthonygego f348216
Merge pull request #941 from UCL-INGI/fix_697
Drumor 509210c
[frontend/flask] fix session_cookie_name deprecation
anthonygego 7fc0983
[setup] temporarily restrict to requests<2.2.29
anthonygego 88d9b49
[base/kvm] Add KVM enabled base container
nrybowski 16303b4
[base/kvm] Fixes + make codacy happy
nrybowski f8a83de
Enable KVM passthrough agent-side
nrybowski ecbcfd2
[base/kvm] Fix virtme patch + add missing telnet config
nrybowski a954d86
[base/kvm] Fix virtme-run path
nrybowski 99a07f6
[base/kvm] Automated KVM launch on student container launch
nrybowski e7c4628
[base/kvm] Launch telnet to KVM at SSH connection
nrybowski 703ba30
[base/kvm] Hardcode qemu-kvm src rpm URL
nrybowski d726555
[env/kvm] Launch task script, if any, on student SSH login
nrybowski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| --- | ||
| name: Bug report | ||
| about: Create a report to help us improve | ||
| title: Add the context of the bug at the beginning of the title, if possible, e.g. | ||
| [frontend/installer] | ||
| labels: Bug | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| **Describe the bug** | ||
| A clear and concise description of what the bug is. | ||
|
|
||
| **INGInious installation details** | ||
| - Version: [e.g. v.0.8.2 or the git hash] | ||
| - Containers version (if applicable) [e.g. the git hash] | ||
|
|
||
| **To Reproduce** | ||
| Steps to reproduce the behavior: | ||
| 1. Go to '...' | ||
| 2. Click on '....' | ||
| 3. Scroll down to '....' | ||
| 4. See error | ||
|
|
||
| **Expected behavior** | ||
| A clear and concise description of what you expected to happen. | ||
|
|
||
| **Screenshots** | ||
| If applicable, add screenshots to help explain your problem. | ||
|
|
||
| **Desktop (please complete the following information):** | ||
| - OS: [e.g. iOS] | ||
| - Browser [e.g. chrome, safari] | ||
| - Version [e.g. 22] | ||
|
|
||
| **Additional context** | ||
| Add any other context about the problem here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
| name: Feature request | ||
| about: Suggest an idea for this project | ||
| title: Add the context of the feature request at the beginning of the title, if possible, | ||
| e.g. [frontend/installer] | ||
| labels: Feature request | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| **Is your feature request related to a problem? Please describe.** | ||
| A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
|
||
| **Describe the solution you'd like** | ||
| A clear and concise description of what you want to happen. | ||
|
|
||
| **Describe alternatives you've considered** | ||
| A clear and concise description of any alternative solutions or features you've considered. | ||
|
|
||
| **Additional context** | ||
| Add any other context or screenshots about the feature request here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,102 @@ | ||
| ARG VERSION=latest | ||
| ARG REGISTRY | ||
|
|
||
| # Rockylinux does not enable 9P virtfs in the shipped QEMU builds, hence we have to rebuild our own version | ||
| # Inspired from https://github.com/acudovs/qemu-kvm-virtfs/blob/master/rpmbuild/build | ||
| FROM rockylinux:8 as builder | ||
|
|
||
| # Enable additional repos | ||
| RUN dnf -y install 'dnf-command(config-manager)' &&\ | ||
| dnf config-manager --set-enabled powertools | ||
|
|
||
| # Install dependencies to build QEMU | ||
| RUN yum -y update && yum -y install \ | ||
| glusterfs-api-devel \ | ||
| glusterfs-devel \ | ||
| iasl \ | ||
| libcacard-devel \ | ||
| libpmem-devel \ | ||
| nss-devel \ | ||
| pkgconfig \ | ||
| spice-protocol \ | ||
| spice-server-devel \ | ||
| usbredir-devel \ | ||
| yum-utils \ | ||
| 'pkgconfig(epoxy)' \ | ||
| 'pkgconfig(gbm)' \ | ||
| 'pkgconfig(libdrm)' \ | ||
| git | ||
|
|
||
| # Apply patches and build QEMU | ||
| WORKDIR /opt | ||
| RUN yum-builddep -y qemu-kvm | ||
| #RUN yumdownloader --source qemu-kvm | ||
| RUN wget "http://download.rockylinux.org/pub/rocky/8/AppStream/source/tree/Packages/q/qemu-kvm-6.2.0-32.module%2Bel8.8.0%2B1279%2B230c2115.src.rpm" | ||
| RUN rpm -Uvh qemu-kvm-*.src.rpm | ||
| #RUN git clone https://git.rockylinux.org/staging/rpms/qemu-kvm.git &&\ | ||
| # git -C qemu-kvm checkout r8s-stream-rhel &&\ | ||
| # if [[ ! -d /root/rpmbuild ]]; then mkdir /root/rpmbuild; fi &&\ | ||
| # mv qemu-kvm/{SOURCES,SPECS} /root/rpmbuild/ | ||
| RUN sed -i -e 's/--disable-virtfs/--enable-virtfs/' \ | ||
| -e 's/--disable-virtiofsd/--enable-virtiofsd/g' \ | ||
| /root/rpmbuild/SPECS/qemu-kvm.spec | ||
| RUN sed -i -e '/^%files -n qemu-kvm-common/,/^$/s/^$/%{_bindir}\/virtfs-proxy-helper\n%{_mandir}\/man1\/virtfs-proxy-helper.1.gz\n/' \ | ||
| -e '/^%if %{rhev}$/,/^%else$/s/pkgsuffix -ev/pkgsuffix -virtfs/' \ | ||
| -e '/%define rhel_rhev_conflicts()/ a Provides: %1-ev = %{epoch}:%{version}-%{release} \\\nObsoletes: %1-ev < %{obsoletes_version} \\' \ | ||
| -e 's/rm -rf ${RPM_BUILD_ROOT}%{_mandir}\/man1\/virtfs-proxy-helper\*//g' \ | ||
| -e 's/rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}\/virtfs-proxy-helper/mv ${RPM_BUILD_ROOT}%{_libexecdir}\/virtfs-proxy-helper ${RPM_BUILD_ROOT}%{_bindir}\/virtfs-proxy-helper/g' \ | ||
| /root/rpmbuild/SPECS/qemu-kvm.spec | ||
| COPY virtio-9p-pci.patch /root/rpmbuild/SOURCES/ | ||
| COPY qemu-kvm.spec.patch /tmp | ||
| RUN patch /root/rpmbuild/SPECS/qemu-kvm.spec /tmp/qemu-kvm.spec.patch | ||
| #RUN mkdir /tmp/qemu-6.2.0 &&\ | ||
| # cp /root/rpmbuild/SOURCES/* /tmp/qemu-6.2.0/ &&\ | ||
| # cd /tmp &&\ | ||
| # tar cJf /tmp/qemu-6.2.0.tar.xz qemu-6.2.0 &&\ | ||
| # mv /tmp/qemu-6.2.0.tar.xz /root/rpmbuild/SOURCES/ | ||
| RUN rpmbuild -ba --clean /root/rpmbuild/SPECS/qemu-kvm.spec | ||
|
|
||
| # Build GNU telnetd server since classical builds do not allow running bash as login util | ||
| RUN wget "https://ftp.gnu.org/gnu/inetutils/inetutils-2.4.tar.xz" &&\ | ||
| tar xf inetutils-2.4.tar.xz &&\ | ||
| cd inetutils-2.4 &&\ | ||
| ./configure --disable-servers --disable-clients --enable-telnetd --enable-telnet &&\ | ||
| make -j$(nproc) | ||
|
|
||
| # ===================== | ||
| # KVM base container | ||
| # ===================== | ||
| FROM ${REGISTRY}/inginious/env-base:${VERSION} | ||
|
anthonygego marked this conversation as resolved.
|
||
| LABEL org.inginious.kvm 1 | ||
|
|
||
| # Install QEMU with 9P virtifs enabled | ||
| COPY --from=builder /root/rpmbuild/RPMS/x86_64/qemu-*.rpm /tmp/ | ||
| RUN yum localinstall -y /tmp/*rpm &&\ | ||
| rm -rf /tmp/*rpm &&\ | ||
| ln -s /usr/libexec/qemu-kvm /bin/qemu-kvm | ||
|
|
||
| # Install GNU telnet utils | ||
| COPY --from=builder /opt/inetutils-2.4/telnet/telnet /usr/sbin | ||
| COPY --from=builder /opt/inetutils-2.4/telnetd/telnetd /usr/sbin | ||
|
|
||
| # Install dependecies | ||
| RUN dnf install -y expect xinetd git | ||
|
|
||
| # Make xinet config readable for worker user in SSH container | ||
| RUN chmod 644 /etc/xinetd.conf | ||
|
|
||
| # Install virtme | ||
| WORKDIR /opt | ||
| COPY virtme.patch . | ||
| RUN git clone https://github.com/amluto/virtme &&\ | ||
| git -C virtme apply < virtme.patch &&\ | ||
| ln -s $(pwd)/virtme/virtme-run /bin/virtme-run | ||
|
|
||
| WORKDIR / | ||
|
|
||
| # Get expect script launching the VM | ||
| COPY run.expect setup.sh telnet_login.sh / | ||
| ENV KVM_START_PATH=/run.expect | ||
|
|
||
| # Add telnetd config | ||
| COPY telnet /etc/xinetd.d/ | ||
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- qemu-kvm.spec 2023-05-22 13:26:12.087046202 +0000 | ||
| +++ /root/rpmbuild/SPECS/qemu-kvm.spec 2023-05-22 12:40:09.838715272 +0000 | ||
| @@ -652,6 +652,8 @@ | ||
| Patch256: kvm-dma-helpers-prevent-dma_blk_cb-vs-dma_aio_cancel-rac.patch | ||
| # For bz#2090990 - qemu crash with error scsi_req_unref(SCSIRequest *): Assertion `req->refcount > 0' failed or scsi_dma_complete(void *, int): Assertion `r->req.aiocb != NULL' failed [8.7.0] | ||
| Patch257: kvm-virtio-scsi-reset-SCSI-devices-from-main-loop-thread.patch | ||
| +# Enable 9P virtfs | ||
| +Patch258: virtio-9p-pci.patch | ||
|
|
||
| BuildRequires: wget | ||
| BuildRequires: rpm-build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| #!/usr/bin/expect -f | ||
|
|
||
| log_user 0 | ||
| set timeout 600 | ||
| spawn /setup.sh | ||
| expect "virtme-init: console is ttyS0\r" | ||
| send -- "ip a add 10.0.2.15/24 dev enp0s2\r" | ||
| send -- "ip l set dev enp0s2 up\r" | ||
| send -- "touch /tmp/student/.telnet\r" | ||
| send -- "stdbuf -oL xinetd -d\r" | ||
| wait |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| #! /bin/bash -x | ||
|
|
||
| # Load env variables | ||
| STUDENT_DIR=/task/student | ||
| KVM_DIR="${STUDENT_DIR}/kvm" | ||
| SCRIPTS_DIR="${STUDENT_DIR}/scripts" | ||
| STUDENT_LOGIN="${SCRIPTS_DIR}/student_login" | ||
|
|
||
| # Set kvm group in human-readable way | ||
| groupdel kvm | ||
| groupadd -g $(stat -c '%g' /dev/kvm) kvm | ||
|
|
||
| # Create RW dir mounted in the KVM | ||
| mkdir "${KVM_DIR}" | ||
| chown worker:worker /task | ||
| chown worker:worker "${KVM_DIR}" | ||
|
|
||
| # Copy the kernel in a path readable by "worker" within the SSH container | ||
| cp "${SCRIPTS_DIR}/bzImage" /tmp | ||
|
|
||
| # Copy student_login file, if any, in a path readable by "worker" within the VM | ||
| if [[ -f "${STUDENT_LOGIN}" ]] | ||
| then | ||
| cp "${STUDENT_LOGIN}" / | ||
| fi | ||
|
|
||
| # Launch the KVM as "worker" | ||
| su - worker -G worker -G kvm -c "virtme-run --cpus 2 --memory 256 --kimg /tmp/bzImage --rwdir=/tmp/student=${KVM_DIR}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| service telnet | ||
| { | ||
| flags = REUSE IPv4 | ||
| socket_type = stream | ||
| wait = no | ||
| user = root | ||
| server = /usr/sbin/telnetd | ||
| server_args = -E /telnet_login.sh | ||
| disable = no | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| #! /bin/bash | ||
|
|
||
| FIRST=/tmp/.first | ||
| STUDENT_LOGIN="/student_login" | ||
|
|
||
| if [[ ! -f "${FIRST}" ]] | ||
| then | ||
| # On first login within the KVM | ||
| touch "${FIRST}" | ||
|
|
||
| if [[ -f "${STUDENT_LOGIN}" ]] | ||
| then | ||
| # If the task specifies a given setup to launch (e.g. a mininet script), run it | ||
| ./"${STUDENT_LOGIN}" | ||
| else | ||
| # Else, simply spawn a shell in the KVM | ||
| /bin/bash | ||
| fi | ||
| else | ||
| /bin/bash | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| +++ a/configs/devices/x86_64-softmmu/x86_64-rh-devices.mak 2023-05-22 12:17:06.102529121 +0000 | ||
| --- /dev/null | ||
| @@ -90,6 +90,7 @@ | ||
| CONFIG_VHOST_USER_BLK=y | ||
| CONFIG_VIRTIO_PCI=y | ||
| CONFIG_VIRTIO_VGA=y | ||
| +CONFIG_VIRTIO_9P=y | ||
| CONFIG_VMMOUSE=y | ||
| CONFIG_VMPORT=y | ||
| CONFIG_VTD=y |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd document the args at both sides, here and at the call side in
_docker_interface.py(to avoid implementing a useless argumentparser that would be self documenting)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The arguments managment will be replaced by an argparser.