Microsoft's licensing for clouds is also a pain in the arse. You (the cloud platform) have to pay for a full months license the moment an instance is created. The way it's structured you have some wriggle room, e.g. you have your placement algorithm land new instances on where Windows instances have already been in a given month, so you don't incur additional licenses (because the license "transfers"). It gets worse if you start wanting to do things like run SQL Servers, where it's the entire month license outright with no prorating, and it applies to a specific instance instead of the machine/VM slot.
Strangely enough, despite all the trends in the market, operating system vendors are determined to make it harder for people to pay them to use their stuff, rather than easier.
This is exactly how I would expect the licensing to work.
(Or if you're actually a corporation just buy a Mac.)
IMO their price gouging is ethically much worse than someone making a hackintosh and using it to enrich the MacOS software ecosystem.
And sued.
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.
Live by the walled garden die by the walled garden