includeos / hello_world

Basic IncludeOS example
Apache License 2.0
10 stars 7 forks source link

Unikernel Doesn't Terminate #7

Closed cm16161 closed 4 years ago

cm16161 commented 4 years ago

I am running Ubuntu 18.04 LTS. When trying to run the Hello World Unikernel, it executes and returns successfully but it doesn't terminate and the VM hangs.

OS loaded with 1 modules * hello "" @ 0x22f000 - 0x393978, size: 1460600b * Multiboot begin: 0x9500 * Multiboot end: 0x326840 [x86_64 PC] constructor [ Machine ] Initializing heap [ Machine ] Main memory detected as 130441024 b [ Machine ] Reserving 1048576 b for machine use Booted with multiboot * Boot flags: 0x24f * Valid memory (130559 Kib): 0x00000000 - 0x0009fbff (639 Kib) 0x00100000 - 0x07fdffff (129920 Kib) * Booted with parameters @ 0x8000: hello "" * Multiboot provided memory map (7 entries @ 0x9000) 0x0000000000 - 0x000009fbff FREE (639 Kb.) 0x000009fc00 - 0x000009ffff RESERVED (1 Kb.) 0x00000f0000 - 0x00000fffff RESERVED (64 Kb.) 0x0000100000 - 0x0007fdffff FREE (129920 Kb.) 0x0007fe0000 - 0x0007ffffff RESERVED (128 Kb.) 0x00feffc000 - 0x00feffffff RESERVED (16 Kb.) 0x00fffc0000 - 0x00ffffffff RESERVED (256 Kb.) ================================================================================ IncludeOS 0.15.1-5 (x86_64 / 64-bit) +--> Running [ Hello world - OS included ] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Hello world [ main ] returned with status 0
cm16161 commented 4 years ago

Ignore this: In order to close the Unikernel you need to have exit() At the bottom of your code