Licensing from inside a virtual machine or hypervisor
Virtual machines (like VMWare, VirtualBox, Parallels, Xen, Microsoft Hyper-V, etc.) allow customers to copy a fully configured "machine" bit-for-bit and run these copies simultaneously on as many machines as a customer wants. With typical hardware-locked licensing, when a customer activates on a virtual machine then they can use your app over and over again on every virtual machine instance without paying for extra copies of your app (because the virtual machines "look" identical).
This article shows you how to sell licenses for each individual VM instance, by using TurboFloat, even if the virtual machines are copied bit-for-bit.
Use the latest version of TurboActivate
The first step is to use the latest version of TurboActivate in your app. If you're new to LimeLM, then the "Getting started with LimeLM" article is a good place to start. If you've used TurboActivate before and you've already integrated TurboActivate in your app, then get the latest version of TurboActivate on your API page.
Step 1. Disallow VM activations
After integrating the latest version of TurboActivate into your app, the way to get paid for every copy of your app is to disallow Virtual Machine activations. Why? Because for customers on virtual machines, you'll want them to use TurboFloat, which is specifically designed to handle virtual machines (among other things). More on this later.
Why disallow VM activations?
The reason you want to disallow virtual machine activations is that when a customer activates your software on a virtual machine, the "unique fingerprint" that TurboActivate uses is of the VM instance (and not the computer the VM is running on). Meaning, the customer can copy the virtual machine instance to another computer and TurboActivate will still see the VM's fingerprint and not the "base computer's" fingerprint.
In other words, if you let your customers activate your software on a virtual machine they can then copy that virtual machine as many times as they want.
There are a few cases where you might want to make exceptions and allow customers to be activated on virtual machines. Here are just a few cases where you might want to allow virtual machine activations:
For whatever reason you can't include TurboFloat (the floating licensing) in your product.
Your customer can't install on a physical machine:
A customer's computer is Mac OS X and your product is a Windows app. Thus their only option is to run your app inside a virtual machine.
If your app can be used on servers and the customer is running on a virtualized server (Amazon EC2, Linode, Rackspace, Xen hosted servers, etc.) and they don't have a publicly facing "hardware" (non-virtualized) server to run TurboFloat Server.
Allow / Disallow VM activations at the version level
When you create or edit a product or version in LimeLM you have the option of setting whether to allow virtual machine activations:
Set this value to whatever you want the "default" behavior to be for product keys.
Allow / Disallow VM activations at the product key level
You can override the default behavior set at the product / version level when you create or edit product keys:
The options for allowing or disallowing virtual machines on for each product key are as follows:
Default: This product key will always inherit the value set at the version level. Even if you change the version value later (e.g. from "allow VM activations" to "disallow VM activations") then the product keys with this "Default" setting will inherit this change immediately.
Disallow: This product key won't be allowed to be activated on virtual machines regardless of what the version default is set as.
Allow: This product key will be allowed to be activated on virtual machines regardless of what the version default is set as.
Step 2. Use floating licenses (TurboFloat)
The way to make money selling to customers who use virtual machines is to use TurboFloat. TurboFloat is designed to see the difference between virtual machines. So if you want to allow a customer to run your app on 1 concurrent machine at a time, then you can actually enforce it. Even if the customer copies a virtual machine bit-for-bit (thereby copying the "unique fingerprint" bit-for-bit) the customer will only be able to run your app on 1 copy of the VM instances.
The way you might implement this in your app is to use TurboActivate and TurboFloat together. For regular customers on real machines use TurboActivate, and for everyone else use TurboFloat. One way to do this is to use the
UseTrial(TA_DISALLOW_VM) function. And if it returns
TA_E_IN_VM then you can request a license lease from the TurboFloat Server (read more about how to do that in "Using TurboFloat").