1 |
On 11/25/2016 11:10 AM, john wrote: |
2 |
> On Thu, 24 Nov 2016 13:12:33 +0000 |
3 |
> john <jdm@××××××××××××.uk> wrote: |
4 |
> |
5 |
>> Hi, |
6 |
>> |
7 |
>> I am trying to run qemu virtual machine with virtio_gpu using the |
8 |
>> following command |
9 |
>> |
10 |
>> /usr/bin/qemu-system-x86_64 -enable-kvm -m 4096 -smp 8 -localtime |
11 |
>> -cdrom Fedora-Workstation-Live-x86_64-25_Beta-1.1.iso -boot |
12 |
>> once=d,menu=off -vga virtio -display gtk,gl=on |
13 |
>> |
14 |
>> but getting the following error when machine gets to display manager |
15 |
>> |
16 |
>> (qemu-system-x86_64:3192): |
17 |
>> Gdk-WARNING **:gdk_gl_context_set_required_version - GL context |
18 |
>> versions less than 3.2 are not supported. |
19 |
>> |
20 |
>> No provider of glUniform4uiv found. |
21 |
>> Requires oneof: |
22 |
>> Desktop OpenGL 3.0 |
23 |
>> OpenGL ES 3.0 |
24 |
>> GL extension "GL_EXT_gpu_shader4" |
25 |
>> |
26 |
>> |
27 |
>> I have also tried using -display with sdl,gl=on |
28 |
>> |
29 |
>> I have tried this in another (arch) linux box and works so I think it |
30 |
>> must be a use flag or something but struggling to find out which one |
31 |
>> or perhaps missing something else! |
32 |
>> |
33 |
>> lsmod shows virtio_gpu |
34 |
>> |
35 |
>> emerge -vp mesa |
36 |
>> media-libs/mesa-13.0.1::gentoo USE="bindist classic dri3 egl gallium |
37 |
>> gbm gles2 llvm nettle nptl -d3d9 -debug -gcrypt -gles1 -libressl |
38 |
>> -opencl -openmax -openssl -osmesa -pax_kernel -pic (-selinux) -vaapi |
39 |
>> -valgrind -vdpau -vulkan -wayland -xa -xvmc" ABI_X86="(64) -32 (-x32)" |
40 |
>> VIDEO_CARDS="radeon radeonsi (-freedreno) -i915 -i965 -ilo -intel |
41 |
>> -nouveau -r100 -r200 -r300 -r600 (-vc4) -vmware" 0 KiB |
42 |
>> |
43 |
>> virglrenderer is installed. |
44 |
>> |
45 |
>> If anyone has qemu and virtio-gpu running please let me know and I'll |
46 |
>> keep trying. |
47 |
>> |
48 |
>> |
49 |
>> Many Thanks |
50 |
>> John |
51 |
>> |
52 |
> |
53 |
> After having a search around the net and trying a few things emerged |
54 |
> mesa with the use flag -bindist and qemu machine fired up with |
55 |
> virtio_gpu |
56 |
> |
57 |
> the following command showed this in virtual guest |
58 |
> dmesg | grep virt |
59 |
> |
60 |
> Not sure what the bindist use flag is for but hey ho it's working. |
61 |
> Now shall I ditch lxc for qemu?? |
62 |
> |
63 |
> John. Long live Gentoo (the Ferrari of Linux distros). |
64 |
> |
65 |
> |
66 |
> |
67 |
> |
68 |
'bindist' is short for "binary distribution"; some code (mostly |
69 |
microcode, firmware, GPU drivers, multimedia codecs) is copyright- or |
70 |
patent-encumbered, meaning that you can't legally distribute some pieces |
71 |
of software in binary (compiled) form. The 'bindist' USE flag, in |
72 |
combination with the LICENSE variable in make.conf, give you the tools |
73 |
needed to decide how free (libre) you want your system to be. |
74 |
|
75 |
USE=bindist should be set per-package inside package.use, unless you |
76 |
understand the implications of setting or unsetting it globally. |
77 |
|
78 |
Great to read things are working! |
79 |
-- |
80 |
Daniel Campbell - Gentoo Developer |
81 |
OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net |
82 |
fpr: AE03 9064 AE00 053C 270C 1DE4 6F7A 9091 1EA0 55D6 |