Skip to content
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

Not an issue, just FYI - I was able to run it in podman container, thanks for lifesaving SR-IOV alternative! #18

Open
pg2web opened this issue Oct 9, 2024 · 1 comment

Comments

@pg2web
Copy link

pg2web commented Oct 9, 2024

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

@nooodles2023
Copy link
Collaborator

Glad to be helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants