Installing iPerf3 on Cirros as a client instance

asked 2017-07-07 06:57:54 -0600

Rez7 gravatar image

Hello all,

I tried to install iPerf3 on Cirros, which are my Instance clients on OpenStack. I failed because it doesn't have a package manager. Now how am i supposed to install iPerf3 on Cirros? Or at least tell me an alternative way to measure throughput between two instances by running a tool or whatever way ...

Thank you

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2017-07-07 07:40:22 -0600

luowei gravatar image

updated 2017-07-07 08:31:00 -0600

Adding iperf3 to Cirros sounds non-trivial. Consider a cloud image that has package management (Ubuntu, CentOS,...) There are many cloud images in the Community App Catalog here:

Branches for building cirros are in github:

For your comment below: With a linux cloud image, you can paste something like the following into the Launch Instance -> Configuration -> Customization Script , It will create a privileged user "myuser" and allow ssh.


ssh_pwauth: True
  - name: myuser
    lock-passwd: false
    shell: /bin/bash
    plain_text_passwd: 'mypassword'
edit flag offensive delete link more


Thanks, Once i used "CentOS-7-x86_64-GenericCloud-1701", a few months ago i think, i recall it had login problem with SSH and root password (seemed unknown).

Rez7 gravatar imageRez7 ( 2017-07-07 07:59:58 -0600 )edit

For security reasons, cloud images don't have passwords out of the box. You can use cloudinit to set a password, or you log on with an SSH key; the user name should be fedora, centos, ubuntu and so on.

Bernd Bausch gravatar imageBernd Bausch ( 2017-07-07 09:34:44 -0600 )edit

@luowei: Thanks, i just tried and your code worked. Thank you sir.

Rez7 gravatar imageRez7 ( 2017-07-07 10:31:37 -0600 )edit

@B. Bausch: A procedure, instruction or at least a link for doing so, will be regarded.

Rez7 gravatar imageRez7 ( 2017-07-07 10:35:10 -0600 )edit

answered 2017-07-07 09:38:47 -0600

updated 2017-07-07 09:39:08 -0600

Cirros is based on busybox I think and is unlikely to have the libraries required to run iperf3 anyway. You could try compiling it with static libraries before uploading it to cirros.

Perhaps netcat is an option as a poor man's throughput gauge. Cirros has netcat.

edit flag offensive delete link more


I installed iPerf3 on Controller node and then copied the "/usr/bin/iperf3" to Cirros instance using "scp". It didn't work. As you just mentioned, it possibly is the lack of libraries. I do not know how to compile it using "static libraries". said: "Cirros has netcat", $ which netcat output is blank

Rez7 gravatar imageRez7 ( 2017-07-07 10:25:21 -0600 )edit

Sorry, while it's named netcat, the executable is called nc. You run it in server mode on one VM:

nc -lv 12345

then send data from the other VM:

dd if=/dev/zero count=1024 bs=1024M | nc IP_OF_FIRST_VM 12345

You might have to adjust the command line. dd will tell you the throughput.

Bernd Bausch gravatar imageBernd Bausch ( 2017-07-07 17:23:41 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-07-07 06:57:54 -0600

Seen: 1,553 times

Last updated: Jul 07 '17