One possible way to have CI with GPUs is to setup a VM with k3s and NVIDIA installed. Boot the VM with GPU
passthrough, run the tests, then rollback to a snapshot (delete the overlay we used).
It would be nice to script creating the VMs. Also in cases where VM is not QEMU or is not a VM we can just run
the generic portion of the tests. Copying the docker image into the container runtime is K3s specific, but it
could substituted for a repo.
[x] script creating the initial VM images and generate SSH keys
[x] script booting QEMU
[x] script uploading the image to K3s containerd
[ ] GPU passthrough (will nested virt make it difficult?)
One possible way to have CI with GPUs is to setup a VM with k3s and NVIDIA installed. Boot the VM with GPU passthrough, run the tests, then rollback to a snapshot (delete the overlay we used).
It would be nice to script creating the VMs. Also in cases where VM is not QEMU or is not a VM we can just run the generic portion of the tests. Copying the docker image into the container runtime is K3s specific, but it could substituted for a repo.
9