19

I'm trying to install and configure spice.

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

4
  • 2
    Welcome to Ask Ubuntu! Yes, I've done this with success in 12.04. What management tool are you using for running KVM? Virt-manager? plain Libvirt with virsh? a web based manager? or plain qemu-kvm command line, etc. And what guest OS are you running?
    – gertvdijk
    Feb 3, 2013 at 20:32
  • package easyspice seems to work on my 12.10 running in kvm. Take a look at apt-cache pkgnames | grep spice to see many more packages.
    – ubfan1
    Feb 9, 2013 at 6:53
  • Hey I found this guide on the linux kvm site, not sure if you've seen it. How to install SPICE on KVM. linux-kvm.org/page/SPICE
    – curios
    Sep 7, 2013 at 18:52
  • I found the following resource useful: linux-kvm.org/page/SPICE Jul 26, 2022 at 14:48

2 Answers 2

1

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, ...

0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .