mvisor-win-vgpu-driver
mvisor-win-vgpu-driver copied to clipboard
Not an issue, just FYI - I was able to run it in podman container, thanks for lifesaving SR-IOV alternative!
Thanks for your great mvisor/driver. It runs perfectly in the container, just want to share my example.
$ cat Dockerfile
FROM fedora:40
RUN dnf -y update && dnf install -y meson ninja-build libdrm-devel libpciaccess-devel mesa-libgbm-devel libva-devel libffi-devel alsa-lib-devel gcc-c++ libstdc++-devel protobuf-compiler acpica-tools yaml-cpp-devel glib2-devel libblkid-devel pixman-devel protobuf-devel libepoxy-devel cmake openssl libzstd-devel SDL2-devel gdb git && dnf clean all
RUN cd /opt && git clone https://github.com/tenclass/mvisor && git clone https://gitlab.freedesktop.org/virgl/virglrenderer
RUN cd /opt/virglrenderer && git reset --hard 8df4cba170940dad9350a99900293adbcef39b6c && meson build --prefix=/usr && ninja install -C build
RUN cd /opt/mvisor && meson setup build -Dsdl=true -Dvgpu=true && meson compile -C build/
$ cat mvisor.sh
#!/bin/bash
podman run -d --rm --name mvisor \
--device /dev/kvm \
--device /dev/dri \
-v /data/mvisor:/data:z \
-v /run/user/$(id -u)/:/run/user/$(id -u) \
-v /data/vm/ISO:/ISO:z \
-e WAYLAND_DISPLAY=$WAYLAND_DISPLAY \
-e XDG_RUNTIME_DIR=/run/user/$(id -u) \
-e DISPLAY \
mvisor:latest /opt/mvisor/build/mvisor -c /data/win10.yaml