【libvirt代码】
【libvirt编译】
1、依赖包安装
2、autoreconf -if
3、./configure xxxx
4、编译安装
yum install rpcgen
make RPCGEN=rpcgen
make install
【libvirt链接】
libvirt链接数配置
vi /etc/libvirt/libvirtd.conf
客户端数:
max_clients = 50
查看libvirt链接数
virt-admin server-clients-info libvirtd
virt-admin client-list libvirtd
查对应libvirt链接:
ss -apx|grep libvirtd| grep sock
通过服务端端口查找客户端对应端口:
ss -apx| awk '$6 == 25927837'
ss -apx| less
netstat -anp | grep qemu