Gnome boxes (VM program)

Trying to use boxes to make a vm of fedora. It and fedora installed no issues but i get the following troubleshooting log when trying to actually launch a vm:

Broker URL: qemu+unix:///session
Domain: fedora33-wor
UUID: b6009279-08f4-4393-b26e-910b32e2a235
Persistent: yes
Cpu time: 0
Memory: 4152842 KiB
Max memory: 16387328 KiB
CPUs: 8

Domain config:
<domain type="qemu">
  <title>Fedora 33 Workstation</title>
    <boxes:gnome-boxes xmlns:boxes="">
    <libosinfo:libosinfo xmlns:libosinfo="">
      <libosinfo:os id=""/>
  <memory unit="KiB">4152842</memory>
  <currentMemory unit="KiB">4152842</currentMemory>
  <vcpu placement="static">8</vcpu>
    <type arch="x86_64" machine="pc-q35-5.2">hvm</type>
    <boot dev="cdrom"/>
    <boot dev="hd"/>
    <bootmenu enable="yes"/>
  <cpu mode="host-passthrough" check="none" migratable="on">
    <topology sockets="1" dies="1" cores="8" threads="1"/>
  <clock offset="utc">
    <timer name="rtc" tickpolicy="catchup"/>
    <timer name="pit" tickpolicy="delay"/>
    <timer name="hpet" present="no"/>
    <suspend-to-mem enabled="no"/>
    <suspend-to-disk enabled="no"/>
    <disk type="file" device="disk">
      <driver name="qemu" type="qcow2" cache="writeback" discard="unmap"/>
      <source file="/home/erin/.local/share/gnome-boxes/images/fedora33-wor"/>
      <target dev="vda" bus="virtio"/>
      <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
    <disk type="file" device="cdrom">
      <driver name="qemu" type="raw"/>
      <source file="/home/erin/Downloads/Fedora-Workstation-Live-x86_64-33-1.2.iso" startupPolicy="mandatory"/>
      <target dev="hdc" bus="sata"/>
      <address type="drive" controller="0" bus="0" target="0" unit="2"/>
    <controller type="usb" index="0" model="qemu-xhci" ports="15">
      <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
    <controller type="sata" index="0">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
    <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 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 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 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 type="pci" index="5" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="5" port="0x14"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
    <controller type="pci" index="6" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="6" port="0x15"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
    <controller type="virtio-serial" index="0">
      <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
    <controller type="ccid" index="0">
      <address type="usb" bus="0" port="1"/>
    <interface type="user">
      <mac address="52:54:00:38:52:78"/>
      <model type="virtio"/>
      <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
    <smartcard mode="passthrough" type="spicevmc">
      <address type="ccid" controller="0" slot="0"/>
    <serial type="pty">
      <target type="isa-serial" port="0">
        <model name="isa-serial"/>
    <console type="pty">
      <target type="serial" port="0"/>
    <channel type="spicevmc">
      <target type="virtio" name="com.redhat.spice.0"/>
      <address type="virtio-serial" controller="0" bus="0" port="1"/>
    <channel type="spiceport">
      <source channel="org.spice-space.webdav.0"/>
      <target type="virtio" name="org.spice-space.webdav.0"/>
      <address type="virtio-serial" controller="0" bus="0" port="2"/>
    <input type="tablet" bus="usb">
      <address type="usb" bus="0" port="2"/>
    <input type="mouse" bus="ps2"/>
    <input type="keyboard" bus="ps2"/>
    <graphics type="spice">
      <listen type="none"/>
      <image compression="off"/>
      <gl enable="yes"/>
    <sound model="ich9">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/>
      <model type="virtio" heads="1" primary="yes">
        <acceleration accel3d="yes"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
    <redirdev bus="usb" type="spicevmc">
      <address type="usb" bus="0" port="3"/>
    <redirdev bus="usb" type="spicevmc">
      <address type="usb" bus="0" port="4"/>
    <redirdev bus="usb" type="spicevmc">
      <address type="usb" bus="0" port="5"/>
    <redirdev bus="usb" type="spicevmc">
      <address type="usb" bus="0" port="6"/>
    <memballoon model="virtio">
      <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>

Any clues as to whats gone wrong would be greatly appreciated! :slight_smile:

Add group=kvm in /etc/libvirt/qemu.conf
Add yourself to the kvm group sudo usermod -a -G kvm $USER


1 Like

this did not help I am afraid. Still does not work.
The log actually still says State: GVIR_DOMAIN_STATE_SHUTOFF even after that change of permissions.

I also went into BIOS (im in UEFI so should I not be saying UEFI? xd) and made sure any VM stuff was enabled too, even so i also get this message when first making a VM saying that extentions wont work that i need to check my bios settings. I don’t think thats needed for it to work, as the error log comes only when clicking on the vm to try and open it.

Umm … you can try with:

egrep -c ‘(vmx | svm)’ / proc / cpuinfo

The output will be a “0” or a “1”. A “0” unfortunately means that you do not have hardware virtualization. If you get a “1” and have virtualization turned on in your BIOS, you’re good to go.

Also add yourself to libvirtd

sudo adduser id -un libvirtd
In any case, the information provided is rather null.

You can look, if it helps you in something:

and evidently

thank you. Nothing seemed to work, and i read a fair bit. So i rolled back my bios firmware, then tried again. there were no new settings so i was surprised when it worked. I updated it again back to where it was, and it was happy for some reason.

if anyone else has an issue i would not recommend messing with firmware btw, can go badly wrong.
thanks again