查看虚拟机"instance-0000006e"
NJ1.JRY.INT-root@JRY00025:~# virsh list
Id Name State
----------------------------------------------------
2 instance-0000006e running
3 instance-0000004e running
4 instance-0000004d running
5 instance-00000051 running
6 instance-00000052 running
7 instance-0000003d running
8 instance-0000003c running
查看当前限速
NJ1.JRY.INT-root@JRY00025:~# virsh domiflist instance-0000006e
Interface Type Source Model MAC
-------------------------------------------------------
tap94625ccc-54 bridge brq0289e3f5-59 virtio fa:16:3e:3a:7e:81
NJ1.JRY.INT-root@JRY00025:~# virsh domiftune instance-0000006e tap94625ccc-54
inbound.average: 38400
inbound.peak : 38400
inbound.burst : 0
outbound.average: 38400
outbound.peak : 38400
outbound.burst : 0
修改限速
virsh domiftune instance-0000006e tap94625ccc-54 --inbound '384000 384000' --live
virsh domiftune instance-0000006e tap94625ccc-54 --outbound '384000 384000' --live
再次检查
NJ1.JRY.INT-root@JRY00025:~# virsh domiftune instance-0000006e tap94625ccc-54
inbound.average: 384000
inbound.peak : 384000
inbound.burst : 0
outbound.average: 384000
outbound.peak : 384000
outbound.burst : 0