summaryrefslogtreecommitdiff
path: root/README
blob: 7e9a3c75137d5485fe1b8b442badf52245b6ed20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Introduction
============

The SPICE Streaming Agent is a guest-side daemon which captures the
guest video output, encodes it to a video stream,and forwards the resulting
stream to the host to be sent through SPICE. The capture and encoding are done
through the use of plugins, so a variety of video format and capture/encoding
methods (hardware/software) can be used. For now, spice-streaming-agent only
provides software encoding to MJPEG.


Virtual Machine Configuration
=============================

In order to set up streaming, qemu needs to expose a
`com.redhat.stream.0` virtio port, associated with a
corresponding Spice port.

Using virt-manager
------------------

In the hardware details, click on "Add Hardware", then select
"Channel". Add a "Spice port" device type with the
"com.redhat.stream.0" name. You also need to set "Channel" to
"com.redhat.stream.0"


Using libvirt
-------------

[source,xml]
<devices>
    <channel type='spiceport'>
        <source channel='com.redhat.stream.0'/>
        <target type='virtio' name='com.redhat.stream.0'/>
    </channel>
</devices>

Using QEMU
----------

[source,sh]
-device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel1,id=channel1,name=com.redhat.stream.0 -chardev spiceport,name=com.redhat.stream.0,id=charchannel1