This is because the package qemu-system-modules-spice is not installed
on the system.

$ sudo apt show qemu-system-modules-spice

$ virsh define vm.xml
Domain 'test' defined from vm.xml


** Description changed:

  Libvirt in resolute 12.0 does not support video model 'qxl'
  
+ $ cat vm.xml
+ 
  <domain type='kvm'>
-   <os>
-     <type>hvm</type>
-     <boot dev='hd'/>
-   </os>
-   <features>
-     <acpi/>
-     <apic/>
-     <pae/>
-   </features>
-   <devices>
-     <interface type='network'>
-       <source network='default'/>
-       <model type='virtio'/>
-     </interface>
-     <serial type='pty'>
-       <source path='/dev/pts/3'/>
-       <target port='0'/>
-     </serial>
-     <graphics type='vnc' autoport='yes' listen='127.0.0.1'>
-       <listen type='address' address='127.0.0.1'/>
-     </graphics>
-     <graphics type='spice' autoport='yes' listen='127.0.0.1'>
-       <listen type='address' address='127.0.0.1'/>
-     </graphics>
-     <video>
-       <model type='qxl'/>
-     </video>
-     <channel type='unix'>
-       <target type='virtio' name='org.qemu.guest_agent.0'/>
-     </channel>
-   </devices>
+   <name>test</name>
+   <memory unit='KiB'>2097152</memory>
+   <currentMemory unit='KiB'>2097152</currentMemory>
+   <os>
+     <type>hvm</type>
+     <boot dev='hd'/>
+   </os>
+   <features>
+     <acpi/>
+     <apic/>
+     <pae/>
+   </features>
+   <devices>
+     <interface type='network'>
+       <source network='default'/>
+       <model type='virtio'/>
+     </interface>
+     <serial type='pty'>
+       <source path='/dev/pts/3'/>
+       <target port='0'/>
+     </serial>
+     <graphics type='vnc' autoport='yes' listen='127.0.0.1'>
+       <listen type='address' address='127.0.0.1'/>
+     </graphics>
+     <graphics type='spice' autoport='yes' listen='127.0.0.1'>
+       <listen type='address' address='127.0.0.1'/>
+     </graphics>
+     <video>
+       <model type='qxl'/>
+     </video>
+     <channel type='unix'>
+       <target type='virtio' name='org.qemu.guest_agent.0'/>
+     </channel>
+   </devices>
  </domain>
+ 
+ $ virsh define vm.xml
+ 
+ error: Failed to define domain from vm.xml
+ error: unsupported configuration: domain configuration does not support video 
model 'qxl'

** Changed in: libvirt (Ubuntu)
     Assignee: (unassigned) => Hector CAO (hectorcao)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2142101

Title:
  domain configuration does not support video model 'qxl'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/2142101/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to