Gnome boxes stopped working

Gnome boxes was working great with the 2 guest operating systems Leap and Windows 10, but now I can’t seem to be able to start any of the guest.

Here is the troubleshooting log for the leap machine:

Broker URL: qemu+unix:///session
Domain: boxes-unknown
UUID: 6986b47f-60ff-4abe-af92-a166e51c6dc9
Persistent: yes
Cpu time: 0
Memory: 2097152 KiB
Max memory: 16274144 KiB
CPUs: 8
State: GVIR_DOMAIN_STATE_SHUTOFF

Domain config:
------------------------------------------------------------
<domain type="kvm">
  <name>boxes-unknown</name>
  <uuid>6986b47f-60ff-4abe-af92-a166e51c6dc9</uuid>
  <title>openSUSE-Leap-42</title>
  <metadata>
    <boxes:gnome-boxes xmlns:boxes="https://wiki.gnome.org/Apps/Boxes">
      <os-state>installed</os-state>
      <media>/home/calin/Downloads/openSUSE-Leap-42.1-DVD-x86_64.iso/openSUSE-Leap-42.1-DVD-x86_64.iso</media>
    </boxes:gnome-boxes>
  </metadata>
  <memory unit="KiB">2097152</memory>
  <currentMemory unit="KiB">2097152</currentMemory>
  <vcpu placement="static">8</vcpu>
  <os>
    <type arch="x86_64" machine="pc-i440fx-2.4">hvm</type>
    <boot dev="hd"/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode="custom" match="exact">
    <model fallback="allow">Broadwell</model>
    <topology sockets="1" cores="4" threads="2"/>
  </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>destroy</on_crash>
  <pm>
    <suspend-to-mem enabled="no"/>
    <suspend-to-disk enabled="no"/>
  </pm>
  <devices>
    <emulator>/usr/bin/qemu-kvm</emulator>
    <disk type="file" device="disk">
      <driver name="qemu" type="qcow2" cache="writeback"/>
      <source file="/home/calin/.local/share/gnome-boxes/images/boxes-unknown"/>
      <target dev="hda" bus="ide"/>
      <address type="drive" controller="0" bus="0" target="0" unit="0"/>
    </disk>
    <disk type="file" device="cdrom">
      <driver name="qemu" type="raw"/>
      <source file="/home/calin/Downloads/openSUSE-Leap-42.1-DVD-x86_64.iso/openSUSE-Leap-42.1-DVD-x86_64.iso" startupPolicy="optional"/>
      <target dev="hdc" bus="ide"/>
      <readonly/>
      <address type="drive" controller="0" bus="1" target="0" unit="0"/>
    </disk>
    <controller type="usb" index="0" model="ich9-ehci1">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x06" function="0x7"/>
    </controller>
    <controller type="usb" index="0" model="ich9-uhci1">
      <master startport="0"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x06" function="0x0" multifunction="on"/>
    </controller>
    <controller type="usb" index="0" model="ich9-uhci2">
      <master startport="2"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x06" function="0x1"/>
    </controller>
    <controller type="usb" index="0" model="ich9-uhci3">
      <master startport="4"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x06" function="0x2"/>
    </controller>
    <controller type="pci" index="0" model="pci-root"/>
    <controller type="ide" index="0">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x1"/>
    </controller>
    <controller type="virtio-serial" index="0">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x05" function="0x0"/>
    </controller>
    <controller type="ccid" index="0"/>
    <interface type="user">
      <mac address="52:54:00:bf:12:9d"/>
      <model type="rtl8139"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0"/>
    </interface>
    <smartcard mode="passthrough" type="spicevmc">
      <address type="ccid" controller="0" slot="0"/>
    </smartcard>
    <serial type="pty">
      <target port="0"/>
    </serial>
    <console type="pty">
      <target type="serial" port="0"/>
    </console>
    <channel type="spicevmc">
      <target type="virtio" name="com.redhat.spice.0"/>
      <address type="virtio-serial" controller="0" bus="0" port="1"/>
    </channel>
    <input type="tablet" bus="usb"/>
    <input type="mouse" bus="usb"/>
    <input type="keyboard" bus="usb"/>
    <input type="mouse" bus="ps2"/>
    <input type="keyboard" bus="ps2"/>
    <graphics type="spice" autoport="no">
      <image compression="off"/>
    </graphics>
    <sound model="ac97">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0"/>
    </sound>
    <video>
      <model type="qxl" ram="65536" vram="65536" vgamem="16384" heads="1" primary="yes"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0"/>
    </video>
    <redirdev bus="usb" type="spicevmc">
    </redirdev>
    <redirdev bus="usb" type="spicevmc">
    </redirdev>
    <redirdev bus="usb" type="spicevmc">
    </redirdev>
    <redirdev bus="usb" type="spicevmc">
    </redirdev>
    <memballoon model="virtio">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x07" function="0x0"/>
    </memballoon>
  </devices>
