From e873faad919c79844efa8d52f6fc1e6a8c4b666d Mon Sep 17 00:00:00 2001 From: Gabriel Luchina Date: Tue, 1 Sep 2026 23:47:23 -0300 Subject: [PATCH] Fix ide0/2 to sata0/2 and fix warnings of KVM em qm start --- setup | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setup b/setup index 8fb9311..acf2467 100755 --- a/setup +++ b/setup @@ -37,7 +37,7 @@ SCRIPT_DIR="/root/OSX-PROXMOX" LOGDIR="${SCRIPT_DIR}/logs" MAIN_LOG="${LOGDIR}/main.log" TMPDIR="${SCRIPT_DIR}/tmp" -HACKPXVERSION="2026.08.27" +HACKPXVERSION="2026.09.01" OCVERSION="1.0.7" DEFAULT_VM_PREFIX="HACK-" BASE_RAM_SIZE=4096 @@ -407,7 +407,7 @@ create_vm() { fi if [[ "$OSX_PLATFORM" == "AMD" ]]; then if [[ "$version_name" =~ ^(Ventura|Sonoma|Sequoia|Tahoe)$ ]]; then - cpu_args="-cpu Cascadelake-Server,vendor=GenuineIntel,+invtsc,-pcid,-hle,-rtm,-avx512f,-avx512dq,-avx512cd,-avx512bw,-avx512vl,-avx512vnni,kvm=on,vmware-cpuid-freq=on" + cpu_args="-cpu Cascadelake-Server,vendor=GenuineIntel,+invtsc,-pcid,-hle,-rtm,-avx512f,-avx512dq,-avx512cd,-avx512bw,-avx512vl,-avx512vnni,-spec-ctrl,kvm=on,vmware-cpuid-freq=on" else cpu_args="-cpu Penryn,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc,+ssse3,+sse4.2,+popcnt,+avx,+avx2,+aes,+fma,+bmi1,+bmi2,+xsave,+xsaveopt,check" fi @@ -421,15 +421,15 @@ create_vm() { qm create "$vm_id" \ --agent 1 --args "$device_args $cpu_args" --autostart 0 \ - --balloon 0 --bios ovmf --boot "order=ide0;$disk_type" \ + --balloon 0 --bios ovmf --boot "order=sata0;$disk_type" \ --cores "$core_count" --description "Hackintosh VM - $version_name" \ --efidisk0 "${storage}:4" --machine q35 --memory "$ram_size" \ --name "$vm_name" --net0 "vmxnet3,bridge=$bridge" --numa 0 \ --onboot 0 --ostype other --sockets 1 --start 0 --tablet 1 \ --vga vmware --vmgenid 1 --scsihw virtio-scsi-pci \ --"$disk_type" "${storage}:${disk_size},cache=none,discard=on" \ - --ide0 "${storage_iso}:iso/${iso_file},media=cdrom,cache=unsafe,size=96M" \ - --ide2 "${storage_iso}:iso/recovery-${version_name,,}.iso,media=cdrom,cache=unsafe,size=${iso_size}" >>"$logfile" 2>&1 || log_and_exit "Failed to create VM" "$logfile" + --sata0 "${storage_iso}:iso/${iso_file},media=cdrom,cache=unsafe,size=96M" \ + --sata2 "${storage_iso}:iso/recovery-${version_name,,}.iso,media=cdrom,cache=unsafe,size=${iso_size}" >>"$logfile" 2>&1 || log_and_exit "Failed to create VM" "$logfile" sed -i 's/media=cdrom/media=disk/' "/etc/pve/qemu-server/$vm_id.conf" >>"$logfile" 2>&1 || log_and_exit "Failed to update VM config" "$logfile" display_and_log "VM ($vm_name) created successfully" "$logfile"