includeos / IncludeOS

A minimal, resource efficient unikernel for cloud services
https://www.includeos.org
Apache License 2.0
4.9k stars 359 forks source link

PROGRAM_FAILURE for booting the hello OS on macOS Catalina #2180

Closed DanB91 closed 4 years ago

DanB91 commented 4 years ago

Hi All,

I've been trying to get the "hello" OS booted on macOS Catalina. I used the Homebrew instructions to achieve this. When I try to I get the error: PROGRAM_FAILURE. I have attached the verbose output below. I built this hello OS with conan install ../hello_world -pr clang-6.0-macos-x86_64. Any insight would be great. Thanks!

(conanenv) ➜  includeos_hello boot hello -v
* <boot>:  VERBOSE mode set for environment
* <VMRunner>:  Loading default config. 
* <VMRunner>:  Trying to load config from /Users/me/.conan/data/vmrunner/0.16.0/includeos/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/vmrunner/vm.vanilla.json 
* <VMRunner>:  Successfully loaded vm config 
* <VMRunner>:  " Single virtio nic with vanilla cpu features " 
* <VMRunner>:  Trying to load config from ./vm.json 
* <VMRunner>:  " {} " 
* <boot>:  Args to pass to VM:  []
* <boot>:  1 VM initialized. Commencing build- and boot...
* <VMRunner>:  Loading default config. 
* <VMRunner>:  Trying to load config from /Users/me/.conan/data/vmrunner/0.16.0/includeos/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/vmrunner/vm.vanilla.json 
* <VMRunner>:  Successfully loaded vm config 
* <VMRunner>:  " Single virtio nic with vanilla cpu features " 
* <VMRunner>:  Trying to load config from ./vm.json 
* <VMRunner>:  " {} " 
* <boot>:  No file extension. Trying to boot as kernel
* <VMRunner>:  VM boot, timeout:  None multiboot:  True Kernel_args:   image_name:  hello 
* <VMRunner>:  Booting with multiboot: True kernel_args:   image_name: hello 
egrep: /proc/cpuinfo: No such file or directory
* <qemu>:  KVM OFF 
* <VMRunner>:  File magic:  hello: cannot open `hello' (No such file or directory)

[ WARNING ] Provided kernel is neither 64-bit or 32-bit ELF executable.
* <VMRunner>:  Booting hello directly without bootloader (multiboot / -kernel args) 
* <VMRunner>:  Command: sudo qemu-system-x86_64 -accel hvf -cpu host -kernel hello -append "" -device virtio-net,netdev=net0,romfile= -netdev tap,id=net0,script=/Users/me/.conan/data/vmrunner/0.16.0/includeos/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/qemu-ifup,downscript=/Users/me/.conan/data/vmrunner/0.16.0/includeos/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/qemu-ifdown -m 128 -nographic 
[ WARNING ] Running with sudo
* <qemu>:  Started process PID  72430 
* <VMRunner>:  Event loop done. Exit status: None poll: 1 
* <VMRunner>:  No poll - getting final output 
* <VMRunner>:  Exit called with status 1 ( PROGRAM_FAILURE ) 
* <VMRunner>:  Message: process exited Keep running:  False 
* <VMRunner>:  Calling on_exit 
* <VMRunner>:  Program exit called with status 1 ( PROGRAM_FAILURE ) 
* <VMRunner>:  Stopping all vms 

[ PROGRAM_FAILURE ] process exited
DanB91 commented 4 years ago

I'm dumb. I forgot to run the cmake commands. Sorry for wasting time. Though hopefully this error is useful to someone else