Configuration and User Guide

     Previous  Next    Open TOC in new window    View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Creating and Copying WLS-VE Domains

To use WLS-VE, you need to create a WebLogic domain from the launcher machine, and then copy the domain and/or the servers to the virtual machine. A sample WLS-VE configuration is illustrated and described in Configuration Overview.

There are several ways that you can create domains and make them accessible to the virtual machine:

The following topics describe the procedures to create and copy WLS-VE domains, and also provide additional configuration information:

 


Before You Begin

Before attempting to configure and run WLS-VE, ensure the following:

 


Creating WLS-VE Domains Using the Configuration Wizard

Use the steps in the following procedure to create a WLS-VE domain and servers ("virtualized servers") using the Configuration Wizard. Complete details for creating WebLogic domains is provided in Creating WebLogic Domains Using the Configuration Wizard.

Note: The following procedure describes how to create a domain using the Configuration Wizard in graphical mode. If you start the wizard in console mode, equivalent prompts are provided in text format. Use the guidelines provided in the console prompts to create the domain using console mode.
  1. Start the domain Configuration Wizard on the launcher machine using one of the procedures described in Table 4-1.
  2. Table 4-1 Configuration Wizard Start-up Modes
    To start the Configuration Wizard in this mode . . .
    Do this . . .
    Graphical
    On the Windows desktop:
    • Select StartArrow symbol ProgramsArrow symbol BEA ProductsArrow symbol ToolsArrow symbol Configuration Wizard
    On Linux:
    1. Set the DISPLAY environment variable.
    2. Navigate to the /common/bin subdirectory of the WEBLOGIC_HOME directory (for example, /bea/weblogic92/common/bin)
    3. Enter ./config.sh
    Console
    1. Open a command-line shell and navigate to the \common\bin subdirectory of the WEBLOGIC_HOME directory (for example, c:\bea\weblogic92\common\bin).
    2. From the command-line, enter:
    3. ./config.sh -mode=console
      (or config.cmd -mode=console on Windows)

    The Configuration Wizard launches and displays the Welcome window.

  3. Select Create a new WebLogic domain and click Next.
  4. The Select Domain Source window is displayed.

  5. Select Generate a domain configured automatically to support the following BEA products and click Next.
  6. Note: The WebLogic Server and WebLogic Server VE Extension options are selected by default and cannot be unchecked. These components are required to create a WLS-VE domain.

    The Configure Administrator Username and Password window is displayed.

  7. Enter a username and password to be used by the WebLogic Administrator and click Next.
  8. These credentials are encrypted and stored in a boot identity file (boot.properties) in the domain directory. When you start the Administration Server, it refers to this file for user credentials. WLS-VE does not provide an interactive prompt, so you cannot specify credentials when the server is starting.

    The Configure Server Start Mode and JDK window is displayed.

  9. Select the startup mode for the domain and click Next.
  10. Note: You cannot select an alternate JDK. By default, the domain uses LiquidVM, which includes the JRockit JDK.

    The Customize Environment and Services Settings window is displayed.

  11. Do one of the following:
    • Select Yes to customize your domain configuration per the requirements of your implementation. Note the following:
      • If the Administration Server will use a fixed IP address, you need to enter it in the Listen address field of the Configure the Administration Server window. If you accept the default, All Local Addresses, DHCP assigns an IP address from the available network addresses.
      • If your configuration includes Managed Servers, you need to create them in the Configure Managed Servers window. For each Managed Server specify a name and, optionally, a listen address, listen port, SSL listen port, and whether SSL is enabled. If you accept the default, All Local Addresses, DHCP assigns an IP address from the available network addresses.
      • WLS-VE does not support the Node Manager, therefore there is no need to configure any Node Manager-related options.
    • Select No to accept the default settings defined in the domain source.
    • When you have completed defining your domain, click Next.

      The Create WebLogic Domain window is displayed.

  12. Enter a domain name and a location on the launcher machine in which to create the domain. The default location is BEA_HOME\user_projects\domains.
  13. Be sure to note the directory in which you created the domain and the names you assigned to the Managed Servers.

  14. Click Create.
  15. The Creating Domain window displays status messages during the domain creation process. When the process is complete, the new domain is ready for use.

    Note: If you are going to boot the Administration Server on a virtual machine, the Start Admin Server option on the Creating a Domain window should remain unchecked. However, if you are going to start the Administration Server on the launcher machine, you can select this option if you want to start the server immediately. For more information, see Running the Administration Server on a Standard OS.
  16. Click Done to exit the Configuration Wizard.

