-
Notifications
You must be signed in to change notification settings - Fork 0
/
ins4_throttling_groupname_only_86516.sh
executable file
·36 lines (36 loc) · 2 KB
/
ins4_throttling_groupname_only_86516.sh
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
/usr/libexec/qemu-kvm \
-name 'guest-rhel8.0' \
-machine q35 \
-nodefaults \
-vga qxl \
-object iothread,id=iothread0 \
-blockdev driver=qcow2,file.driver=file,cache.direct=off,cache.no-flush=on,file.filename=/home/images/os4.qcow2,node-name=drive_image2 \
-device pcie-root-port,id=pcie.0-root-port-5,slot=5,chassis=5,addr=0x5,bus=pcie.0 \
-device virtio-blk-pci,id=image2,drive=drive_image2,bus=pcie.0-root-port-5,addr=0x0,werror=stop,rerror=stop,iothread=iothread0,bootindex=0 \
-vnc :4 \
-monitor stdio \
-m 8192 \
-smp 8 \
-device virtio-net-pci,mac=9a:b5:b6:a1:b2:c4,id=idMmq1jH,vectors=4,netdev=idxgXAlm,bus=pcie.0,addr=0x9 \
-netdev tap,id=idxgXAlm,vhost=on \
-qmp tcp:localhost:5954,server,nowait \
-chardev file,path=/home/serial.log,id=serial_id_serial0 \
-device isa-serial,chardev=serial_id_serial0 \
-blockdev node-name=file_cd1,driver=file,read-only=on,filename=/mnt/linux/RHEL-8.1.0-20190701.0-x86_64-dvd1.iso,cache.direct=on,cache.no-flush=off \
-blockdev node-name=drive_cd1,driver=raw,read-only=on,cache.direct=on,cache.no-flush=off,file=file_cd1 \
-device ide-cd,id=cd1,drive=drive_cd1,write-cache=on,bus=ide.0,unit=0 \
\
-device virtio-scsi-pci,id=scsi0 \
\
-object throttle-group,id=foo1_grp,x-bps-total=512000,x-iops-total=100 \
-object throttle-group,id=foo2_grp,x-bps-total=512000,x-iops-total=200 \
-blockdev driver=file,cache.direct=on,cache.no-flush=off,filename=/home/images/data4-1.qcow2,node-name=file_stg1 \
-blockdev driver=qcow2,node-name=drive_stg1,file=file_stg1 \
-blockdev driver=throttle,throttle-group=foo1_grp,node-name=foo1_node,file=drive_stg1 \
-device scsi-hd,drive=foo1_node,id=data1 \
\
-blockdev driver=file,cache.direct=on,cache.no-flush=off,filename=/home/images/data4-2.qcow2,node-name=file_stg2 \
-blockdev driver=qcow2,node-name=drive_stg2,file=file_stg2 \
-blockdev driver=throttle,throttle-group=foo1_grp,node-name=foo2_node,file=drive_stg2 \
-device scsi-hd,drive=foo2_node,id=data2 \
\