premAI-io / prem-operator

📡 Deploy AI models and apps to Kubernetes without developing a hernia
https://premai.io?utm_source=prem-operator
Apache License 2.0
17 stars 2 forks source link

Start of QEMU K3s based CI #13

Open richiejp opened 2 months ago

richiejp commented 2 months ago

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

richiejp commented 2 months ago

Even without nested virt I have run into a weird issue: https://www.reddit.com/r/VFIO/comments/1c1aynj/qemu_or_ovmf_efi_firmware_hangs_with_no_output/