You “can”, in a technical sense, but not legally—Apple’s licensing for macOS only allows it to be run on Apple hardware. (You can run a macOS domU on another OS’s hypervisor, but that hypervisor has to be running on a Mac.) This matters when you’re a corporation.
I don’t know about the legalities, but according to Apple you are only allowed to run macOS on real Mac hardware. Anything else is probably an EULA violation or something.
As an aside, in the script you link to is this line
> VBoxManage setextradata "${vm_name}" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
I think that’s Apple’s way of reminding you about their rules regarding host machines.
It's against Apple's T&Cs, though. If you're doing it at home by yourself, who cares. But a company that's interested in automated testing etc. isn't going to see it as an answer.
Get an old old old Mac pro from ages ago. Upgrade its motherboard. Then upgrade its RAM. Then upgrade its hard drive. Then upgrade its power supply. It will still be an "Apple-branded computer" because of its case. It will just have received a bunch of upgrades. Big "haha" to them.
(Or if you're actually a corporation just buy a Mac.)
Re:Amazon EC2 Mac Instances
by google234123 on Tuesday December 01, 2020 @01:10AM
(#25262849)
That sounds like a waste of time and money.
Definitely not a waste of money. Apple charges $1200+ for a soldered-in 4TB SSD that I can buy for $400 and upgrade in the future.
IMO their price gouging is ethically much worse than someone making a hackintosh and using it to enrich the MacOS software ecosystem.
Re:Amazon EC2 Mac Instances
by _underfl0w_ on Tuesday December 01, 2020 @01:52AM
(#25263047)
Shortcut: Build a hackintosh, then stick it in an Apple case. Profit.
Your legal department is going to be stoked when you try that at work.
They will never know if you don't tell them. Copenhagen interpretation -- if it isn't observable it doesn't exist.
Highly recommend not hiding legal issues from your company's lawyers. That's a good way to get fired.
And sued.
This works if you aren't successful. If you are, it will get out.
Re:Amazon EC2 Mac Instances
by cercatrova on Tuesday December 01, 2020 @12:32AM
(#25262640)
You can't really test apps if there's no graphics acceleration. If you want graphics acceleration, you'll need to run a macOS VM with GPU passthrough using virtio or Proxmox. I did that for a bit until I just gave up and bought a Mac.
You will get your Apple Developer account terminated if they ever find out.
Live by the walled garden die by the walled garden
If you're making an awesome app that many Mac users use and depend on, they would be stupid to terminate your dev account.
Re:Amazon EC2 Mac Instances
by ben-schaaf on Tuesday December 08, 2020 @10:11AM
(#25346162)
Epic Games would beg to differ...
Screw the walled garden. Build web apps.
https://github.com/myspaghetti/macos-virtualbox