Skip to content

dGPU not being used with libvirtio-vgpu #69

Description

@jobs-git

Host: Ubuntu 24.04
Guest: Win 10 (virtio-win-266-no gpu do driver + mvisor-win-vgpu driver installed)
Kernel: 6.8.0-51-generic
dGPU: Nvidia RTX 4070 - not connected to any monitor
iGPU: AMDGPU (Ryzen 7600) connected to monitor
Nvidia-driver: 550.127.05 (Vanilla) https://www.nvidia.com/en-us/drivers/details/233004/

Build step:

git clone https://gitlab.freedesktop.org/virgl/virglrenderer
git reset --hard 8df4cba170940dad9350a99900293adbcef39b6c
# apply patch for blob
cd virglrenderer
meson build --prefix=/usr && sudo ninja install -C build

git clone https://github.com/tenclass/mvisor 
cd mvisor
meson setup build -Dsdl=true -Dvgpu=true
meson compile -C build

I have an Nvidia 4070 RTX dGPU at /dev/dri/render129 on pcie slot. Host monitor is connected iGPU AMDGPU from Ryzen 7600. Virglrenderer has been patch and installed based on https://github.com/tenclass/mvisor-win-vgpu-driver readme.

Below is the configuration that I use:

name: Default configuration
base: q35.yaml

machine:
  memory: 4G
  vcpu: 4
  # Set vcpu thread priority value [-20, 19]
  # A higher value means a lower priority
  priority: 1
  # Turn on BIOS output and performance measurement
  debug: No
  # Turn on hypervisor to lower CPU usage (Hyper-V is used for Windows)
  hypervisor: Yes

objects:
  - name: cmos
    # gmtime for linux, localtime for windows
    rtc: localtime

  - class: qxl
  - class: spice-agent
  - class: usb-tablet

  - class: virtio-network
    mac: 00:50:00:11:22:33
    map: tcp:0.0.0.0:8022-:22

  - class: ata-cdrom 
    image: /home/vgpu-guest-driver-build-master.iso
  
  - class: ata-cdrom
    image: /home/virtio-win-0.1.266.iso

  - class: ata-disk
    image: /home/win10gl.qcow2
    snapshot: No

  - class: virtio-vgpu
    memory: 1G
    staging: yes
    blob: Yes
    node: /dev/dri/renderD129

I was suspecting it needs prime so I did:

DRI_PRIME=1 ./build/mvisor -c config/sample.yaml -vnc 5900

But I get this error:

failed to load driver: nouveau

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions