Page 1 of 1

[SOLVED] Spice with Kvm

PostPosted: Nov 2nd, '14, 14:37
by hman
Hi all,
yesterday i tryed to use kvm to manage some of my virtual machines and i also tryed spice as remote control instead vnc. Spice is great :o
i only need to install some packages in guest os and add a channel in virt-manager.

My problem now is how use clipboard (copy and paste). Seems that spice support it using spice-vdagentd in guest and host os. So i builded and installed on my Mga4 and in my guest os and spicy (spice gtk client) say my "agent:yes" so two agents should work but when i try to copy and past between 2 os, i have nothing.

Could you help me ?

thanks
Armando

Re: Spice with Kvm

PostPosted: Nov 2nd, '14, 15:16
by doktor5000
Mageia 4 is the host OS, what is the guest OS?
In the guest, please show the output as root of
Code: Select all
service status spice-vdagent


You also need to add a serial device to the guest. Check e.g. http://www.linux-kvm.org/page/SPICE

Re: Spice with Kvm

PostPosted: Nov 2nd, '14, 19:03
by hman
Hi doktor5000,

i have Mga4 as host and CentOS 7 as guest. In guest i installed:
spice-gtk-tools-0.20-8.el7.x86_64
spice-server-0.12.4-5.el7.x86_64
spice-gtk3-0.20-8.el7.x86_64
spice-xpi-2.8-5.el7.x86_64
spice-gtk-0.20-8.el7.x86_64
spice-vdagent-0.15.0-3.el7.centos.x86_64
spice-glib-0.20-8.el7.x86_64
spice-protocol-0.12.6-2.el7.noarch
spice-gtk-python-0.20-8.el7.x86_64

as you can see in status bar, spice client launched on host detect agent in guest
guest_with_vdagent.png
guest_with_vdagent.png (331.42 KiB) Viewed 1566 times


this is my virt-manager config
host_virt-manager.png
host_virt-manager.png (71.48 KiB) Viewed 1566 times


i checked also qemu command in /var/log/libvirt/qemu and it have correct parameters. I using cinnamon on host.

Re: [SOLVED] Spice with Kvm

PostPosted: Nov 6th, '14, 23:05
by hman
Finally i tryed another spice client:
Code: Select all
$ spicec -h localhost -p 5900


it work fine with copy and paste :)