nanovms / ops

ops - build and run nanos unikernels
https://ops.city
MIT License
1.29k stars 132 forks source link

MacOS Hypervisor Framework broken with Qemu. #268

Closed ExternalReality closed 5 years ago

ExternalReality commented 5 years ago

On mac, if acceleration is enabled in the run-time config, Ops will add the -accel hvf -cpu host flags to its generated Qemu Command. This causes an error.

bad size

signal: abort trap

Given this once worked unfailingly, I am guessing its a kernel regression.

ops run -v hello -c config.json
Downloading.. /Users/externalreality/.ops/0.1.10/nanos-release-darwin-0.1.10.tar.gz
 506.10 KiB / 506.10 KiB [====================================================================================] 100.00% 1.20 MiB/s 0s
Finding dependent shared libs
booting /Users/externalreality/.ops/images/hello.img ...
qemu-system-x86_64 -drive file=/Users/externalreality/.ops/images/hello.img,format=raw,if=none,id=hd0 -device virtio-blk,drive=hd0 -device virtio-net,netdev=n0 -netdev user,id=n0 -accel hvf -cpu host -nodefaults -no-reboot -device isa-debug-exit -m 2G -display none -serial stdio
bad size

signal: abort trap
mkhon commented 5 years ago

This one is a bug in qemu hvf

mkhon commented 5 years ago

Fixed in nanovms/qemu#1

wjhun commented 5 years ago

@ExternalReality Which version of qemu are you using here? And which were you using before the regression?

mkhon commented 5 years ago

Fixed in nanovms/nanos#702