Fedora 14
Sponsored Link

SPICE Server2010/11/16

  Install Desktop Virtualization "SPICE ( Simple Protocol for Independent Computing Environment )". It's possible to connect to virtual machines from remote client computer.

[1] Install SPICE server.
[root@dlp ~]#
yum -y install spice-protocol spice-server

[2] Create a shell script to start virtual machine with SPICE.
[root@dlp ~]#
vi /usr/local/bin/qemu-spice

# create new


exec /usr/bin/qemu-kvm $* \
-vga qxl \
-spice port=5930,disable-ticketing

[root@dlp ~]#
chmod 755 /usr/local/bin/qemu-spice
[3] Edit existing virtual machine's xml-file and start virtual machine with SPICE. This site's example has created virtual machine without graphics, so it's OK to change settings like follows, but if you created virtual machine with graphics, Remove "<graphics>***" and "<video>"*** sections in xml file because qxl is used for graphics.
[root@dlp ~]#
vi /etc/libvirt/qemu/www.xml

# change emulator


# change "slot='0x02'" section to any other empty numbers because '0x02' is used by qxl if "slot='0x02'" exists

<address type='pci' domain='0x0000' bus='0x00' slot='
' function='0x0'/>

[root@dlp ~]#
virsh define /etc/libvirt/qemu/www.xml
# define new settings

Domain www defined from /etc/libvirt/qemu/www.xml
[root@dlp ~]#
virsh start www
# start virtual machine

Domain www started
[4] If you use virtula machine with GUI, Install QXL driver in GuestOS of virtual machine.
[root@mail ~]#
yum -y install xorg-x11-drv-qxl

[5] Configuration is all OK. See next page to connect to SPICE server from SPICE client.

Matched Content