You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to send the traffic to vale bridge based vm #27
root@nimbnode21:~# pkt-gen -f tx -i vale0:vif10.0
052.426593 main [1624] interface is vale0:vif10.0
052.427249 extract_ip_range [275] range is 10.0.0.1:0 to 10.0.0.1:0
052.427267 extract_ip_range [275] range is 10.1.0.1:0 to 10.1.0.1:0
052.427323 nm_open [542] NIOCREGIF failed vale0:vif10.0
052.427335 main [1803] Unable to open vale0:vif10.0: Invalid argument
052.427369 main [1851] aborting
Usage:
valeo:vif10.0 is the port vif10.0 on switch vale0. You can't send traffic directly to a port attached to the switch, you need to create a new port on that switch by doing pkt-gen -f tx -i vale0:txp, where txp is a name of your choice.
I have tried this. It also does not work. Along the compiling process, all of the operations get succeed. I can install the module (netmap_lin.ko, ixgbe.ko, xen-netback.ko successfully), start the vm and launch the click app. But why my vm click can not receive anything. This is what I did:
root@nimbnode21:/home/wei# pkt-gen -f tx -i vale0:tx
063.556810 main [1624] interface is vale0:tx
063.557681 extract_ip_range [275] range is 10.0.0.1:0 to 10.0.0.1:0
063.557717 extract_ip_range [275] range is 10.1.0.1:0 to 10.1.0.1:0
063.575386 main [1807] mapped 41376KB at 0x7f462f09c000
Sending on vale0:tx: 1 queues, 1 threads and 1 cpus.
10.0.0.1 -> 10.1.0.1 (00:00:00:00:00:00 -> ff:ff:ff:ff:ff:ff)
063.575479 main [1885] Sending 512 packets every 0.000000000 s
063.575490 main [1887] Wait 2 secs for phy reset
065.575666 main [1889] Ready...
065.575727 nm_open [457] overriding ifname vale0:tx ringid 0x0 flags 0x1
065.575887 sender_body [996] start
065.588478 sender_body [1065] drop copy
066.576880 main_thread [1421] 16009494 pps (16026112 pkts in 1001038 usec)
067.577932 main_thread [1421] 16395408 pps (16412672 pkts in 1001053 usec)
068.578999 main_thread [1421] 16395706 pps (16413184 pkts in 1001066 usec)
069.580071 main_thread [1421] 16384867 pps (16402432 pkts in 1001072 usec)
What commands are you using to create the VM and start the click configuration? Also what's the output of xenstore-ls after the configuration is started?
Now it does not crash. The VM can receive the packets. But this process is very very slow. I fell it takes several mins. At some point, it will stuck at Mapping TX ring long time and I have to restart the VM.
Do you know how to make it quickly start?
It takes about 2 mins start the click app. Is something wrong with my setup? How can I reduce the startup time? Now I can do the service chain. Thanks, @fmanco !
root@nimbnode21:~/vms# xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 30340 24 r----- 2886.2
vm1 12 1024 1 -b---- 164.0
vm2 13 1024 1 -b---- 160.8
Could you try booting up your guest on one of the CPUs being used for Domain-0 ? Say if your Domain-0 is pinned to 0,1,2,3. You boot ClickOS on CPU 3, and then after booted switch to CPU 4.
I am using xen 4.6.0. Thanks so much for your help along the way! I can run 1,2,3VM. But after 4VMs, after I start click example, the VM still gets crashed. I gave 1G memory. It does not help to improve the startup time even pin the core like @jpemartins said. I saw it spends a very long time map the rx and tx ring. What could be the possible reason?
That's indeed weird. We never tested ClickOS with Xen 4.6, could you possible try an older version, like Xen 4.2? Also try to reduce the amount of memory you give to the VM (you need to figure the minimum by trial and error).
Activity
fmanco commentedon Mar 24, 2016
Hi
valeo:vif10.0is the portvif10.0on switchvale0. You can't send traffic directly to a port attached to the switch, you need to create a new port on that switch by doingpkt-gen -f tx -i vale0:txp, wheretxpis a name of your choice.zhangwei1984 commentedon Mar 24, 2016
I have tried this. It also does not work. Along the compiling process, all of the operations get succeed. I can install the module (netmap_lin.ko, ixgbe.ko, xen-netback.ko successfully), start the vm and launch the click app. But why my vm click can not receive anything. This is what I did:
My VM can not receive the packets also
vm configuration
click configuration
fmanco commentedon Mar 28, 2016
What commands are you using to create the VM and start the click configuration? Also what's the output of
xenstore-lsafter the configuration is started?zhangwei1984 commentedon Mar 28, 2016
Now it does not crash. The VM can receive the packets. But this process is very very slow. I fell it takes several mins. At some point, it will stuck at Mapping TX ring long time and I have to restart the VM.
Do you know how to make it quickly start?
zhangwei1984 commentedon Mar 29, 2016
It takes about 2 mins start the click app. Is something wrong with my setup? How can I reduce the startup time? Now I can do the service chain. Thanks, @fmanco !
fmanco commentedon Mar 31, 2016
That's weird it's taking so much time. Which version of xen are you running?
jpemartins commentedon Mar 31, 2016
Could you try booting up your guest on one of the CPUs being used for Domain-0 ? Say if your Domain-0 is pinned to 0,1,2,3. You boot ClickOS on CPU 3, and then after booted switch to CPU 4.
zhangwei1984 commentedon Apr 2, 2016
I am using xen 4.6.0. Thanks so much for your help along the way! I can run 1,2,3VM. But after 4VMs, after I start click example, the VM still gets crashed. I gave 1G memory. It does not help to improve the startup time even pin the core like @jpemartins said. I saw it spends a very long time map the rx and tx ring. What could be the possible reason?
fmanco commentedon Apr 4, 2016
That's indeed weird. We never tested ClickOS with Xen 4.6, could you possible try an older version, like Xen 4.2? Also try to reduce the amount of memory you give to the VM (you need to figure the minimum by trial and error).