Chapter 36
Administering and Running Applications in lx Branded Zones (Tasks)
This chapter contains material on running applications in an lx branded zone.
About Maintaining a Supported Configuration
When you installed a zone with a supported CentOS or Red Hat Enterprise Linux distribution, you created a supported zone. If you add packages from different versions to this zone, it is possible to create a branded zone that cannot be supported.
Upgrading the Distribution and Adding Packages
How to Upgrade a CentOS 3.x Distribution
You must be the zone administrator in the lx branded zone to perform this procedure.
Upgrade a CentOS 3.x distribution to a different version by using yum upgrade or up2date.
For instructions, see the documentation available at http://www.centos.org.
How to Upgrade a Red Hat 3.x Distribution
You must be the zone administrator in the lx branded zone to perform this procedure.
Update a Red Hat Enterprise Linux 3.x distribution to a different version by using up2date.
For instructions, see the documentation available at http://www.redhat.com.
How to Upgrade a Package
You must be the zone administrator in the lx branded zone to perform this procedure.
To update a package, use one of the following methods.
yum update package_name
rpm -U package_name
More Information
Using yum and rpm
yum:
The document Software Management with Yum includes a chapter on installing software from an isolated package. See http://fedora.redhat.com/docs/yum.
yum.conf(5)
yum(8)
rpm:
See How do I install or upgrade an RPM package? at http://kbase.redhat.com/faq/FAQ_35_198.shtm.
rpm(8)
How to Install an Application in an lx Branded Zone
Applications are installed as they are on a Linux system, by mounting the CD and running the installation program. This section covers a typical application installation in an lx branded zone.
Tip - If you know you will be using CDs or DVDs to install applications in an lx branded zone, add read-only access to CD or DVD media in the global zone when you initially configure the branded zone. See step 7 in How to Install MATLAB 7.2 Using CDs.
About MATLAB
MATLAB is a high-level language and interactive environment that enables you to perform computationally intensive tasks quickly. The product was developed by The MathWorks. See http://www.mathworks.com for more information.
How to Install MATLAB 7.2 Using CDs
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.
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.
If the Volume Management file system is not running in the global zone, start it.
global# svcadm volfs enable
Insert the media.
Check for media in the drive.
global# volcheck
Test whether the CD is automounted.
global# ls /cdrom
You will see a display similar to the following:
cdrom cdrom1 mathworks_2006a1
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
Reboot the non-global zone.
global# zoneadm -z lx-zone reboot
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 0 global running / native 1 lx-zone running /export/home/lx-zone lx
Log in to the lx zone.
global# zlogin lx-zone
Verify the CD-ROM mount.
lx-zone# ls /cdrom
You will see a display similar to this:
cdrom cdrom1 mathworks_2006a1
Create the license file as described in the MATLAB documentation.
Install the product as described in the product installation guide.
lx-zone# /mnt/install
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.
(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