System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones

ProcedureHow to Install MATLAB 7.2 Using CDs

  1. Obtain the MATLAB 7.2 CDs .

    There are three CDs in the MATLAB/Simulink package. Only discs 1 and 3 are needed for a simple MATLAB installation.

  2. Create and install an lx branded zone as described in How to Configure, Verify, and Commit the lx Branded Zone and Installing and Booting lx Branded Zones.

  3. If the Volume Management file system is not running in the global zone, start it.


    global# svcadm volfs enable
    
  4. Insert the media.

  5. Check for media in the drive.


    global# volcheck
    
  6. Test whether the CD is automounted.


    global# ls /cdrom
    

    You will see a display similar to the following:


    cdrom   cdrom1   mathworks_2006a1
  7. Loopback mount the file system with the options ro,nodevices (read-only and no devices) in the non-global zone.


    global# zonecfg -z lx-zone
    zonecfg:lx-zone> add fs
    zonecfg:lx-zone:fs> set dir=/cdrom
    zonecfg:lx-zone:fs> set special=/cdrom
    zonecfg:lx-zone:fs> set type=lofs
    zonecfg:lx-zone:fs> add options [ro,nodevices]
    zonecfg:lx-zone:fs> end
    zonecfg:lx-zone> commit
    zonecfg:lx-zone> exit
    
  8. Reboot the non-global zone.


    global# zoneadm -z lx-zone reboot
    
  9. Use the zoneadm list command with the -v option to verify the status.


    global# zoneadm list -v
    

    You will see a display that is similar to the following:


    ID  NAME     STATUS       PATH                           BRAND      IP
     0  global   running      /                              native     shared
     1  lx-zone  running      /export/home/lx-zone           lx         shared
  10. Log in to the lx zone.


    global# zlogin lx-zone
    
  11. Verify the CD-ROM mount.


    lx-zone# ls /cdrom
    

    You will see a display similar to this:


    cdrom   cdrom1   mathworks_2006a1
  12. Create the license file as described in the MATLAB documentation.

  13. Install the product as described in the product installation guide.


    lx-zone# /mnt/install
    
  14. Exit the zone.


    lx-zone# exit
    

    Tip –

    You might want to retain the /cdrom file system in your non-global zone. The mount will always reflect the current contents of the CD-ROM drive, or an empty directory if the drive is empty.


  15. (Optional) If you want to remove the /cdrom file system from the non-global zone, use the following procedure.


    global# zonecfg -z lx-zone
    zonecfg:lx-zone> remove fs dir=/cdrom
    zonecfg:lx-zone> commit
    zonecfg:lx-zone> exit