Steps for defining a master virtual machine for Linux
Before you begin
About this task
These steps tell you how to define a master virtual machine that uses the default 2.2 GB space on a 3390-3 DASD. This procedure describes a directory entry for a guest on which you will install SLES 11 SP1.
In this procedure, you modify two DirMaint sample files, LINDFLT DIRECT and LINUX PROTODIR. LINDFLT DIRECT is a shared profile for all Linux systems and defines common definitions for all your Linux virtual servers. LINUX PROTODIR is designed to define unique characteristics of a virtual machine, such as the DASD definitions.
These sample files can be found on the 7VMDIR10 2C2 disk as LINDFLT SAMPDVH and LINUX SAMPDVH and should then be copied to the DIRMAINT 1DF disk as LINDFLT DIRECT and LINUX PROTODIR.
Procedure
Results
You know you are done when DirMaint tells you LINMSTR is created.
What to do next
- You might want to create additional prototypes (fn PROTODIR) for meeting differing processing requirements of your Linux virtual servers. You can use naming conventions that indicate the processing requirements satisfied by each prototype. For instance, you might want to create a small memory prototype (128 MB virtual machine called LINUX128), a medium memory prototype (256 MB virtual machine called LINUX256), and a large memory prototype (512 MB virtual machine called LINUX512), then create small, medium, and large master virtual machines, into which you can install the Linux operating system and appropriate application packages or middleware (the large master could have WebSphere®, for instance). Then, during the cloning process, you can select the master prototype that meets the needs of your clone.
- The LINUX PROTODIR consumes an entire 3390-3 volume.
To help slow the consumption of 3390-3 volumes, you can split the Linux file system into read-only
and read/write portions and share the read-only portion. You should
be familiar with Linux file
system usage practices before attempting to set up read-only portions
of the file system. To do this, you need to create a master Linux virtual server that can update
the minidisk to which other Linux virtual
servers are linked in read-only mode through the LINK command or LINK
directory statement. Note: There are important maintenance issues here: running Linux virtual servers do not get updates to the read-only disk until those servers are recycled. Also, a running Linux system linked to read-only disks might crash if those disks are updated while it is running. So, you need to develop a maintenance plan to determine how to update the read-only disk and when to recycle Linux virtual servers.