What's Next?

As shown in Roadmap for Installing and Configuring WLS-VE, the next step in the process is to edit the start scripts as described in Editing the Start Scripts:

 


Editing the Start Scripts

To start WLS-VE and LiquidVM, you need to provide start options to the LiquidVM launcher. When you create a WLS-VE domain using the Configuration Wizard, a start script containing a list of the options required to start WLS-VE on the virtual machine is created in the following directory:

where DOMAIN_NAME is the name of the directory in which you located the domain, typically BEA_HOME\user_projects\domains\DOMAIN_NAME.

Note: The bin/startWebLogic.cmd and startWebLogic.sh files are used to start a WLS instance on a standard OS and cannot be used to start a WLS-VE instance on a virtual machine.

Before starting WLS-VE or LiquidVM, you need to create copies of the startWLSVE script and edit the copies to define the properties for your configuration, or to start the LiquidVM in passive mode. To do so, follow these steps:

  1. In your local file system, navigate to DOMAIN_NAME/bin/and locate the startWLSVE.sh file (or .cmd on Windows).
  2. Create a copy of the start script for each server that you intend to start, as defined in Table 4-2.
  3. Table 4-2 Creating Start Scripts
    For . . .
    Do this . . .
    The Administration Server
    Make a copy of the startWLSVE script and rename it startWLSVE_Admin.sh (or .cmd).
    Each Managed Server
    Make separate copies of startWLSVE.sh (or .cmd) for each Managed Server in your configuration and name them startWLSVE_Managed_nn.sh (or .cmd), where nn is a sequential number identifying the individual Managed Server; for example, startWLSVE_Managed__01, startWLSVE_Managed__02, and so on.

    Note: To create a Managed Server in your WLS-VE domain, it is not enough to create a start script; you must also have created the Managed Server when you created the domain.

  4. Edit the start scripts startWLSVE_Admin.sh (or .cmd) and startWLSVE_Managed_nn.sh (or .cmd) by setting the properties required for your implementation. The start script properties are defined in the Table 4-3.
  5. Table 4-3 WLS-VE Start-up Options
    Property
    Description
    LVM_INFO
    The location of the bea.lvm.info file created by the LiquidVM Configuration Wizard on your local machine. This file contains the default settings for LiquidVM for your virtualization environment. By default, the bea.lvm.info file is created in your user home directory. If you change the location of the bea.lvm.info file, you must set this property to the new location. For more information about the bea.lvm.info file, see Understanding the bea.lvm.info File.
    SERVER_NAME
    Required for all servers.
    The name of the server to be started. In VMware, SERVER_NAME is called WLS-SERVER_NAME. You must set this property to correspond to the server name that you specified when you created the domain.
    LVM_IP_ADDRESS
    The IP address this LVM should use. If left unset, the LVM uses DHCP to dynamically obtain an IP address
    ADMIN_URL
    Required for Managed Servers.
    The listen address (host name or IP address) and port number of the Administration Server for the domain.
    This value must be set if you are configuring a Managed Server. For the Administration Server, ADMIN_URL must be left blank.
    LVM_CPUS
    The number of CPUs to use (1,2,...).
    LVM_MEMORY
    The amount of memory allocated to the virtual machine.
    LVM_DISKSIZE
    The size of the local disk allocated to the virtual machine. The default is defined in MB as 1024.
    For details about the LiquidVM local disk, see Using the Virtual Local Disk.
    LVM_NETMASK
    The subnet mask for your network. You need to set this value if you are not using DHCP or you are not using default settings for netmask. The default netmask is 255.255.255.0.
    LVM_GATEWAY
    The octet (###.###.###.###) for the gateway between your current network and the one you want to access. You need to set this value if you are not using DHCP or you are not using default settings for netmask. The standard gateway is the static IP address masked with the set netmask, with a 1 in the lowest octet; for example if the netmask is the standard 255.255.255.0 and the static IP is 172.23.80.102, then the default gateway is 172.23.80.1. If the netmask is 255.255.0.0 and the static IP address is the same (172.23.80.102), then the gateway is 172.23.0.1.
    LVM_DNS_SERVER
    The DNS server the LVM should use.
    LVM_DOMAIN_NAME
    The network domain name for the LVM instance.
    LVM_START_MODE
    Required if starting the server in passive mode.
    The mode in which to start the LiquidVM instance (active|passive).
    Passive mode allows you to start only the LVM services, included the SSH service. WLS is not started. Once the LVM is started in passive mode, you can log into the LVM instance using SSH and transfer files from the launcher machine, such as domains that you have created, to the local disk of the virtual machine. When you have finished transferring your files, you can restart the server.
    Active mode, the default, starts both LVM and WLS.
    LVM_SSH
    Determines whether the SSH service is to be used (on|off). The default is off. If you set LVM_START_MODE to passive, SSH is used by default.
    LVM_SSH_PUBLIC_KEY
    The local path to the SSH public key. Specify a value for this property if you are using public/private key authentication for the SSH service (recommended).
    LVM_WAIT_FOR_SSH
    Specifies whether the LiquidVM launcher should wait for the SSH-server to be up and running before the launcher returns (true|false). The default is false.
    LVM_SSH_UNSAFE_PASSWORD
    A clear-text password to be used to log into the LiquidVM instance over SSH. This password is not secure because it is stored in clear text. Do not use the unsafe password option in a production environment. BEA recommends that you use public/private key authentication.
    LVM_CONSOLE_LOG
    The path inside LiquidVM to the console log. The default is /domain/<WLS=SERVER_NAME.lvm.out.
    LVM_SYSLOG_RECEIVER
    A hostname or IP-address of a remote syslog receiver.
    BEA_HOME_MOUNT
    The NFS storage location for the BEA Home directory.
    BEA recommends that you use the local disk on the LVM instance. Generally, input and output with a local disk is faster and more secure than with a file server. Do not set this property if you are using the local disk on the LVM instance.
    WLS_DOMAIN_MOUNT
    The NFS storage location of the domain directory.
    BEA recommends that you use the local disk on the LVM instance. Generally, input and output with a local disk is faster and more secure than with a file server. Do not set this property if you are using the local disk on the LVM instance.
    TMP_MOUNT
    The NFS storage location for tmp files.
    BEA recommends that you use the local disk on the LVM instance. Generally, input and output with a local disk is faster and more secure than with a file server. Do not set this property if you are using the local disk on the LVM instance.
    PRODUCTION_MODE
    The mode in which the server is started. If this variable is set to true, the server starts in production mode; if set to false, the server starts in development mode.
    WLS_USER
    Required for Managed Servers.
    The username to be used by the WebLogic administrator to access WLS. This value is set by the domain Configuration Wizard in the boot.properties file and does not need to be set to start the Administration Server. To use the values specified in boot.properties, do not set this property.
    You must set this property in the Managed Server start scripts if you are running the Administration Server on a standard OS. For more information, see Running the Administration Server on a Standard OS.
    WLS_PW
    Required for Managed Servers.
    The password to be used by the WebLogic administrator to access WLS. This value is set by the domain Configuration Wizard in the boot.properties file. To use the values specified in boot.properties, do not set this property.
    You must set this property in the Managed Server start scripts if you are running the Administration Server on a standard OS. For more information, see Running the Administration Server on a Standard OS.
    PRE_CLASSPATH
    Classpath to prepend to the standard classpath.
    POST_CLASSPATH
    Classpath to append to the standard classpath.
    JAVA_OPTIONS
    Java options passed directly to the JVM. By default, the maximum Java heap size is set to Xmx256m.
    For more information about passing Java options to the JVM, see Tuning LiquidVM.
    JAVA_PROPERTIES
    Other Java properties on the form -Dproperty=val that will be passed straight to the JVM. This is similar to the JAVA_OPTIONS, but should only be used for properties. For example, to specify an alternate BEA Home directory on the virtual machine, set -Dbea.home=dir using this property.

    Note: The start scripts do not and should not include a path reference to the WLS classes. WLS-VE uses the WLS classes that are located in the WLS-VE ISO image.

What's Next?

As shown in Roadmap for Installing and Configuring WLS-VE, the next step in the process is to copy the domain using one of the following procedures:

 


Copying the Domain Using the LiquidVM SSH Service

After you have created the domain on the launcher machine, you can copy the domain to the virtual machine using the SSH service provided with LiquidVM.

Note: BEA recommends that you follow these steps for each of the servers that you created in your domain. However, if you choose not to copy the domain for Managed Servers, you can still start them on the VM from an empty domain as described in Starting Managed Servers.

To copy a domain using the LiquidVM SSH service, follow these steps.

Step 1: Start LiquidVM in Passive Mode

When you start LiquidVM in passive mode, only the LiquidVM services, including the SSH service, are started. To start LiquidVM in passive mode, you need to set the startMode=passive option in the launcher start arguments and start LiquidVM as described in the following steps.

  1. Modify the startWLSVE.cmd/sh start script for the LVM instance as described in Editing the Start Scripts.
  2. The following values are required:

    • SERVER_NAME—Specify the name of the server that you defined when you created the domain.
    • LVM_START_MODE—Set this parameter to passive to start LiquidVM in passive mode. The default is active mode. Note that when you set the start mode to passive, SSH is used by default.
    • Optionally, you can set the following values:

    • LVM_SSH—Set this parameter to on. SSH is required in passive mode. However, if you do not set this parameter, SSH is used by default.
    • LVM_IP_ADDRESS—If you specified an IP address for the server when you created the domain, enter it here. If you did not specify an IP address, do not define one for this parameter. If you leave it unset, LiquidVM uses DHCP to dynamically get an IP address.
    • LVM_SSH_PUBLIC_KEY—If you are using public/private key authentication (recommended), specify the local path to the SSH public key.
    • LVM_SSH_UNSAFE_PASSWORD—If you working in a development environment, you can provide a clear text password as an alternative to using public/private key authentication.
    • Note: Do not use the unsafe password option in a production environment.
      Note: If you do not specify any type of SSH authentication, a temporary password, valid for 300 seconds, is displayed in the LiquidVM Console window in the VI Client when you attempt to authenticate to the SSH service. You can use this time-limited password to login, but you need to change it immediately to a permanent, secure password by executing the passwd command.

      If you are starting an LVM instance for a Managed Server, verify that the ADMIN_URL is pointing to the IP address of the Administration Server (for the Administration Server, ADMIN_URL must be blank).

  3. Start LiquidVM in passive mode as follows:
    1. Navigate to the DOMAIN_NAME\bin\directory, where DOMAIN_NAME is the name of the directory in which you located the domain, typically BEA_HOME\user_projects\domains\DOMAIN_NAME.
    2. Execute the start command by entering the name of the server start script at the prompt. For example, if you named your start scripts startWLSVE_ADMIN.sh/cmd or startWLSVE_Managed_nn.sh/cmd as described in Editing the Start Scripts, you enter the name of that start script at the prompt:
    3. startWLSVE_Admin.sh (.cmd on Windows)

      or

      startWLSVE_Managed_nn.sh (.cmd on Windows)

      Output similar to the following is displayed in the Command Prompt window:

      LiquidVM instance name = WLS-AdminServer


      LVM_INFO = C:\Documents and Settings\myhome\bea.lvm.info
      #BareMetal ESX-launcher configuration information
      #Mon Jan 07 16:31:32 EST 2008
      vmwareUsername=user1
      vmwareDiskPath=[storage2] wlsve/wlsve.iso
      vmwareVcHost=vmwarevc.bea.com
      vmwareKeystore=C\:\\Documents and Settings\\myhome\\bm_vmwarevc.bea.com.keystore
      vmwarePassword=d90f1423925849c78e6dd9100d162f3f
      vmwareComputeResource=sthx6414.jrpg.bea.com
      vmwareKeystorePassword=07300ca783a0a3e92f8fc6121e2d14aa
      LiquidVM.config.version=5
      vmwareDatacenter=JRPG-BM

      ## LiquidVM configuration for instance: WLS-AdminServer
      name=WLS-AdminServer
      diskSize=1024
      startMode=passive
      ssh=on
      cwd=/domain
      mount=''

      JAVA_OPTIONS : -Xmx256m -Xverify:none
      WLS_CLASSPATH : :/bea/patch_weblogic922/profiles/default/sys_manifest_clas
      spath/weblogic_patch.jar:/appliance/java/lib/tools.jar:/appliance/bea/weblogic92
      /server/lib/weblogic.jar:/appliance/bea/weblogic92/server/lib/webservices.jar:
      LICENSE_DIR : /bea
      PRODUCTION_MODE :
      JAVA_PROPERTIES : -Dweblogic.management.discover=true


      Launching WLS-VE instance WLS-AdminServer ...
      Starting WLS-AdminServer connect...lookup...create...start...booting...
      Formatting new disk (may take some time)...
      Initial log from LiquidVM instance follows:
      --------------------------------------------
      Found empty mass storage device dev1, initializing filesystem
      MKFS block device dev1 (1040384k) |Baremetal hostname: "172.23.82.203" IP address: 123.45.67.890
      ..............................| Done
      LiquidVM R1.1.4.0-92759 (BareMetal 4.0.4.0-92746-229)
      --------------------------------------------
      See the console log-file for further data
      LiquidVM IP-address: 123.45.67.890
      Note: Be sure to take note of the LiquidVM IP address. You will need to provide it when you log into the SSH service, as described in Step 2: Copy the Domain to the Virtual Machine.

      By default, the LiquidVM output is recorded in \domain\WLS-servername.lvm.out, unless you have specified a different location using the LVM_CONSOLE_LOG property in the start script.

  4. Optionally, verify that the WLS-VE instance started in passive mode as follows:
    1. Log into the VMware VI Client.
    2. The server name, prefixed with WLS-, should be listed in the Host and Clusters list in the left navigation pane. For example, if you named your Admin Server QA_AdminServer, the name displayed in the navigation pane is WLS-QA_AdminServer.

    3. Select the server, and then select the Console tab. The console displays the IP address of the server, and the following message:
    4. INFO: LiquidVM SSH-Server running on port 22

Step 2: Copy the Domain to the Virtual Machine

Use an SSH-2 compatible file transfer client of your choice, such as scp or sftp, to login to the SSH service and transfer the domain. Note the following:

Note: Before you can start a WLS-VE instance, a valid license.bea file must be installed in the /bea directory of the virtual machine. By default, an evaluation license is provided in the ISO image and is copied to the /bea directory the first time the server is started. However, if you want to use a production license, you will need to copy it to the virtual machine. You can copy the production license file during this session, or at a later time. For more information, see Copying a Production License to the Virtual Machine.

Step 3: Shut Down the LiquidVM Instance

You can shut down the LiquidVM instance using the VMware VI Client as follows:

  1. If you have not already done so, log into the VMware VI Client.
  2. The server name, prefixed with WLS-, should be listed in the Host and Clusters list in the left navigation pane. For example, if you named your Admin Server QA_AdminServer, the name displayed in the navigation pane is WLS-QA_AdminServer.

  3. Select the server, and then select the Console tab.
  4. Click inside the Console window of the VI Client and press Ctrl-C.
  5. Note: When you click inside the Console window, most keys on your keyboard are disabled and your mouse pointer disappears. However, certain keyboard functions, including Ctrl-C still function.

For more information about using the VI Client, see Working with WLS-VE Using the VMware VI Client.

Step 4: Start the WLS-VE Instance

  1. In your local file system on the launcher machine, navigate to DOMAIN_NAME/bin/and open the start script that you edited in Step 1: Start LiquidVM in Passive Mode.
  2. Edit the following property in the start script and save the file:
    • LVM_START_MODE—Set this parameter to active to start the WLS-VE instance in active mode. In active mode, both the LVM services and the main WLS classes are started.
    • Note: To continue to use SSH in active mode, set the LVM_SSH parameter to on if you did not specifically set this parameter in passive mode.
  3. Execute the start command by entering the name of the server start script at the prompt; for example:
  4. startWLSVE_Admin.sh (.cmd on Windows)

    or

    startWLSVE_Managed_nn.sh (.cmd on Windows)

  5. Optionally, verify that the WLS-VE instance started as follows:
    1. Log into the VMware VI Client.
    2. The server name, prefixed with WLS-, should be listed in the left navigation pane. For example, if you named your Admin Server QA_AdminServer, the name displayed in the navigation pane is WLS-QA_AdminServer.

    3. Select the server, and then click the Summary tab.
    4. In the General pane, the State field indicates Powered On.

What's Next?

As shown in Roadmap for Installing and Configuring WLS-VE, after you have successfully started your WLS-VE instance from the command-line, you can start and stop the servers, and administer the WLS-VE environment as required.

 


Starting Managed Servers

If you have not copied the domain to the VM for each Managed Server as described in Copying the Domain Using the LiquidVM SSH Service, there is no domain configuration information on the WLS-VE instance for the Managed Server. In this case, you can start the Managed Server on the VM as described in this section and the Managed Server will obtain its domain configuration from the Administration Server. However, using this method is less secure because you need to specify the username and password for the Administration Server in clear text in your start script.

To start a Managed Server from an empty domain, follow these steps.

  1. As described in Editing the Start Scripts, create a Managed Server start script for each Managed Server in the domain using the startWLSVE.cmd/sh script as a template.
  2. Be sure to set the following values in the start script:

    • SERVER_NAME—Specify the name of the Managed Server that you defined when you created the domain.
    • ADMIN_URL—Specify the listen address (host name or IP address) and port number of the Administration Server for the domain.
    • WLS_USER—Specify the Administrator username. This value is required to log into the Administration Server.
    • WLS_PW—Specify the Administrator password. This value is required to log into the Administration Server.
    • Optionally, you can set the LVM_SSH parameter to on to use the SSH service.

  3. Start each Managed Server by entering the name of the server start script at the prompt. For example, if you named your start script startWLSVE_Managed_01.sh/cmd as described in Editing the Start Scripts, you enter the name of that start script at the prompt:
  4. When the server starts, it obtains its domain configuration information from the Administration Server.

 


Running the Administration Server on a Standard OS

An alternate approach to copying the domain to the virtual machine is create a domain that consists of an Administration Server and Managed Servers. You can then run the Administration Server on an ordinary OS and let the WLS built-in domain distribution mechanism send out the domain configuration to the WLS-VE instances for the Managed Servers. This method should be used only in development environments because it is less secure than using SSH.

To use this approach, do the following:

  1. Create the domain as described in Creating WLS-VE Domains Using the Configuration Wizard. Be sure to create at least one Managed Server.
  2. Start the WLS Administration Server for the domain on the launcher machine in one of the following ways:
    • While you are creating the domain, select Start Admin Server in the Creating a Domain window of the Configuration Wizard.
    • After the domain is created, navigate to the DOMAIN_NAME\bin\ directory, where DOMAIN_NAME is the name of the directory in which you located the domain, typically BEA_HOME\user_projects\domains\DOMAIN_NAME. Enter startWebLogic.cmd/sh at the prompt.
    • Note: In this case, you are using the startWebLogic.cmd/sh start script because you are starting the Administration Server on a standard OS on the launcher machine. The startWLSVE.cmd/sh scripts are used to start servers on the virtual machine.
  3. Using the startWLSVE.cmd/sh script as a template, create a Managed Server start script for each Managed Server in the domain as described in Editing the Start Scripts.
  4. Be sure to set the following values in the start script:

    • SERVER_NAME—Specify the name of the Managed Server that you defined when you created the domain.
    • ADMIN_URL—Specify the listen address (host name or IP address) and port number of the Administration Server for the domain.
    • WLS_USER—Specify the Administrator username. This value is required to log into the Administration Server.
    • WLS_PW—Specify the Administrator password. This value is required to log into the Administration Server.
    • Optionally, you can set the LVM_SSH parameter to on to use the SSH service.

  5. Start each Managed Server by entering the name of the server start script at the prompt. For example, if you named your start script startWLSVE_Managed_01.sh/cmd as described in Editing the Start Scripts, you enter the name of that start script at the prompt:
  6. When the WLS-VE instance boots up, it will automatically obtain its domain by contacting the Administration Server running on the standard OS.

The potential drawback of this approach is that you have to have a mixed environment with one non-virtualized WLS acting as the Administration Server.

What's Next?

As shown in Roadmap for Installing and Configuring WLS-VE, after you have successfully started your WLS-VE instance from the command-line, you can start and stop the servers, and administer the WLS-VE environment as required.

 


Generating the Domain to an NFS server

If both your ordinary OS and your WLS-VE instance have access to the same NFS-share, you can run the domain Configuration Wizard on the launcher machine, which is running a standard OS, and generate the domain to the NFS directory. When WLS-VE is started it will see and use the newly generated domain.

For details about generating a domain to an NFS share, see "Configuring and Starting WLS-VE Domains" in version 1.0 Installation and Configuration Guide.

Note: Creating a domain on an NFS share is less secure than using a local disk. BEA recommends using a local disk on the virtual machine instead.

 


Copying a Production License to the Virtual Machine

Before you can start a WLS-VE instance, a valid license.bea file must be installed in the /bea directory of the virtual machine. By default, an evaluation license is provided in the ISO image and is copied to the /bea directory the first time the server is started. To update the evaluation license with a production license, you need to copy the production license from the BEA Home directory on the launcher machine to the BEA Home directory, /bea, on the local disk of the WLS-VE instance.

Use the following procedure to copy a production license.bea file to the virtual machine:

  1. Edit the start script for the WLS-VE instance to start the LVM in passive mode as described in Step 1: Start LiquidVM in Passive Mode.
  2. Note that /bea is the default BEA Home directory on the virtual machine. If you want to use a directory other than /bea as the BEA Home directory, set it in the start script using the JAVA_PROPERTIES="-Dbea.home= dir" property.

  3. Use an SSH-2 compatible file transfer client of your choice to log into the SSH service. Note the following:
    • If you provided an SSH public key in the start script, you will be prompted to provide the private key to login to the SSH service.
    • Login as the user liquidvm. LiquidVM is a single-process, single-user environment; only the user liquidvm is supported.
  4. Copy the license.bea.file from the BEA Home directory on the local machine to the BEA Home directory, /bea by default, on the virtual machine. Note that the default working directory is /domain, so you will need to navigate to the /bea directory.
  5. Shut down the LVM instance as described in Step 3: Shut Down the LiquidVM Instance.

 


Upgrading and Promoting Domains

Generally, upgrading and promoting virtualized domains requires the same steps used for upgrading and promoting non-virtualized domains. The main steps in this process are:

  1. Plan the upgrade.
  2. In this step, you need to inventory the application environment, verify supported configuration information, review the compatibility information, and create an upgrade plan.

  3. Prepare to upgrade.
  4. In this step, you undeploy any deployed applications, shut down all servers in the application environment, back up the application environment, install any required BEA products, prepare the remote Managed Server domain directories, and set up the environment.

  5. Upgrade your application environment.
  6. Complete post-upgrade procedures.

For detailed instructions on these steps, see Upgrading WebLogic Application Environments.

Due to its virtualized nature, when you upgrade to WLS-VE, depending on your required upgrade scenario, you will need to modify the standard upgrade procedure to address important virtualization issues. The changes you need to make are described in the following sections.

Upgrade from a Non-virtualized WLS 9.2 to WLS-VE 9.2

When you upgrade an application from a non-virtualized implementation of WLS 9.2 to WLS-VE 9.2, you need to make some modifications to the application code to ensure successful operation.

Upgrade from an Earlier Version of WLS to WLS-VE 9.2

You cannot migrate an application directly from an earlier version of WLS (for example, version 8.1) directly to WLS-VE 9.2. Instead, you need to follow the upgrade procedures outlined in Upgrading WebLogic Application Environments.

Moving a WLS-VE Domain to a Production Environment

You use the same procedures to move a WLS-VE domain from a development environment to a production environment that you use for standard WLS domains. Ensuring your environment is secure is critical in a production environment. For important security recommendations, see Securing Your Production Environment.

 


Additional Configuration Tasks

Since WLS-VE contains both a JVM and a virtualized WLS instance, you can configure both devices by using the same configuration flags used by their non-virtualized editions. Usually, you can do this from the WLS Administration Console. Refer to System Administration for BEA WebLogic Server 9.2 for complete information on how to:

Tuning LiquidVM

The JVM should already be well-tuned for most WLS applications but you can configure and tune the Java behavior of a machine by setting the necessary Java options in the start-up script for the domain in question. Simply enter the standard J2SE start-up options or BEA JRockit's non-standard -X and -XX options at the JAVA_OPTIONS= statement.

Listing 4-1 shows a snippet of the Administration Server start-up script, startWLSVE.cmd, with JAVA_OPTIONS= highlighted.

Listing 4-1 startWLSVE.cmd Code Snippet
@ECHO OFF
SETLOCAL
.
.
.
set PRE_CLASSPATH=
set POST_CLASSPATH=
set JAVA_OPTIONS=
set JAVA_PROPERTIES=

For example, suppose you want to start the machine so that LiquidVM uses a garbage collector (that is, a memory management system) optimized for application throughput. You would do this by setting JAVA_OPTIONS as follows:

JAVA_OPTIONS="-xgcprio:throughput"

You can string together as many valid options as you need; however, you must place them within quotation marks and separate them with a single space. For example, the following code:

JAVA_OPTIONS="-xgcprio:throughput -xgcreport -Xss:512k"

tells the JVM to:

See the BEA JRockit Command Line Reference for a list of valid LiquidVM start-up options and instructions for using them. For LiquidVM tuning and configuration guidelines, see Profiling and Performance Tuning in the BEA JRockit Diagnostics Guide.

 


Deploying an Application to WLS-VE

Deploy applications on WLS-VE the same way you deploy them on non-virtualized WLS. Application deployment generally involves the following tasks:

These tasks are detailed in Deploying Applications on BEA WebLogic Server 9.2.


  Back to Top       Previous  Next