Installing Matlab with Campus License on a virtual Linux OpenVZ container

Matlab handles campus licenses using the MAC address of the /dev/eth0 device.
An OpenVZ container, however, does not have a /dev/eth0 device
One can add a virtual eth0 interface by:

  1. shutting down the container machine
  2. Issuing the
    vzctl set VMID# --netif_add eth0 --save

    command replacing the “VMID# with container’s numerical ID number

  3. Restarting the container