Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes building under MacOS Big Sur and Xcode 12 #192

Closed
wants to merge 1 commit into from

Conversation

vitorpy
Copy link

@vitorpy vitorpy commented Jul 9, 2020

This PR fixes building under MacOS Big Sur and Xcode 12.

@alexanderniebuhr
Copy link

@vitorpy awesome work. 👍

I had to disable code signing to make it run in terminal see #191
However I am currently not able to get my script started:

#!/bin/bash

KERNEL="vmlinuz"
INITRD="initrd.img"
CMDLINE="earlyprintk=serial console=ttyS0 acpi=off sshd=1"

MEM="-m 1G"
NET="-s 2:0,virtio-net"
IMG_CD="-s 3,ahci-cd,/Users/alexanderniebuhr/Downloads/CentOS-7-x86_64-Minimal-2003.iso"
IMG_HDD="-s 4,virtio-blk,hdd.img"
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
LPC_DEV="-l com1,stdio"

xhyve $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_HDD -f kexec,$KERNEL,$INITRD,"$CMDLINE"
🕙[ 07:41:48 ] ❯ sudo ./install_centos.sh
Password:
vmx_set_ctlreg: cap_field: 2 bit: 20 unspecified don't care
vmx_init: processor does not support desired secondary processor-based controls
Unable to create VM (22)

Did you experienced something similar? Or does anyone have an idea how to fix this with macOS 11.0 Beta (20A5323l) and Xcode 12.0 beta 3 (12A8169g)

@@ -121,6 +121,8 @@ static struct blockif_sig_elem *blockif_bse_head;

#pragma clang diagnostic pop

#if !defined(__MAC_10_16)
Copy link
Member

Choose a reason for hiding this comment

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

This should probably be __MAC_OS_X_VERSION_MAX_ALLOWED < 101600

@DiegoMagdaleno
Copy link

@alexanderniebuhr I am also experiencing the same issue

❯ ./xhyverun-tinycorelinux.sh
vmx_set_ctlreg: cap_field: 2 bit: 14 unspecified don't care
vmx_init: processor does not support desired secondary processor-based controls
Unable to create VM (22)

shanesmith added a commit to shanesmith/xhyve that referenced this pull request Nov 6, 2020
Based on machyve#192 but with fixes to additional issues I've encountered.

Tested on Big Sur 11.0 Beta 10 with Xcode 12.1 and Xcode 12.2 Beta 4.
@shanesmith shanesmith mentioned this pull request Nov 6, 2020
shanesmith added a commit to shanesmith/xhyve that referenced this pull request Nov 13, 2020
As seen in machyve#192 I was having similar issues with `vmx_set_ctlreg:
cap_field: 2 bit: 20 unspecified don't care`.

I followed the example of machyve#174 and disabled the bits that would show up
in the errors.
jasnee pushed a commit that referenced this pull request Nov 13, 2020
* Support Big Sur

Based on #192 but with fixes to additional issues I've encountered.

Tested on Big Sur 11.0 Beta 10 with Xcode 12.1 and Xcode 12.2 Beta 4.

* Remove VMX flag fixes, move ARCHS from pbxproj to xcconfig
erikolofsson pushed a commit to erikolofsson/xhyve that referenced this pull request Sep 1, 2021
As seen in machyve#192 I was having similar issues with `vmx_set_ctlreg:
cap_field: 2 bit: 20 unspecified don't care`.

I followed the example of machyve#174 and disabled the bits that would show up
in the errors.
@vitorpy vitorpy closed this Apr 1, 2024
@vitorpy vitorpy deleted the bigsur branch April 1, 2024 14:13
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.

4 participants