spice-streaming-agent从官方的定义介绍,是一个运行于guest os中的守护进行,捕捉guest os的视频输出,编码成视频流后通过spice-protocol协议转发给host主机。
1. 安装
spice-streaming-agent源码下载:https://gitlab.freedesktop.org/spice/spice-streaming-agent
它需要spice-protocol >= 0.12.14 , Ubuntu 下 0.12.14可直接下载到,0.12.15也需要源码编译,源码下载:https://gitlab.freedesktop.org/spice/spice-protocol
spice-protocol、spice-streaming-agent的编译:
./autogen.sh
make
sudo make install
注意:执行autogen.sh时,可能由于编译环境原因会缺包,要配好源能及时下载,一般规律是,如果提示缺少jpeg包,那就得下载libjpeg-dev的包,可能不全是这规律,U系可以apt-cache search libjpeg搜一下。
2. host 配置
host服务器端要使用spice-server >= 0.14.1,如果版本没升级,其它都配置了,运行spice-str