6

spice协议测试帧率-补充

 9 months ago
source link: https://www.lpime.cn/article/134
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

spice协议测试帧率-补充 - Ryan_naiquan

spice帧率

spice-frametest,这代码仓库是测试spice协议的视频帧率和发送的数据包,但是作者的介绍并不是很清楚,所以我这边作为补充。

系统Ubuntu22.04

sudo apt-get -y install ffmpeg python3-gi libspice-client-gtk-3.0-dev python3-libvirt libvirt-clients
sudo apt install git

因为代码是先利用libvirt获取虚拟机的配置文件,所以你必须在代码中更改libvirt的账号、密码。然后再利用spice协议连接虚拟机,这里建议关闭spice的tls,因为需要证书。

python3 __main__.py --c qemu+ssh://[email protected]/system 1 --loglevel DEBUG

解释上面的命令:

需要用libvirt获取虚拟机的配置文件,qemu+ssh或者qemu+tcp都是libvirt管理虚拟机时的连接协议,我这边采用的ssh,比较简单,至于其他的协议,需要你自己研究。

测试方法:

virsh -c qemu+ssh://[email protected]/system list

本文由 Ryan 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: 2023/09/06 17:34


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK