Issue with egl-headless on headless server and EGL context not found error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


(追記) (追記ここまで)



Hi,
I have a headless server (without a window server running) and I’m trying to create a VM with Intel GVT-g support, where the mediated GPU device is the only graphics device presented to the guest.
When I try to launch the VM I get the following error:
qemu-system-x86_64: ../src/dispatch_common.c:872: epoxy_get_proc_address: Assertion `0 && "Couldn't find current GLX or EGL context.\n"' failed.
Do you know why there is no EGL context? Am I missing some necessary parameter?
You can find the domain XML below:
<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
 <name>MacOS Monterey</name>
 <uuid>91b82c42-f5a2-424f-b45f-714ed7c190de</uuid>
 <description>MacOS Monterey</description>
 <metadata>
 <vmtemplate xmlns="unraid" name="Windows 10" icon="default.png" os="osx"/>
 </metadata>
 <memory unit='KiB'>8388608</memory>
 <currentMemory unit='KiB'>8388608</currentMemory>
 <memoryBacking>
 <nosharepages/>
 </memoryBacking>
 <vcpu placement='static'>2</vcpu>
 <cputune>
 <vcpupin vcpu='0' cpuset='0'/>
 <vcpupin vcpu='1' cpuset='1'/>
 </cputune>
 <os>
 <type arch='x86_64' machine='pc-q35-7.2'>hvm</type>
 <loader readonly='yes' type='pflash'>/mnt/user/system/custom_ovmf/Macinabox_CODE-pure-efi.fd</loader>
 <nvram>/etc/libvirt/qemu/nvram/91b82c42-f5a2-424f-b45f-714ed7c190de_VARS-pure-efi.fd</nvram>
 </os>
 <features>
 <acpi/>
 <apic/>
 </features>
 <cpu mode='host-passthrough' check='none' migratable='on'>
 <topology sockets='1' dies='1' cores='2' threads='1'/>
 <cache mode='passthrough'/>
 </cpu>
 <clock offset='utc'>
 <timer name='rtc' tickpolicy='catchup'/>
 <timer name='pit' tickpolicy='delay'/>
 <timer name='hpet' present='no'/>
 </clock>
 <on_poweroff>destroy</on_poweroff>
 <on_reboot>restart</on_reboot>
 <on_crash>restart</on_crash>
 <devices>
 <emulator>/usr/local/sbin/qemu</emulator>
 <disk type='file' device='disk'>
 <driver name='qemu' type='raw' cache='writeback'/>
 <source file='/mnt/user/domains/Macinabox Monterey/macos_disk.img'/>
 <target dev='hdc' bus='sata'/>
 <boot order='1'/>
 <address type='drive' controller='0' bus='0' target='0' unit='2'/>
 </disk>
 <controller type='usb' index='0' model='ich9-ehci1'>
 <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
 </controller>
 <controller type='usb' index='0' model='ich9-uhci1'>
 <master startport='0'/>
 <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
 </controller>
 <controller type='usb' index='0' model='ich9-uhci2'>
 <master startport='2'/>
 <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1' multifunction='on'/>
 </controller>
 <controller type='usb' index='0' model='ich9-uhci3'>
 <master startport='4'/>
 <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
 </controller>
 <controller type='pci' index='0' model='pcie-root'/>
 <controller type='pci' index='1' model='pcie-root-port'>
 <model name='pcie-root-port'/>
 <target chassis='1' port='0x10'/>
 <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
 </controller>
 <controller type='pci' index='2' model='pcie-root-port'>
 <model name='pcie-root-port'/>
 <target chassis='2' port='0x11'/>
 <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
 </controller>
 <controller type='pci' index='3' model='pcie-root-port'>
 <model name='pcie-root-port'/>
 <target chassis='3' port='0x12'/>
 <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
 </controller>
 <controller type='pci' index='4' model='pcie-root-port'>
 <model name='pcie-root-port'/>
 <target chassis='4' port='0x13'/>
 <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
 </controller>
 <controller type='virtio-serial' index='0'>
 <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
 </controller>
 <controller type='sata' index='0'>
 <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
 </controller>
 <interface type='bridge'>
 <mac address='52:54:00:7d:24:fd'/>
 <source bridge='br0'/>
 <model type='virtio-net'/>
 <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
 </interface>
 <serial type='pty'>
 <target type='isa-serial' port='0'>
 <model name='isa-serial'/>
 </target>
 </serial>
 <console type='pty'>
 <target type='serial' port='0'/>
 </console>
 <channel type='unix'>
 <target type='virtio' name='org.qemu.guest_agent.0'/>
 <address type='virtio-serial' controller='0' bus='0' port='1'/>
 </channel>
 <input type='tablet' bus='usb'>
 <address type='usb' bus='0' port='1'/>
 </input>
 <input type='mouse' bus='ps2'/>
 <input type='keyboard' bus='ps2'/>
 <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0' keymap='en-us'>
 <listen type='address' address='0.0.0.0'/>
 </graphics>
 <graphics type='egl-headless'>
 <gl rendernode='/dev/dri/by-path/pci-.&checktime(0000,00,02,':').0-render'/>
 </graphics>
 <audio id='1' type='none'/>
 <video>
 <model type='none'/>
 </video>
 <hostdev mode='subsystem' type='mdev' managed='no' model='vfio-pci' display='on'>
 <source>
 <address uuid='42a87f64-e629-4d69-9672-6bef7162d042'/>
 </source>
 <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
 </hostdev>
 <memballoon model='virtio'>
 <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
 </memballoon>
 </devices>
 <qemu:commandline>
 <qemu:arg value='-usb'/>
 <qemu:arg value='-device'/>
 <qemu:arg value='usb-kbd,bus=usb-bus.0'/>
 <qemu:arg value='-device'/>
 <qemu:arg value='isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc'/>
 <qemu:arg value='-smbios'/>
 <qemu:arg value='type=2'/>
 <qemu:arg value='-cpu'/>
 <qemu:arg value='Penryn,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+avx2,+aes,+fma,+bmi1,+bmi2,+xsave,+xsaveopt,+rdrand,check'/>
 </qemu:commandline>
 <qemu:override>
 <qemu:device alias='hostdev0'>
 <qemu:frontend>
 <qemu:property name='x-igd-opregion' type='bool' value='true'/>
 <qemu:property name='romfile' type='string' value='/mnt/user/data/i915dev/i915ovmf.rom'/>
 <qemu:property name='driver' type='string' value='vfio-pci-nohotplug'/>
 <qemu:property name='ramfb' type='bool' value='true'/>
 </qemu:frontend>
 </qemu:device>
 </qemu:override>
</domain>
And the full log output below:
2023年12月27日 16:02:06.759+0000: starting up libvirt version: 8.7.0, qemu version: 7.2.0, kernel: 6.1.64-Unraid, hostname: Jarvis
LC_ALL=C \
PATH=/bin:/sbin:/usr/bin:/usr/sbin \
HOME='/var/lib/libvirt/qemu/domain-13-MacOS Monterey' \
XDG_DATA_HOME='/var/lib/libvirt/qemu/domain-13-MacOS Monterey/.local/share' \
XDG_CACHE_HOME='/var/lib/libvirt/qemu/domain-13-MacOS Monterey/.cache' \
XDG_CONFIG_HOME='/var/lib/libvirt/qemu/domain-13-MacOS Monterey/.config' \
/usr/local/sbin/qemu \
-name 'guest=MacOS Monterey,debug-threads=on' \
-S \
-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain-13-MacOS Monterey/master-key.aes"}' \
-blockdev '{"driver":"file","filename":"/mnt/user/system/custom_ovmf/Macinabox_CODE-pure-efi.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash0-format","read-only":true,"driver":"raw","file":"libvirt-pflash0-storage"}' \
-blockdev '{"driver":"file","filename":"/etc/libvirt/qemu/nvram/91b82c42-f5a2-424f-b45f-714ed7c190de_VARS-pure-efi.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash1-format","read-only":false,"driver":"raw","file":"libvirt-pflash1-storage"}' \
-machine pc-q35-7.2,usb=off,dump-guest-core=off,mem-merge=off,memory-backend=pc.ram,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format \
-accel kvm \
-cpu host,migratable=on,host-cache-info=on,l3-cache=off \
-m 8192 \
-object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":8589934592}' \
-overcommit mem-lock=off \
-smp 2,sockets=1,dies=1,cores=2,threads=1 \
-uuid 91b82c42-f5a2-424f-b45f-714ed7c190de \
-no-user-config \
-nodefaults \
-chardev socket,id=charmonitor,fd=35,server=on,wait=off \
-mon chardev=charmonitor,id=monitor,mode=control \
-rtc base=utc,driftfix=slew \
-global kvm-pit.lost_tick_policy=delay \
-no-hpet \
-no-shutdown \
-boot strict=on \
-device '{"driver":"pcie-root-port","port":16,"chassis":1,"id":"pci.1","bus":"pcie.0","multifunction":true,"addr":"0x2"}' \
-device '{"driver":"pcie-root-port","port":17,"chassis":2,"id":"pci.2","bus":"pcie.0","addr":"0x2.0x1"}' \
-device '{"driver":"pcie-root-port","port":18,"chassis":3,"id":"pci.3","bus":"pcie.0","addr":"0x2.0x2"}' \
-device '{"driver":"pcie-root-port","port":19,"chassis":4,"id":"pci.4","bus":"pcie.0","addr":"0x2.0x3"}' \
-device '{"driver":"ich9-usb-ehci1","id":"usb","bus":"pcie.0","addr":"0x7.0x7"}' \
-device '{"driver":"ich9-usb-uhci1","masterbus":"usb.0","firstport":0,"bus":"pcie.0","multifunction":true,"addr":"0x7"}' \
-device '{"driver":"ich9-usb-uhci2","masterbus":"usb.0","firstport":2,"bus":"pcie.0","multifunction":true,"addr":"0x7.0x1"}' \
-device '{"driver":"ich9-usb-uhci3","masterbus":"usb.0","firstport":4,"bus":"pcie.0","addr":"0x7.0x2"}' \
-device '{"driver":"virtio-serial-pci","id":"virtio-serial0","bus":"pci.2","addr":"0x0"}' \
-blockdev '{"driver":"file","filename":"/mnt/user/domains/Macinabox Monterey/macos_disk.img","node-name":"libvirt-1-storage","cache":{"direct":false,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-1-format","read-only":false,"cache":{"direct":false,"no-flush":false},"driver":"raw","file":"libvirt-1-storage"}' \
-device '{"driver":"ide-hd","bus":"ide.2","drive":"libvirt-1-format","id":"sata0-0-2","bootindex":1,"write-cache":"on"}' \
-netdev tap,fd=36,id=hostnet0 \
-device '{"driver":"virtio-net","netdev":"hostnet0","id":"net0","mac":"52:54:00:7d:24:fd","bus":"pci.1","addr":"0x0"}' \
-chardev pty,id=charserial0 \
-device '{"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0}' \
-chardev socket,id=charchannel0,fd=34,server=on,wait=off \
-device '{"driver":"virtserialport","bus":"virtio-serial0.0","nr":1,"chardev":"charchannel0","id":"channel0","name":"org.qemu.guest_agent.0"}' \
-device '{"driver":"usb-tablet","id":"input0","bus":"usb.0","port":"1"}' \
-audiodev '{"id":"audio1","driver":"none"}' \
-vnc 0.0.0.0:0,websocket=5700,audiodev=audio1 \
-k en-us \
-display egl-headless,rendernode=/dev/dri/by-path/pci-.&checktime(0000,00,02,':').0-render \
-device '{"id":"hostdev0","sysfsdev":"/sys/bus/mdev/devices/42a87f64-e629-4d69-9672-6bef7162d042","display":"on","bus":"pci.4","addr":"0x0","x-igd-opregion":true,"romfile":"/mnt/user/data/i915dev/i915ovmf.rom","driver":"vfio-pci-nohotplug","ramfb":true}' \
-device '{"driver":"virtio-balloon-pci","id":"balloon0","bus":"pci.3","addr":"0x0"}' \
-usb \
-device usb-kbd,bus=usb-bus.0 \
-device 'isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc' \
-smbios type=2 \
-cpu Penryn,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+avx2,+aes,+fma,+bmi1,+bmi2,+xsave,+xsaveopt,+rdrand,check \
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
-msg timestamp=on
char device redirected to /dev/pts/0 (label charserial0)
qemu-system-x86_64: ../src/dispatch_common.c:872: epoxy_get_proc_address: Assertion `0 && "Couldn't find current GLX or EGL context.\n"' failed.
2023年12月27日 16:02:23.109+0000: shutting down, reason=crashed
Thank you
Regards,
Andrea
_______________________________________________
Users mailing list -- users@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxx

[Index of Archives] [Virt Tools] [Lib OS Info] [Fedora Users] [Fedora Desktop] [Fedora SELinux] [Yosemite News] [KDE Users]

(追記) (追記ここまで)
Powered by Linux

AltStyle によって変換されたページ (->オリジナル) /