Creating MRLs

To create an MRL using the Import Media tool:

  1. Log into the Software Repository (Slice Component bundle) host as root.
  2. Change to the following directory:

    /opt/opsware/mm_wordbot/util

  3. Ensure that you have the correct path to the directory where you uploaded the operating system media on the OS Media Server.

    Run the following import_media script:

    ./import_media [options] <network path>

    For example, to import Windows Server 2003 operating system media from an SMB share named OSMEDIA on the server mediasrv, enter:

    import_media smb://mediasrv/OSMEDIA/WINNT/SERVER/I386

    For example, to import Windows Server 2008 R2 x64 operating system media from and SMB share named OSMEDIA on the server mediasrv, enter:mkdir <tmp_dir>

    mount -t udf -o loop,ro w2k8r2sp1.iso <tmp_dir>

    cd <tmp_dir> && tar cf - . | (cd /media/opsware/windows/w2k8sp1.r2 && tar xvf -)

    import_media smb://mediasrv/OSMEDIA/w2k8sp1.r2

    umount <tmp_dir>; rmdir <tmp_dir>

    To import Linux (or VMware ESX) media from an NFS server named mediaserver.company.com, enter:

    import_media nfs://mediaserver.company.com/export/media/redhat/7.2

    To import Solaris media from an NFS server named mediaserver.company.com, enter:

    import_media nfs://mediaserver.company.com/export/media/solaris/sol-10-u8-sparc

    To import Solaris 11 SPARC media from a NFS server:

    import_media nfs://mediaserver.company.com/export/media/solaris/solaris11_repo/repo

    To import Solaris 11 x86 media from a NFS server:

    The Solaris 11 repository is detected by default as Solaris 11 SPARC media. Therefore, to use this repository to provision a Solaris 11 X86 server, you must run import_media with --platform="SunOS 5.11 X86" parameter.

    import_media --platform="SunOS 5.11 X86" nfs://mediaserver.company.com/export/media/solaris/solaris11_link/repo

    Unless otherwise specified, the default folder location for uploaded software packages is in the form /Package Repository/OS Media/<Platform Name>, where <Platform Name> is the (full) SA name for the platform detected in the media being imported. If the folder does not exist, then it is created. To manually specify a folder location, use the --folder option.

    Running the Import Media tool writes progress to the log file import_media.log. The log file is located on the server where you are running the Import Media tool script in the directory from which you invoke the script.

    For information on the command line options for the Import Media tool, see Import Media Tool syntax and options.