Install License Manager on Virtual Machine
Install the network license manager on a virtual machine for use with Amazon® Web Services (AWS) or Azure® using a reference architecture. First, set up the license manager. Then, set up the machine running MATLAB®.
Set Up License Manager
In the security group for your cloud platform, allow inbound traffic to the ports used by your license manager. If you do not have a security group, create one. For more details, see these links:
Obtain a static MAC address, which is required for hosting the license manager in the cloud.
AWS: Use an Elastic Network Interface (ENI), which contains a static MAC address attribute. See Elastic Network Interfaces.
Azure: When you create a virtual network, the virtual network MAC address is retained even when the virtual machine is in the deallocated state. See Azure Virtual Network FAQ.
When you delete cloud resources, you also delete the static MAC address. Changing the static MAC address in MathWorks License Center is limited to four times per year.
If you previously activated a network license, deactivate that license. Otherwise, skip this step.
Go to License Center and click the license that you want to deactivate.
Go to the Install and Activate tab.
Click the Activation Label.
Click Deactivate.
Activate your network license using the static MAC address.
Click on the license to activate
Go to the Install and Activate tab.
Click Activate to Retrieve License File.
Under Host ID, enter static MAC address.
Click Continue when you have completed all fields.
Download the license file provided with activation onto the server machine in the folder
$MATLAB/licenses
, where$MATLAB
is your MATLAB root.Install the network license manager following the instructions in Install License Manager on License Server. Use the virtual machine instead of a license server. To improve connectivity, consider installing the license manager in the same virtual network as MATLAB.
Start the network license manager. See Start and Stop Network License Manager.
Set Up Virtual Machine Running MATLAB
These instructions assume you have already installed MATLAB on the virtual machine.
Disable online licensing.
On the client machine, find
license_info.xml
and rename it to something else. License files are generally located in$MATLAB/licenses
, where$MATLAB
is the MATLAB root.Create license file that points to the server.
Open the network license file (
license.dat
) on the server.Copy the
SERVER
line into a new text file.Beneath it, add
USE_SERVER
. The file should now look something like this:SERVER Server1 0123abcd0123 12345 USE_SERVER
Save the new text file as
network.lic
in folder$MATLAB/licenses
, where$MATLAB
is your MATLAB root.
Verify that the license is pointing to the server correctly by running MATLAB.