macOS-Simple-KVM icon indicating copy to clipboard operation
macOS-Simple-KVM copied to clipboard

Can't run basic.sh 0qemu-system-x86_64: : Could not open ' ': No such file or directory

Open GAMPR opened this issue 1 year ago • 2 comments

0qemu-system-x86_64: : Could not open ' ': No such file or directory

This is the basic.sh: #!/bin/bash

OSK="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" VMDIR=$PWD OVMF=$VMDIR/firmware #export QEMU_AUDIO_DRV=pa #QEMU_AUDIO_DRV=pa

qemu-system-x86_64
-enable-kvm
-m 2G
-machine q35,accel=kvm
-smp 4,cores=2
-cpu Penryn,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc
-device isa-applesmc,osk="$OSK"
-smbios type=2
-drive if=pflash,format=raw,readonly=on,file="$OVMF/OVMF_CODE.fd"
-drive if=pflash,format=raw,file="$OVMF/OVMF_VARS-1024x768.fd"
-vga qxl
-device ich9-intel-hda -device hda-output
-usb -device usb-kbd -device usb-mouse
-netdev user,id=net0
-device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:c9:18:27
-device ich9-ahci,id=sata
-drive id=ESP,if=none,format=qcow2,file=ESP.qcow2
-device ide-hd,bus=sata.2,drive=ESP
-drive id=InstallMedia,format=raw,if=none,file=BaseSystem.img
-device ide-hd,bus=sata.3,drive=InstallMedia
-drive id=SystemDisk,if=none,format=qcow2,file=macOS.qcow2
-device ide-hd,bus=sata.4,drive=SystemDisk \

GAMPR avatar Dec 28 '22 23:12 GAMPR

To anyone having this problem: check if the last line in your basic.sh has a \ character at the end, and if it does, try removing it, like -device ide-hd,bus=sata.4,drive=SystemDisk instead of -device ide-hd,bus=sata.4,drive=SystemDisk \

LOL

GAMPR avatar Dec 29 '22 12:12 GAMPR

Did you fix this? If so, you should consider closing this issue.

scyilk avatar Jun 30 '23 04:06 scyilk