Hi folks, I committed the new script
CloudIt.sh which
is meant to
unify the way than an application is compile within Toro and then run in a VM. The script accepts one parameter which is the name of a
fpc application. For example, the following figure shows the use of the script to compile and run the ToroHello.pas
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9dib6gNiJtDpr1zt2DhwHzJ9tk0JcH0x1zs6J9fPR4_WtWYFLeT6zGABaiX5BovzdHQP1SqEcnglkIxhe_S390aRx5IXd0rmDNQRpgTsG7DoJH84tQashjIHxrMkhEsFqSxJ8/s320/2.PNG) |
Figure 1 |
The script compiles the application within the Toro kernel (see Figure 2), and then, it generates a
.img that can be run in a Qemu VM (see Figure 3).
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVqefMbbdIg7z8I6fZtYzpQhkE2V4U9AtfpLVayiutpA7yLkzEBZ7yivTqmVfoVbPhB8lzzmJNQUkZf0uNKOLpatqJOhmtjE5gsMdlBmI4e7CupyWPEtQdmaRofnJmRpdscM_X/s320/3.PNG) |
Figure 2 |
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhdiF3Kcb1nol3BxsHikh3Mf5jI1yVFzdh2Hbb9-oly7uSMtb3Za2jIZHObH2PP94JE4kYScSB55Y9K5u-eqxSs6t203qn5KvFoaa-OraClRCM6X-F5doYaTqAVJ0P271N7NOm/s320/1.PNG) |
Figure 3 |
To get the needed parameters to create the Qemu instance, the script looks for a .qemu which is named with the same name than the application, e.g., ToroHello.qemu. Such a file only contains the needed parameters to pass to qemu.
The idea in ClouidIt.sh is to show Toro as a unikernel, in this case, for the fpc compiler. It enables a fpc programmer to compile an application within the kernel and then run it in a VM instance. To go further with this approach, Toro should be able to run in an hypervirsor like Xen. This remains a very interesting future work! :)