-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscratch
34 lines (20 loc) · 1.01 KB
/
scratch
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
/var/lib/libvirt/images/k8sworker0.qcow2
<interface type="vhostuser">
<mac address="52:54:00:89:d5:2b"/>
<source type="unix" path="/tmp/vhost-user-client-k8sworker0" mode="server"/>
<model type="virtio"/>
<address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
</interface>
qemu-system-x86_64 -enable-kvm -m 3072 -smp 2 \
-chardev socket,id=char0,path=/var/run/openvswitch/vhost-user1 \
-netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \
-device virtio-net-pci,netdev=mynet1,mac=52:54:00:02:d9:00 \
-object memory-backend-file,id=mem,size=1024M,mem-path=/dev/hugepages,share=on \
-numa node,memdev=mem -mem-prealloc \
-net user,hostfwd=tcp::10020-:22 -net nic \
/var/lib/libvirt/images/k8sworker0.qcow2
sudo dpdk-testpmd -l 0,2,3,4,5 --socket-mem=1024 -n 4 \
--vdev 'net_vhost0,iface=/tmp/vhost-user1' \
--vdev 'net_vhost1,iface=/tmp/vhost-user2' -- \
--portmask=f -i --rxq=1 --txq=1 \
--nb-cores=4 --forward-mode=io