18

I'm trying to install and configure spice.

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

fosslinux
  • 3,771
  • 4
  • 28
  • 46
user128340
  • 181
  • 1
  • 1
  • 3
  • 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 03 '13 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 09 '13 at 06:53
  • Hey I found this guide on the linux kvm site, not sure if you've seen it. How to install SPICE on KVM. http://www.linux-kvm.org/page/SPICE – curios Sep 07 '13 at 18:52
  • I found the following resource useful: https://www.linux-kvm.org/page/SPICE – PodcastHeaven Jul 26 '22 at 14:48

2 Answers2

0

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
  • 111
  • 2
0

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

Kouros
  • 772
  • 2
  • 10
  • 17