machyve / xhyve

xhyve, a lightweight OS X virtualization solution
Other
6.44k stars 353 forks source link

Cannot use userboot.so on macOS Sierra 10.12 Beta #117

Closed zg closed 5 years ago

zg commented 8 years ago

I am trying to run xhyve on macOS Sierra 10.12 Beta and am getting the following error:

$ sudo ./run.sh
dlopen(userboot.so, 4): no suitable image found.  Did find:
                                                            userboot.so: unknown file type, first eight bytes: 0x0A 0x0A 0x0A 0x0A 0x3C 0x21 0x44 0x4F

Here is my run.sh file:

#!/bin/sh

USERBOOT="userboot.so"
BOOTVOLUME="FreeBSD.raw"
KERNELENV=""

MEM="-m 2G"
SMP="-c 2"
IMG_HDD="-s 4:0,virtio-blk,$BOOTVOLUME"
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
LPC_DEV="-l com1,stdio"
NET="-s 2:0,virtio-net"

# UUID="-U deaddead-dead-dead-dead-deaddeaddead"

xhyve -A $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_HDD $UUID -f fbsd,$USERBOOT,$BOOTVOLUME,"$KERNELENV"

userboot.so was downloaded directly from the mist64/xhyve GitHub repository.

jeremyhu commented 5 years ago

Please try recent builds. We've got FreeBSD working fine.