Skip to content

Conversation

@rn
Copy link
Member

@rn rn commented Dec 5, 2020

Fix compiling hyperkit on macOS Big Sur.

The resulting binary still does not work, I'm now getting:

./build/hyperkit -A -m 512M -s 0:0,hostbridge -s 31,lpc -l com1,stdio -s 1:0,ahci-hd,/dev/rdisk7 -f kexec,./vmlinuz,./initrd.gz,earlyprintk=serial console=ttyS0 noapic nosmp
hv_vm_create HV_ERROR (unspecified error)
Abort trap: 6

rn added 5 commits December 5, 2020 15:16
This compiler warning is used for cross-compilation only,
which is not used for hyperkit. Explicitly disable it.

Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
macOS Big Sur seems to have introduced their own version of
these functions. Use an _ to pick up our version of these
functions.

This is based on b7e589f91e68 ("Support Big Sur (moby#200)")
from https://github.com/machyve/xhyve

Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
hv_vm_create() returns a generic HV_ERROR. Add a case for it.
While at it, also print the error value in hex as this is how
they are defined in hv_error.h.

Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
fixes moby#305

Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
This is a temporary file being created by some of the tests.

Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
@rn rn mentioned this pull request Dec 5, 2020
Copy link
Collaborator

@djs55 djs55 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, and the CI is green!

@djs55 djs55 merged commit d8d9fa4 into moby:master Dec 7, 2020
@rn rn deleted the compile branch December 8, 2020 09:33
@townsend2010
Copy link
Contributor

I think you need #295 as well. Only if that would get merged...

@arbourd
Copy link

arbourd commented Dec 17, 2020

Would it be possible to get a release that includes this patch? 🙏

Oddly, this library is blocking Homebrew from updating Go 1.15.6.

@djs55
Copy link
Collaborator

djs55 commented Jan 7, 2021

@arbourd I've tagged a release of hyperkit here: https://github.com/moby/hyperkit/tree/v0.20210107

Copy link

@dillyphilly3131 dillyphilly3131 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants