Comments (7)
Hi,
without seeing your boot script I’m going to have to guess:
- Are you using an odd number of CPU cores? If so, make sure they are even.
- Are you using an odd number of threads? Again, make sure they’re even. However, you should also try setting this to just 1 thread.
from ultimate-macos-kvm.
Yes, they both are even. When I change number of threads script returns
Invalid CPU topology: product of the hierarchy must match maxcpus: sockets (1) * dies (1) * cores (2) * threads (0) != maxcpus (1)
Should I rerun Autopilot?
from ultimate-macos-kvm.
My script:
NAME="macOS 12"
FILE="boot.sh"
ULTMOS=0.12.1
IGNORE_FILE=0
REQUIRES_SUDO=0
VFIO_PTA=0
VFIO_DEVICES=0
GEN_EPOCH=1719134653
FEATURE_LEVEL=7
VERBOSE=1
DISCORD_RPC=1
DISCORD_RPC_IMG="default"
SCREEN_RES="1280x720"
ALLOCATED_RAM="4G"
CPU_SOCKETS="1"
CPU_CORES="2"
CPU_THREADS="4"
CPU_MODEL="Haswell-noTSX"
CPU_FEATURE_ARGS="+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check"
REPO_PATH="/data/anton/QEMU/ultimate-macOS-KVM"
OVMF_DIR="/data/anton/QEMU/ultimate-macOS-KVM/ovmf"
VFIO_ID_0="$USR_VFIO_ID_0"
VFIO_ID_1="$USR_VFIO_ID_1"
VFIO_ROM="$USR_VFIO_ROM"
USB_DEVICES="$USR_USB_DEVICES"
NETWORK_DEVICE="vmxnet3"
MAC_ADDRESS="00:16:cb:00:21:09"
OS_ID="Monterey"
HDD_PATH="$REPO_PATH/HDD.qcow2"
DISK_TYPE="SSD"
# You should not have to touch anything below this line, especially if you
# don't really know what you're doing. It'll probably break something.
args=(
-global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off
-enable-kvm -m "$ALLOCATED_RAM" -cpu "$CPU_MODEL",kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,"$CPU_FEATURE_ARGS"
-machine q35
-boot menu=on,splash-time=5
#-device usb-ehci,id=ehci
#-device qemu-xhci,id=xhci
-usb -device usb-kbd -device usb-tablet
#USB_DEV_BEGIN
#USB_DEV_END
-smp "$CPU_THREADS",cores="$CPU_CORES",sockets="$CPU_SOCKETS"
-device pcie-root-port,bus=pcie.0,slot=1,x-speed=16,x-width=32
#VFIO_DEV_BEGIN
#VFIO_DEV_END
-device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
-drive if=pflash,format=raw,readonly=on,file="$OVMF_DIR/OVMF_CODE.fd"
-drive if=pflash,format=raw,file="$OVMF_DIR/OVMF_VARS.fd"
-smbios type=2
-device ich9-intel-hda -device hda-duplex
-device ich9-ahci,id=sata
-drive id=OpenCore,if=none,format=qcow2,file="$REPO_PATH/boot/OpenCore.qcow2"
-drive id=HDD,if=none,file="$HDD_PATH",format=qcow2
-device ide-hd,bus=sata.2,drive=OpenCore,bootindex=1
-device ide-hd,bus=sata.3,drive=HDD,rotation_rate=1
############## REMOVE THESE LINES AFTER MACOS INSTALLATION ###############
#-drive id=BaseSystem,if=none,file="$REPO_PATH/BaseSystem.img",format=raw
#-device ide-hd,bus=sata.4,drive=BaseSystem
##########################################################################
-netdev user,id=net0 -device "$NETWORK_DEVICE",netdev=net0,id=net0,mac="$MAC_ADDRESS"
-device qxl-vga,vgamem_mb=128,vram_size_mb=128
-monitor stdio
#-display none
#-vga qxl
################ UNCOMMENT IF YOU WANT TO USE VNC MONITOR ################
#-vnc 0.0.0.0:1,password=on -k en-us
##########################################################################
)
while getopts d: flag
do
case "${flag}" in
d) DISCORD_RPC=${OPTARG};;
esac
done
if [ $VERBOSE = 1 ]
then
echo
echo \ \ \──────────────────────────────────────────────
echo \ \ \ \ \ $FILE
echo \ \ \ \ \ $ID $OS_ID
echo
echo \ \ \ \ \ Built with ULTMOS v$ULTMOS
echo \ \ \ \ \ Using $CPU_MODEL CPU model
if [ $REQUIRES_SUDO = 1 ]
then
echo \ \ \ \ \ Superuser privileges enabled
fi
if [ $VFIO_PTA = 1 ]
then
echo \ \ \ \ \ Passthrough enabled
else
echo \ \ \ \ \ Passthrough disabled
fi
if [ $DISCORD_RPC = 1 ]
then
echo \ \ \ \ \ Discord RPC enabled
else
echo \ \ \ \ \ Discord RPC disabled
fi
echo \ \ \──────────────────────────────────────────────
echo
fi
if [ $DISCORD_RPC = 1 ]
then
"$REPO_PATH/scripts/drpc.py" --os "$OS_ID" --pt $VFIO_DEVICES --wd "$REPO_PATH" --show "$DISCORD_RPC_IMG" &
fi
qemu-system-x86_64 "${args[@]}"
if [ $DISCORD_RPC = 1 ]
then
pkill -f drpc.py
fi```
from ultimate-macos-kvm.
Rerun Autopilot, made 1 thread, but use old virtual disk. Error remains
from ultimate-macos-kvm.
I think I see the problem, try setting CPU_THREADS as 2, see if that helps.
from ultimate-macos-kvm.
Same error.
from ultimate-macos-kvm.
Related Issues (20)
- [macOS/Passthrough] macOS on iGPU?
- [macOS] Unable to establish a USB connection between an iPhone physical device and Monterey HOT 11
- Navi VPTA detection incorrectly initialised HOT 1
- Work HOT 3
- [AUTOPILOT] TypeError: object of type 'int' has no len() HOT 8
- [ULTMOS] Issue with RHEL/CentOS/AlmaLinux/RockyLinux support. HOT 3
- [ULTMOS] Update from v0.11.0 to v0.11.1 fails with `'Namespace' object has no attribute 'targetBranch'` HOT 2
- [macOS] Sonoma 14.4, keyboard and mouse unresonsive HOT 27
- [macOS] can't boot into Sonoma installer HOT 11
- [ULTMOS] cpuinfo usage with AMD Processor/Ubuntu HOT 7
- No such file or directory as python? HOT 3
- [SUGGESTION] Leverage existing OSx boot drive (Hackintosh) to create VM HOT 3
- [macOS] - can't regain control of host after passthrough shutdown HOT 1
- [SUGGESTION] ICH9 Sound?
- [SUGGESTION] Add agdpmod=pikera to boot args in config.plist HOT 2
- [macOS] High Sierra can only use the mouse for initial setup on virt manager not from the main.py HOT 10
- [macOS] stuck on Base System HOT 4
- [AUTOPILOT] HOT 2
- [SUGGESTION] is there support for osx hosts? thx HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ultimate-macos-kvm.