</domain>
------------------------------------------------------------

QEMU log:
------------------------------------------------------------
2016-05-14 18:24:28.156+0000: starting up libvirt version: 1.3.3, qemu version: 2.4.0, hostname: linux-d1k1
LC_ALL=C PATH=/usr/local/heroku/bin:/usr/local/heroku/bin:/home/calin/.rvm/gems/ruby-2.2.4/bin:/home/calin/.rvm/gems/ruby-2.2.4@global/bin:/home/calin/.rvm/rubies/ruby-2.2.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/calin/.rvm/bin:/home/calin/.rvm/bin:/home/calin/.rvm/bin:/home/calin/.rvm/bin HOME=/home/calin USER=calin LOGNAME=calin QEMU_AUDIO_DRV=spice /usr/bin/qemu-kvm -name boxes-unknown,debug-threads=on -S -machine pc-i440fx-2.4,accel=kvm,usb=off -cpu Broadwell -m 2048 -realtime mlock=off -smp 8,sockets=1,cores=4,threads=2 -uuid 6986b47f-60ff-4abe-af92-a166e51c6dc9 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/home/calin/.config/libvirt/qemu/lib/domain-1-boxes-unknown/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x6.0x7 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x6 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x6.0x1 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x6.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -device usb-ccid,id=ccid0 -drive file=/home/calin/.local/share/gnome-boxes/images/boxes-unknown,format=qcow2,if=none,id=drive-ide0-0-0,cache=writeback -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive file=/home/calin/Downloads/openSUSE-Leap-42.1-DVD-x86_64.iso/openSUSE-Leap-42.1-DVD-x86_64.iso,format=raw,if=none,id=drive-ide0-1-0,readonly=on -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev user,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:6d:99:21,bus=pci.0,addr=0x3 -chardev spicevmc,id=charsmartcard0,name=smartcard -device ccid-card-passthru,chardev=charsmartcard0,id=smartcard0,bus=ccid0.0 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -device usb-tablet,id=input0 -device usb-mouse,id=input1 -device usb-kbd,id=input2 -spice disable-ticketing,image-compression=off,seamless-migration=on -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,bus=pci.0,addr=0x2 -device AC97,id=sound0,bus=pci.0,addr=0x4 -chardev spicevmc,id=charredir0,name=usbredir -device usb-redir,chardev=charredir0,id=redir0 -chardev spicevmc,id=charredir1,name=usbredir -device usb-redir,chardev=charredir1,id=redir1 -chardev spicevmc,id=charredir2,name=usbredir -device usb-redir,chardev=charredir2,id=redir2 -chardev spicevmc,id=charredir3,name=usbredir -device usb-redir,chardev=charredir3,id=redir3 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -msg timestamp=on

(process:16422): GLib-WARNING **: gmem.c:483: custom memory allocation vtable not supported
char device redirected to /dev/pts/1 (label charserial0)
main_channel_link: add main channel client
inputs_connect: inputs channel client create
red_dispatcher_set_cursor_peer: 
main_channel_handle_parsed: agent start
((null):16422): SpiceWorker-Warning **: red_worker.c:163:rendering_incorrect: rendering incorrect from now on: get_drawable
((null):16422): SpiceWorker-Warning **: red_worker.c:163:rendering_incorrect: rendering incorrect from now on: failed to get_drawable
qemu: terminating on signal 15 from pid 16297
red_channel_client_disconnect_dummy: rcc=0x5651de2c01b0 (channel=0x5651de5984a0 type=5 id=0)
snd_channel_put: SndChannel=0x5651de461660 freed
red_channel_client_disconnect_dummy: rcc=0x5651de386540 (channel=0x5651de598140 type=6 id=0)
snd_channel_put: SndChannel=0x5651dde42b40 freed
2016-05-14 18:31:51.113+0000: shutting down
------------------------------------------------------------

