bedtime n00b
Joined: 19 Dec 2012 Posts: 71
|
Posted: Sat Jul 08, 2017 3:39 pm Post subject: Trying to run virgl in qemu |
|
|
Here is my qemu script:
File: config
Code: | #!/bin/zsh
rm /hugepages/Gentoo
/usr/bin/qemu-system-x86_64 \
-daemonize \
-cpu IvyBridge,ss=on,pcid=on,hypervisor=on,arat=on,tsc_adjust=on,xsaveopt=on,aes=off,rdrand=off \
-smp 1,sockets=1,cores=1,threads=1 \
-soundhw hda \
-device AC97 \
-vga virtio \
-display gtk,gl=on \
-device virtio-vga,virgl=on \
-usb \
-machine accel=kvm,vmport=off \
-m 2048M -mem-prealloc -mem-path /hugepages/Gentoo \
-drive file=/home/andre/vm/gentoo.img,format=raw,if=virtio,cache=writethrough,aio=threads \
-fsdev local,security_model=passthrough,writeout=immediate,id=fsdev-fs0,path=/home/andre/sharedhost \
-device virtio-9p-pci,id=fs0,fsdev=fsdev-fs0,mount_tag=share,bus=pci.0,addr=0xa \
-spice port=5924,disable-ticketing,agent-mouse=on \
-device virtio-serial -chardev spicevmc,id=vdagent,debug=0,name=vdagent \
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \
-rtc base=localtime \
-enable-kvm \
$1 |
Upon running this, I get this output in the host terminal:
Code: | ./config --snapshot
qemu-system-x86_64: egl: eglInitialize failed
qemu-system-x86_64: OpenGL is not supported by the display |
dmesg | grep drm:
Code: | [ 6.979607] [drm] Initialized
[ 7.125295] [drm] pci: virtio-vga detected
[ 7.125298] fb: switching to virtiodrmfb from VESA VGA
[ 7.127493] [drm] virgl 3d acceleration not available
[ 7.127970] [drm] virtio vbuffers: 80 bufs, 192B each, 15kB total.
[ 7.130230] [drm] number of scanouts: 1
[ 7.130236] [drm] number of cap sets: 0
[ 7.131988] virtio_gpu virtio0: fb0: virtiodrmfb frame buffer device
[ 7.135080] [drm] Initialized virtio_gpu 0.0.1 0 on minor 0
[ 7.137828] [drm] pci: virtio-gpu-pci detected
[ 7.138089] [drm] virgl 3d acceleration not available
[ 7.138642] [drm] virtio vbuffers: 80 bufs, 192B each, 15kB total.
[ 7.138653] [drm] number of scanouts: 1
[ 7.138658] [drm] number of cap sets: 0
[ 7.141075] virtio_gpu virtio1: fb1: virtiodrmfb frame buffer device
[ 7.141078] [drm] Initialized virtio_gpu 0.0.1 0 on minor 1
|
Some packages that I have installed:
Code: | tux% emerge --ask --verbose mesa opengl qemu
This action requires superuser access...
Would you like to add --pretend to options? [Yes/No] yes
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] media-libs/mesa-17.0.6::gentoo USE="classic dri3 egl gallium gbm gles1 gles2 llvm nptl pax_kernel pic -bindist -d3d9 -debug -opencl -openmax -osmesa (-selinux) -vaapi -valgrind -vdpau -vulkan -wayland -xa -xvmc" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="intel (-freedreno) -i915 -i965 -imx -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi (-vc4) (-vivante) -vmware" 0 KiB
[ebuild R ] virtual/opengl-7.0-r1::gentoo ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] app-emulation/qemu-2.9.0-r2::gentoo USE="aio alsa bzip2 caps curl fdt filecaps gnutls gtk gtk2 iscsi jpeg lzo ncurses nfs nls opengl pin-upstream-blobs png sdl sdl2 seccomp spice tci usb usbredir vde vhost-net virgl virtfs vnc vte xattr xen -accessibility -bluetooth -debug (-glusterfs) -infiniband -numa -pulseaudio -python -rbd -sasl (-selinux) -smartcard -snappy -ssh -static -static-user -systemtap {-test} -xfs" LINGUAS="-bg -de_DE -fr_FR -hu -it -tr -zh_CN" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="x86_64 -aarch64 -alpha -arm -cris -i386 -lm32 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -moxie -nios2 -or1k -ppc -ppc64 -ppcemb -s390x -sh4 -sh4eb -sparc -sparc64 -tricore -unicore32 -xtensa -xtensaeb" QEMU_USER_TARGETS="-aarch64 -alpha -arm -armeb -cris -hppa -i386 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -mipsn32 -mipsn32el -nios2 -or1k -ppc -ppc64 -ppc64abi32 -ppc64le -s390x -sh4 -sh4eb -sparc -sparc32plus -sparc64 -tilegx -x86_64" 0 KiB |
This can be confusing because I have attempted to look up how to run virgl, and I see several different ways to accomplish it. All with different parameters in qemu. I should note that without the virgl it runs fine.
*** Edit ***
Running with opengl turned off I get:
Code: | [ 7.588]
X.Org X Server 1.19.3
Release Date: 2017-03-15
[ 7.589] X Protocol Version 11, Revision 0
[ 7.589] Build Operating System: Linux 4.9.16-gentoo x86_64 Gentoo
[ 7.590] Current Operating System: Linux tux 4.9.16-gentoo #1 SMP Sat Jul 8 07:32:07 -00 2017 x86_64
[ 7.590] Kernel command line: BOOT_IMAGE=/kernel-genkernel-x86_64-4.9.16-gentoo root=UUID=6bde5252-b3cb-4b8b-ae8c-aa50d599be5a ro quiet elevator=noop loglevel=0
[ 7.595] Build Date: 18 June 2017 03:14:14PM
[ 7.596]
[ 7.596] Current version of pixman: 0.34.0
[ 7.597] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 7.597] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 7.601] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Jul 8 10:15:12 2017
[ 7.607] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 7.608] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 7.612] (==) ServerLayout "layout"
[ 7.612] (**) |-->Screen "screen" (0)
[ 7.612] (**) | |-->Monitor "monitor"
[ 7.612] (**) | |-->Device "device"
[ 7.612] (==) Automatically adding devices
[ 7.612] (==) Automatically enabling devices
[ 7.612] (==) Automatically adding GPU devices
[ 7.612] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 7.612] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[ 7.612] Entry deleted from font path.
[ 7.612] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 7.612] Entry deleted from font path.
[ 7.612] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 7.612] Entry deleted from font path.
[ 7.612] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 7.612] Entry deleted from font path.
[ 7.612] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 7.613] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 7.613] Entry deleted from font path.
[ 7.613] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 7.613] (==) FontPath set to:
/usr/share/fonts/misc/
[ 7.613] (==) ModulePath set to "/usr/lib64/xorg/modules"
[ 7.613] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 7.613] (II) Loader magic: 0x55b883f8ec80
[ 7.613] (II) Module ABI versions:
[ 7.613] X.Org ANSI C Emulation: 0.4
[ 7.613] X.Org Video Driver: 23.0
[ 7.613] X.Org XInput driver : 24.1
[ 7.613] X.Org Server Extension : 10.0
[ 7.613] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 7.613] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 7.621] (--) PCI:*(0:0:2:0) 1af4:1050:1af4:1100 rev 1, Mem @ 0xfe000000/8388608, 0xfe800000/16384, 0xfebf4000/4096, BIOS @ 0x????????/131072
[ 7.621] (--) PCI: (0:0:6:0) 1af4:1050:1af4:1100 rev 1, Mem @ 0xfebf5000/4096, 0xfe804000/16384
[ 7.621] (II) LoadModule: "glx"
[ 7.623] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 7.629] (II) Module glx: vendor="X.Org Foundation"
[ 7.629] compiled for 1.19.3, module version = 1.0.0
[ 7.629] ABI class: X.Org Server Extension, version 10.0
[ 7.629] (II) LoadModule: "vesa"
[ 7.629] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
[ 7.629] (II) Module vesa: vendor="X.Org Foundation"
[ 7.629] compiled for 1.19.3, module version = 2.3.4
[ 7.629] Module class: X.Org Video Driver
[ 7.629] ABI class: X.Org Video Driver, version 23.0
[ 7.629] (II) VESA: driver for VESA chipsets: vesa
[ 7.629] (--) using VT number 3
[ 7.631] vesa: Ignoring device with a bound kernel driver
[ 7.631] (WW) Falling back to old probe method for vesa
[ 7.631] (EE) Screen 0 deleted because of no matching config section.
[ 7.631] (II) UnloadModule: "vesa"
[ 7.631] (EE) Device(s) detected, but none match those in the config file.
[ 7.631] (EE)
Fatal server error:
[ 7.631] (EE) no screens found(EE)
[ 7.631] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 7.631] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 7.631] (EE)
[ 7.645] (EE) Server terminated with error (1). Closing log file. |
|
|