Gentoo Archives: gentoo-user

From: john <jdm@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] QEMU virtio_gpu
Date: Fri, 25 Nov 2016 19:11:10
Message-Id: 20161125191052.31d908f8@echoes
In Reply to: [gentoo-user] QEMU virtio_gpu by john
1 On Thu, 24 Nov 2016 13:12:33 +0000
2 john <jdm@××××××××××××.uk> wrote:
3
4 > Hi,
5 >
6 > I am trying to run qemu virtual machine with virtio_gpu using the
7 > following command
8 >
9 > /usr/bin/qemu-system-x86_64 -enable-kvm -m 4096 -smp 8 -localtime
10 > -cdrom Fedora-Workstation-Live-x86_64-25_Beta-1.1.iso -boot
11 > once=d,menu=off -vga virtio -display gtk,gl=on
12 >
13 > but getting the following error when machine gets to display manager
14 >
15 > (qemu-system-x86_64:3192):
16 > Gdk-WARNING **:gdk_gl_context_set_required_version - GL context
17 > versions less than 3.2 are not supported.
18 >
19 > No provider of glUniform4uiv found.
20 > Requires oneof:
21 > Desktop OpenGL 3.0
22 > OpenGL ES 3.0
23 > GL extension "GL_EXT_gpu_shader4"
24 >
25 >
26 > I have also tried using -display with sdl,gl=on
27 >
28 > I have tried this in another (arch) linux box and works so I think it
29 > must be a use flag or something but struggling to find out which one
30 > or perhaps missing something else!
31 >
32 > lsmod shows virtio_gpu
33 >
34 > emerge -vp mesa
35 > media-libs/mesa-13.0.1::gentoo USE="bindist classic dri3 egl gallium
36 > gbm gles2 llvm nettle nptl -d3d9 -debug -gcrypt -gles1 -libressl
37 > -opencl -openmax -openssl -osmesa -pax_kernel -pic (-selinux) -vaapi
38 > -valgrind -vdpau -vulkan -wayland -xa -xvmc" ABI_X86="(64) -32 (-x32)"
39 > VIDEO_CARDS="radeon radeonsi (-freedreno) -i915 -i965 -ilo -intel
40 > -nouveau -r100 -r200 -r300 -r600 (-vc4) -vmware" 0 KiB
41 >
42 > virglrenderer is installed.
43 >
44 > If anyone has qemu and virtio-gpu running please let me know and I'll
45 > keep trying.
46 >
47 >
48 > Many Thanks
49 > John
50 >
51
52 After having a search around the net and trying a few things emerged
53 mesa with the use flag -bindist and qemu machine fired up with
54 virtio_gpu
55
56 the following command showed this in virtual guest
57 dmesg | grep virt
58
59 Not sure what the bindist use flag is for but hey ho it's working.
60 Now shall I ditch lxc for qemu??
61
62 John. Long live Gentoo (the Ferrari of Linux distros).

Replies

Subject Author
Re: [gentoo-user] QEMU virtio_gpu Daniel Campbell <zlg@g.o>