/app-helloworld

A simple "Hello World" application written in C

Primary LanguageCOtherNOASSERTION

Unikraft "hello world" Application

This application prints a basic "Hello World!" message.

To configure, build and run the application you need to have kraft installed.

To be able to run it, configure the application to run on the desired platform and architecture:

$ kraft configure -p PLATFORM -m ARCH

Build the application:

$ kraft build

And, finally, run the application:

$ kraft run
Hello World!

If you want to have more control you can also configure, build and run the application manually.

To configure it with the desired features:

$ make menuconfig

Build the application:

$ make

Run the application:

  • If you built the application for kvm:
sudo qemu-system-x86_64 -kernel "build/app-helloworld_kvm-x86_64" \
                        -enable-kvm \
                        -nographic
  • If you built the application for linuxu:
./build/app-helloworld_linuxu-x86_64
  • If you built the application for xen:
    • First, you need to create a configuration file app-helloworld.cfg. It should look something like:
      name          = "app-helloworld"
      vcpus         = "1"
      memory        = "4"
      kernel        = "./build/app-helloworld_xen-x86_64"
      
    • To run the application you can use:
      xl create -c app-helloworld.cfg
      

For more information about kraft type kraft -h or read the documentation.