I'm writing a program and want to protect it by associating a hardware id. However, virtual machines can be cloned.
How do I know whether the program is running in a virtual machine? Are there any methods that determine what a program run through virtualization?