Open foreverpersist opened 5 years ago
Yes indeed currently HermiTux does not run on top of Qemu. There is a bit of work needed to allow it:
read
syscall that check if the system is running with Uhyve (if not, it means it runs with Qemu) and forwarding the syscall accordingly.I have some advices:
For compatible with traditional hypervisors (like qemu, qemu-lite and firecraker),modifying HermiTux kernel by appending ELF loader may be useful. (Building a compatible kernel is applicable and can benefit from new optimized hypervisors)
For filesystem (and network) optimization, supporting virtio may be a better solution than redirecting system calls. (Using virtio-fs for filesystem, vhost-net for network can get better performance)
It fails on uhyve because of
KVM_ENABLE_CAP
inuhyve.c
. So, I just comment this section, then it works ok.However, it doesn't work on qemu. When I set
HERMIT_ISLE=qemu
, kernel can't run without error report. I also tryqemu -kernel ldhermit.elf
, it seems that the kernel doesn't boot at all.My host OS is ubuntu 14.04