<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 21, 2019 at 11:57 PM Erik Skultety <<a href="mailto:eskultet@redhat.com">eskultet@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Feb 19, 2019 at 09:42:44PM +1100, Daniel Kasak wrote:<br>
> On Wed, Feb 20, 2019 at 8:43 AM Cole Robinson <<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>> wrote:<br>
><br>
> > On 2/19/19 4:04 AM, Daniel Kasak wrote:<br>
> > > On Wed, Feb 20, 2019 at 1:29 AM Cole Robinson <<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a><br>
> > > <mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>>> wrote:<br>
> > ><br>
> > > On 2/18/19 7:39 AM, Daniel Kasak wrote:<br>
> > > > On Tue, Feb 19, 2019 at 12:38 AM Cole Robinson<br>
> > > <<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a> <mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>><br>
> > > > <mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a> <mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>>>> wrote:<br>
> > > ><br>
> > > > On 2/17/19 10:57 AM, Daniel Kasak wrote:<br>
> > > > > On Sat, Feb 9, 2019 at 2:05 AM Cole Robinson<br>
> > > <<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a> <mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>><br>
> > > > <mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a> <mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>>><br>
> > > > > <mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a> <mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>><br>
> > > <mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a> <mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>>>>> wrote:<br>
> > > > ><br>
> > > > > On 2/8/19 7:49 PM, Daniel Kasak wrote:<br>
> > > > > > I've changed the following from the default:<br>
> > > > > ><br>
> > > > > > Display Spice:<br>
> > > > > > - Listen type<br>
> > > > > > - Default ( Address ) - no matter what other<br>
> > options I<br>
> > > > choose with<br>
> > > > > > this, I get "SPICE GL support is local-only ..."<br>
> > > > > > - None - I get "Error starting domain: internal<br>
> > > error: qemu<br>
> > > > > > unexpectedly closed the monitor"<br>
> > > > > ><br>
> > > > ><br>
> > > > > This last bit should be the working config, but that<br>
> > > error means<br>
> > > > > something went wrong launching qemu. pastebin your<br>
> > > > > /var/log/libvirt/qemu/$vmname.log and I will check<br>
> > > > ><br>
> > > > ><br>
> > > > > It's taken a while to figure out exactly what's going on<br>
> > > here ...<br>
> > > > there<br>
> > > > > are *no* logs in that directory. But I caught systemd<br>
> > logging:<br>
> > > > > Process 15334 (qemu-system-x86) of user 1000 dumped core.<br>
> > > > > ... each time I tried to start the VM.<br>
> > > > ><br>
> > > > > I've tried with qemu-3.1.0 and qemu built from git.<br>
> > > > ><br>
> > > > > Is there a way to get virt-manager to spit out the exact<br>
> > > command line<br>
> > > > > it's using to invoke qemu?<br>
> > > ><br>
> > > > Are you using qemu:///session maybe? Then the logs will be in<br>
> > > > ~/.cache/libvirt/qemu/log/ . The log file is the the canonical<br>
> > > location<br>
> > > > to find the qemu command line that libvirt is generating<br>
> > > ><br>
> > > ><br>
> > > > Aha. I have the command-line now. Thanks :) Full log:<br>
> > ><br>
> > > ><br>
> > > > char device redirected to /dev/pts/7 (label charserial0)<br>
> > > > ./run.sh: line 49: 31512 Bad system call (core dumped)<br>
> > > LC_ALL=C<br>
> > > ><br>
> > ><br>
> > PATH=/home/dkasak/Applications/.bin:/opt/efl/bin:/usr/lib/llvm/7/bin:/opt/e22/bin:/opt/rocm/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin<br>
> > > > HOME=/home/dkasak USER=dkasak LOGNAME=dkasak QEMU_AUDIO_DRV=spice<br>
> > > > /usr/bin/qemu-system-x86_64 -name<br>
> > > guest=Android-x86,debug-threads=on -S<br>
> > > > -machine<br>
> > > pc-i440fx-3.1,accel=tcg,usb=off,vmport=off,dump-guest-core=off<br>
> > > > -cpu kvm64 -m 1024 -realtime mlock=off -smp<br>
> > > > 2,sockets=2,cores=1,threads=1 -uuid<br>
> > > 3e432cc9-8ce8-4089-912f-8ef50d9a9c8a<br>
> > > > -no-user-config -nodefaults -mon<br>
> > > > chardev=charmonitor,id=monitor,mode=control -rtc<br>
> > > base=utc,driftfix=slew<br>
> > > > -global kvm-pit.lost_tick_policy=delay -no-hpet -no-shutdown<br>
> > -global<br>
> > > > PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot strict=on<br>
> > > > -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x5.0x7 -device<br>
> > > ><br>
> > ><br>
> > ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x5<br>
> > > > -device<br>
> > > > ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x5.0x1<br>
> > > > -device<br>
> > > > ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x5.0x2<br>
> > > -drive<br>
> > > ><br>
> > ><br>
> > file=/home/dkasak/.local/share/libvirt/images/Android-x86.qcow2,format=qcow2,if=none,id=drive-ide0-0-0<br>
> > > > -device<br>
> > > ><br>
> > ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1<br>
> > > > -drive if=none,id=drive-ide0-0-1,readonly=on -device<br>
> > > > ide-cd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -netdev<br>
> > > > user,id=hostnet0 -device<br>
> > > ><br>
> > e1000,netdev=hostnet0,id=net0,mac=52:54:00:74:b8:ea,bus=pci.0,addr=0x3<br>
> > > > -chardev pty,id=charserial0 -device<br>
> > > > isa-serial,chardev=charserial0,id=serial0 -device<br>
> > > > usb-tablet,id=input0,bus=usb.0,port=1 -spice<br>
> > > ><br>
> > ><br>
> > port=0,disable-ticketing,image-compression=off,gl=on,rendernode=/dev/dri/renderD128,seamless-migration=on<br>
> > > > -device<br>
> > virtio-vga,id=video0,virgl=on,max_outputs=1,bus=pci.0,addr=0x2<br>
> > > > -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device<br>
> > > > hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev<br>
> > > > spicevmc,id=charredir0,name=usbredir -device<br>
> > > > usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=2 -chardev<br>
> > > > spicevmc,id=charredir1,name=usbredir -device<br>
> > > > usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=3 -device<br>
> > > > virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 -sandbox<br>
> > > ><br>
> > ><br>
> > on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny<br>
> > > > -msg timestamp=on<br>
> > ><br>
> > ><br>
> > > Does dropping the -sandbox line make things work? Maybe that 'Bad<br>
> > system<br>
> > > call' thing is a seccomp error<br>
> > ><br>
> > ><br>
> > > It changes things ...<br>
> > ><br>
> > > Now qemu just hangs instead of core-dumping :) strace on the process<br>
> > gives:<br>
> > ><br>
> > > ppoll([{fd=12, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16,<br>
> > > events=POLLIN}, {fd=17, events=POLLIN}, {fd=19, events=POLLIN}], 5,<br>
> > > {tv_sec=0, tv_nsec=0}, NULL, 8) = 0 (Timeout)<br>
> > > ppoll([{fd=12, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16,<br>
> > > events=POLLIN}, {fd=17, events=POLLIN}, {fd=19, events=POLLIN}], 5,<br>
> > > {tv_sec=0, tv_nsec=29564013}, NULL, 8) = 0 (Timeout)<br>
> > > ppoll([{fd=12, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16,<br>
> > > events=POLLIN}, {fd=17, events=POLLIN}, {fd=19, events=POLLIN}], 5,<br>
> > > {tv_sec=0, tv_nsec=0}, NULL, 8) = 0 (Timeout)<br>
> > > ppoll([{fd=12, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16,<br>
> > > events=POLLIN}, {fd=17, events=POLLIN}, {fd=19, events=POLLIN}], 5,<br>
> > > {tv_sec=0, tv_nsec=29596135}, NULL, 8) = 0 (Timeout)<br>
> > > ppoll([{fd=12, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16,<br>
> > > events=POLLIN}, {fd=17, events=POLLIN}, {fd=19, events=POLLIN}], 5,<br>
> > > {tv_sec=0, tv_nsec=0}, NULL, 8) = 0 (Timeout)<br>
> > > ppoll([{fd=12, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16,<br>
> > > events=POLLIN}, {fd=17, events=POLLIN}, {fd=19, events=POLLIN}], 5,<br>
> > > {tv_sec=0, tv_nsec=29462631}, NULL, 8) = 0 (Timeout)<br>
> > > ppoll([{fd=12, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16,<br>
> > > events=POLLIN}, {fd=17, events=POLLIN}, {fd=19, events=POLLIN}], 5,<br>
> > > {tv_sec=0, tv_nsec=0}, NULL, 8) = 0 (Timeout)<br>
> > > ppoll([{fd=12, events=POLLIN}, {fd=14, events=POLLIN}, {fd=16,<br>
> > > events=POLLIN}, {fd=17, events=POLLIN}, {fd=19, events=POLLIN}], 5,<br>
> > > {tv_sec=0, tv_nsec=29485905}, NULL, 8) = 0 (Timeout)<br>
> > ><br>
> ><br>
> > Try disabling seccomp_sandbox in /etc/libvirt/qemu.conf, restarting<br>
> > libvirtd, and trying libvirt again. Trying to get a libvirt qemu command<br>
> > line to run manually has a bunch of hurdles<br>
> ><br>
><br>
> Done ( including the service restart ), but qemu still core dumps :(<br>
><br>
> FYI I have the following enabled in my kernel config:<br>
><br>
> Symbol: SECCOMP [=y]<br>
> Symbol: HAVE_ARCH_SECCOMP_FILTER [=y]<br>
> Symbol: SECCOMP_FILTER [=y]<br>
><br>
> Nothing else appears in my ~/.cache/libvirt/qemu/log logfile - just:<br>
> 2019-02-19 10:32:55.126+0000: shutting down, reason=failed<br>
> ... after the qemu command.<br>
><br>
> Would that core dump be useful? systemd is saying:<br>
> Feb 19 21:40:58 nanginator systemd-coredump[12860]: Resource limits<br>
> disable core dumping for process 12855 (qemu-system-x86).<br>
><br>
> I can figure out how to bump those limits if it's of use ...<br>
><br>
> Thanks for all your help, by the way. Much appreciated :)<br>
<br>
Hi, can you attach the VM XML config (virsh dumpxml <domain_name>)? Since this<br>
is about VirGL, what GPU and CPU do you have on this system?<br>
<br>
Erik<br></blockquote><div><br></div><div>Hi Eric. Thanks for the response.</div><div><br></div><div>Yeah I have an AMD system.</div><div><br></div><div>AMD Ryzen 7 2700U with Radeon Vega Mobile Gfx</div><div>OpenGL renderer string: AMD RAVEN (DRM 3.27.0, 5.0.0-rc4, LLVM 7.0.1)<br>OpenGL core profile version string: 4.5 (Core Profile) Mesa 19.1.0-devel (git-338d399fd0)<br>OpenGL core profile shading language version string: 4.50</div><div><br></div><div>XML Config:</div><div><br></div><div><domain type='qemu'><br> <name>Android-x86</name><br> <uuid>3e432cc9-8ce8-4089-912f-8ef50d9a9c8a</uuid><br> <memory unit='KiB'>1048576</memory><br> <currentMemory unit='KiB'>1048576</currentMemory><br> <vcpu placement='static'>2</vcpu><br> <os><br> <type arch='x86_64' machine='pc-i440fx-3.1'>hvm</type><br> </os><br> <features><br> <acpi/><br> <apic/><br> <vmport state='off'/><br> </features><br> <cpu mode='custom' match='exact' check='partial'><br> <model fallback='allow'>kvm64</model><br> </cpu><br> <clock offset='utc'><br> <timer name='rtc' tickpolicy='catchup'/><br> <timer name='pit' tickpolicy='delay'/><br> <timer name='hpet' present='no'/><br> </clock><br> <on_poweroff>destroy</on_poweroff><br> <on_reboot>restart</on_reboot><br> <on_crash>destroy</on_crash><br> <pm><br> <suspend-to-mem enabled='no'/><br> <suspend-to-disk enabled='no'/><br> </pm><br> <devices><br> <emulator>/usr/bin/qemu-system-x86_64</emulator><br> <disk type='file' device='disk'><br> <driver name='qemu' type='qcow2'/><br> <source file='/home/dkasak/.local/share/libvirt/images/Android-x86.qcow2'/><br> <target dev='hda' bus='ide'/><br> <boot order='1'/><br> <address type='drive' controller='0' bus='0' target='0' unit='0'/><br> </disk><br> <disk type='file' device='cdrom'><br> <driver name='qemu' type='raw'/><br> <target dev='hdb' bus='ide'/><br> <readonly/><br> <address type='drive' controller='0' bus='0' target='0' unit='1'/><br> </disk><br> <controller type='usb' index='0' model='ich9-ehci1'><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/><br> </controller><br> <controller type='usb' index='0' model='ich9-uhci1'><br> <master startport='0'/><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/><br> </controller><br> <controller type='usb' index='0' model='ich9-uhci2'><br> <master startport='2'/><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/><br> </controller><br> <controller type='usb' index='0' model='ich9-uhci3'><br> <master startport='4'/><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/><br> </controller><br> <controller type='pci' index='0' model='pci-root'/><br> <controller type='ide' index='0'><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/><br> </controller><br> <interface type='user'><br> <mac address='52:54:00:74:b8:ea'/><br> <model type='e1000'/><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/><br> </interface><br> <serial type='pty'><br> <target type='isa-serial' port='0'><br> <model name='isa-serial'/><br> </target><br> </serial><br> <console type='pty'><br> <target type='serial' port='0'/><br> </console><br> <input type='tablet' bus='usb'><br> <address type='usb' bus='0' port='1'/><br> </input><br> <input type='mouse' bus='ps2'/><br> <input type='keyboard' bus='ps2'/><br> <graphics type='spice'><br> <listen type='none'/><br> <image compression='off'/><br> <gl enable='yes'/><br> </graphics><br> <sound model='ich6'><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/><br> </sound><br> <video><br> <model type='virtio' heads='1' primary='yes'><br> <acceleration accel3d='yes'/><br> </model><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/><br> </video><br> <redirdev bus='usb' type='spicevmc'><br> <address type='usb' bus='0' port='2'/><br> </redirdev><br> <redirdev bus='usb' type='spicevmc'><br> <address type='usb' bus='0' port='3'/><br> </redirdev><br> <memballoon model='virtio'><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/><br> </memballoon><br> </devices><br></domain><br></div><div><br></div><div>Dan<br></div></div></div></div></div></div>