Ask Your Question

How to compile programs on cirros?

asked 2016-11-06 19:19:09 -0500

I would like to create my own programs on cirros instances (background: I want to dirty memory pages so that live-migration takes a long time or even forever). Cirros doesn't have a C compiler, and my naive attempts to compile and statically link a simple program outside of Cirros and run it on an instance failed.

Is there a way to install a compiler on Cirros? If not, what compiler options would you choose to cross-compile for Cirros?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2016-11-07 07:43:55 -0500

Hi Bernd,

From ( “CirrOS is a minimal Linux distribution that was designed for use as a test image on clouds such as OpenStack Compute.”

ssh’ing into an instance of cirros in my environment,

ls -lt /bin | grep -c busybox

shows 83 links to busybox. “BusyBox is software that provides several stripped-down Unix tools in a single executable file. … It was specifically created for embedded operating systems with very limited resources.”

cirros is very quick to load and very lightweight. My observation is that your complication work will be better served using a traditional operating system from (

I hope this was helpful, regards, Chris

edit flag offensive delete link more


Thanks Chris. Yes, I know that Cirros is not made for running real-life workloads and is based on software targeted to embedded and otherwise low-performance systems. My problem is that I currently only have the Cirros option.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-07 17:39:48 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-11-06 19:19:09 -0500

Seen: 521 times

Last updated: Nov 06 '16