20

I'm trying to install and configure spice.

However, I cannot find a source on how to do this.

fosslinux
  • 3,881

2 Answers2

2

In case someone wants to achive this using plain Libvirt with virsh.

First export the domain to XML:

virsh dumpxml <domain_name> > <domain_name>.xml

Then, edit the <domain_name>.xml file generated above and make sure the following is inside:

<devices>
...
<graphics type='spice' autoport='yes'>                                                                                                                                                 
    <listen type='address'/>                                                                                                                                                             
    <image compression='off'/>                                                                                                                                                           
</graphics>
...
</devices>

Undefine the previous domain:

virsh undefine <domain_name>

Define the new domain using the XML edited:

virsh define <domain_name>.xml

After that you can connect to the SPICE on port 5900 using tools like virt-viewer, remote-viewer, ...

f4d0
  • 141
  • 4
0

Use 'aqemu', can be found in Ubuntu Repositories. It saves kvm configs to /home/${user}/.aqemu/

Kouros
  • 762