Starting boxes from terminal I get the following warning when starting a machine:

boxes:18247): Boxes-WARNING **: machine.vala:606: Failed to start openSUSE-Leap-42: Unable to start domain: Failed to connect socket to '/run/user/1000/libvirt/virtlogd-sock'

I was really excited about boxes and how cool it worked, rolling back the latest updates with snapper did not helped also.

You should provide this additional information…

  • Where did you install Gnome Boxes from? If you installed it from an RPM package, you should be able to run a “zypper info” on the package, I’m guessing the following
zypper info gnome-boxes

Also,
Try launching your Gnome-boxes guest from a console with elevated permissions instead of as a normal User.

But, the following seems to be rather definitive, there seems to be 2 fixes in the thread,
https://bbs.archlinux.org/viewtopic.php?id=203548

  • Specifying the pc-i440fx-2.3 architecture might work
  • A smm flag was introduced which has to be disabled until the app (gnome-boxes in your case) is patched to use it.

If either or both the fixes in this thread address your problem, pls post your finding to https://bugzilla.opensuse.org and include the link to the archlinux forum discussion since it includes specific information about the qemu update that introduced the problem.

TSU

Unfortunately none of the suggested solutions seem to solve my issue, anything else I cat try?

I’ve tried to run the machine from the command line using the command in the output I get:


(process:22551): GLib-WARNING **: gmem.c:483: custom memory allocation vtable not supported
char device redirected to /dev/pts/1 (label charserial0)

And nothing else.

I ended up filing a bug https://bugzilla.opensuse.org/show_bug.cgi?id=980441

Did you run the machine from the command line <after> disabling smm?

You should post your exact method disabling smm and then your command line try and result.

TSU

Here is the full command


HOME=/home/calin USER=calin LOGNAME=calin QEMU_AUDIO_DRV=spice /usr/bin/qemu-kvm -name boxes-unknown,debug-threads=on -S -machine pc-i440fx-2.4,accel=kvm,usb=off,smm=off -cpu Broadwell -m 2048 -realtime mlock=off -smp 8,sockets=1,cores=4,threads=2 -uuid 6986b47f-60ff-4abe-af92-a166e51c6dc9 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/home/calin/.config/libvirt/qemu/lib/domain-1-boxes-unknown/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x6.0x7 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x6 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x6.0x1 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x6.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -device usb-ccid,id=ccid0 -drive file=/home/calin/.local/share/gnome-boxes/images/boxes-unknown,format=qcow2,if=none,id=drive-ide0-0-0,cache=writeback -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive file=/home/calin/Downloads/openSUSE-Leap-42.1-DVD-x86_64.iso/openSUSE-Leap-42.1-DVD-x86_64.iso,format=raw,if=none,id=drive-ide0-1-0,readonly=on -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev user,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:6d:99:21,bus=pci.0,addr=0x3 -chardev spicevmc,id=charsmartcard0,name=smartcard -device ccid-card-passthru,chardev=charsmartcard0,id=smartcard0,bus=ccid0.0 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -device usb-tablet,id=input0 -device usb-mouse,id=input1 -device usb-kbd,id=input2 -spice disable-ticketing,image-compression=off,seamless-migration=on -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,bus=pci.0,addr=0x2 -device AC97,id=sound0,bus=pci.0,addr=0x4 -chardev spicevmc,id=charredir0,name=usbredir -device usb-redir,chardev=charredir0,id=redir0 -chardev spicevmc,id=charredir1,name=usbredir -device usb-redir,chardev=charredir1,id=redir1 -chardev spicevmc,id=charredir2,name=usbredir -device usb-redir,chardev=charredir2,id=redir2 -chardev spicevmc,id=charredir3,name=usbredir -device usb-redir,chardev=charredir3,id=redir3 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -msg timestamp=on

I was effected by this latest bug. The fix has been released on the latest updates. I just did a “sudo zypper up” and noticed it updated a lot of associated packages. I attempted to run Boxes and BAM! It works!