IANAL, but as far as I understand, the OSX license essentially allows running it in whatever way you want, as long as it happens on Apple-approved hardware. Running in a VM is fine, as long as it actually happens on a real Mac.
Depending on how you look at it, the license is either "free" or "not that free, but actually comes with a computer to use it with"