![]() ![]() ![]() ![]() ![]() ![]() |
The following topics describe the procedures to create virtual WebLogic domains and also provide additional configuration information:
The Physical-to-Virtual (P2V) Domain Conversion utility for WebLogic helps simplify the conversion of WLS Managed Servers in a domain to WLS-VE instances in the hypervisor environment, as follows:
The P2V utility packages up the following WLS artifacts:
boot.properties
file from the /AdminServer
directory or create such a file from the user-specified name and password. It will also either copy/install the SSH public key when specified or set the password when this option is selected./servers
directory) for each server being virtualized.The P2V utility also generates start scripts in the domain directory on the launcher machine to complete the configuration and start the newly generated WLS-VE instances. A sample WLS-VE configuration is illustrated and described in the Configuration Overview.
Note: | If you are using an NFS share, you must configure any NFS connections after using the P2V utility to create a virtualized domain. |
Before attempting to configure and run WLS-VE, ensure the following:
Note: | If DHCP is used for the Administration Server, your network administrators must guarantee that the it gets a fixed IP from the DHCP server. |
ssh-keygen
. You should also review the Using the LiquidVM SSH Service documentation.
When you convert from a non-virtualized implementation of a WLS 10.0 MP1 domain to a WLS-VE domain, you may need to make some modifications to the domain’s configuration file (config.xml
) and/or application code to ensure successful operation.
Tip: | BEA recommends making a back-up copy of your entire domain, and then editing and using this copy when virtualizing your domain so your original domain remains intact. |
The P2V utility does not handle out-of-domain dependencies, such as referenced libraries, nor does it modify the WLS domain configuration file (config.xml
) or any other files under the domain directory. Therefore, any path references in the config.xml
that are valid only for the local physical machine must be modified with respect to the LVM file system path using the UNIX-style path convention, as follows:
./applications/myapp/myapp.jar
)In this case, the files must be present in the domain directory before the P2V utility is run to transfer the domain.
/usr/apps/myapp/myapp.jar
)
In this case, the P2V utility is not going to transfer the files to LVM file system. Instead, the files should be copied using a scp
or sftp
client after the LVM instance is created and then restarted in passive mode. See Copying Domain Artifacts Using the LiquidVM SSH Service.
If server instances that are to be virtualized use the ListenAddress
attribute (including the ListenAddress
attribute in any configured NetworkAccessPoint
), you must remove the address for those servers so that WLS automatically binds to the IP address of LVM.
If an application uses default values for the host in the WLST connect()
command, you will need to change it so that the hostname can be passed in.
The following steps explain how to use the P2V Domain Conversion utility to convert the physical WLS instances in the domain to WLS-VE instances in the hypervisor environment. You create one such instance for each Managed Server (and optionally the Administration Server) in the domain.
Complete details for creating WebLogic domains is provided in Creating WebLogic Domains Using the Configuration Wizard.
The P2V Domain Conversion utility launches.
BEA_HOME
\user_projects\domains
. At a minimum, the domain directory must contain a \config
directory with a config.xml
file. Note: | This option is only displayed if these credential are not stored in a boot identity file (boot.properties ) in the physical domain, specifically, in the Administration Server’s security directory (for example, domain\servers\AdminServer\security\boot-properties ). When you start the Administration Server, it refers to the boot identity file for the encrypted user credentials. WLS-VE does not provide an interactive prompt, so you cannot specify these credentials when the WLS-VE instance is booting. |
ssh-rsa
.Note: | When enabled, the same authentication will be installed on each virtual server. If you want to have different authentication keys or passwords on different virtual servers, you have to manually make those changes post-installation. |
Caution: If the SSH private key is somehow lost, there is no way to exchange the old key that is installed on the WLS-VE instance. For a workaround to this situation, see Installing a Real Password In Addition to a Public Key.
The Creating servers and generating scripts window displays the progress during the domain creation process. At this point, the ISO is being created, and then an SSH session is opened with the VMware server and the virtual servers and their corresponding start scripts are created.
When successful, you should see a message similar to the following:
Creating LVM WLS-AdminServer for WL server AdminServer
Started LVM. Waiting for SSH to start
Connecting to SSH server at172.23.80.102
on port 22
Copying server domain files and patches
Successfully created LVM WLS-AdminServer on esx.bea.com in demo_2 resource pool
Creating LVM WLS_MS1 for WL server MS1
Started LVM. Waiting for SSH to start
Connecting to SSH server at172.23.81.105
on port 22
Copying server domain files and patches
Successfully created LVM WLS_MS1 on esx.bea.com in demo_2 resource pool
Generating scripts for starting WebLogic servers
Generated scripts in C:\wls1001\user_projects\domains\dev_domain\virtual
As shown in Roadmap for Configuring a WLS-VE Domain, the next step in the process is to start new virtual servers using the WLS-VE start scripts generated by the P2V utility, as described in Run the P2V-Generated Start Scripts:
As shown in Roadmap for Configuring a WLS-VE Domain, the next step to complete the configuration process is to run the server start scripts in the /virtual
directory generated by the P2V utility, as shown in Table 5-3:
where DOMAIN_NAME
is the directory name of the domain that was selected for virtualization, typically BEA_HOME
\user_projects\domains\
DOMAIN_NAME
.
Initially, the scripts must be run from a command-line to complete the P2V configuration process, as follows:
DOMAIN_NAME
/virtual
directory containing the start scripts.Tip: | For domains with Managed Servers, start the Administration Server first, followed by the Managed Servers. This way the Managed Servers will obtain their domain configuration from the Administration Server. |
The startup scripts also call the commonVEStart.cmd
startup script in the /virtual
directory. Therefore, when you start a WLS-VE instance, LiquidVM boots (in active
mode) and simultaneously boots the associated server.
Note: | You can also start a LiquidVM instance in passive mode. In passive mode, only the LiquidVM services are started; the server is not started. For instructions about starting LiquidVM in passive mode, see Task 1: Start LiquidVM in Passive Mode. |
For more information about starting and stopping WLS-VE instances after the initial startup, see Starting and Stopping WLS-VE.
As shown in Roadmap for Configuring a WLS-VE Domain, the next step, if necessary, is to copy domain-related files to the local disk of the LVM instance on the ESX server using the SSH service provided by the LVM. For details, see Copying Domain Artifacts Using the LiquidVM SSH Service.
After you have created and started the new WLS-VE instances, you can copy any application files not stored in the domain directory (that is, referenced applications) to the instances using the SSH service provided with LiquidVM. This may be necessary because the P2V utility does not handle out-of-domain dependencies, such as referenced libraries.
Note: | BEA recommends that you follow these steps for each of the virtual servers that you created in your domain. |
For a description of all the P2V-generated start script parameters, see The P2V-Generated Start Script Properties.
To copy files to a virtual server using the LiquidVM SSH service, follow these tasks.
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 LVM_startMode=passive
option in the start script arguments and start LiquidVM as described in the following steps.
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. Note: | If LVM_SSH=on , the SSH server will be available in active mode as well as passive mode. |
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).
DOMAIN_NAME
\virtual\
directory, where DOMAIN_NAME
is the name of the directory in which you located the domain, typically BEA_HOME
\user_projects\domains\
DOMAIN_NAME
.
startADMIN.sh/cmd
or startManaged_nn.sh/cmd
, as described in Run the P2V-Generated Start Scripts, you enter the name of that start script at the prompt:
startAdmin.sh
(.cmd
on Windows)
startManaged_
nn
.sh
(.cmd
on Windows)
Output similar to the following is displayed in the Command Prompt window:
LVM_INFO: C:\wls1001\user_projects\domains\dev_domain\virtual\AdminServer_lvm_vmware.info
LVM_ARGS: name=WLS-AdminServer cwd=/domain cpus=1 memory=1024 diskSize=500 startMode=passive ssh=off ip=123.45.67.890 netMask=255.255.248.0 gateway=172.18.128.1 dns=10.40.0.86 networkDomainName=bea.com
CLASSPATH: :/bea/patch_wls1001/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/appliance/java/lib/tools.jar:/appliance/bea/weblogic/server/lib/weblogic_sp.jar:/appliance/bea/weblogic/server/lib/weblogic.jar:/appliance/bea/modules/features/weblogic.server.modules_10.0.1.0.jar:/appliance/bea/modules/features/com.bea.cie.common-plugin.launch_2.1.2.0.jar:/appliance/bea/weblogic/server/lib/webservices.jar:/appliance/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/appliance/bea/modules/net.sf.antcontrib_1.0b2.0/lib/ant-contrib.jar:/appliance/bea/weblogic/common/eval/pointbase/lib/pbclient51.jar:/appliance/bea/weblogic/server/lib/xqrl.jar:
JAVA_PROPERTIES: -Dbea.home=/bea -Dweblogic.Name=AdminServer -Dweblogic.ProductionModeEnabled=true -Dweblogic.management.discover=true
startMode=passive was requested but for that to work ssh must also be turned on.
Turning ssh on!
Starting WLS-AdminServer connect...lookup...configure...start...booting...
Initial log from LiquidVM instance follows:
--------------------------------------------
Baremetal hostname: "LVM14.BEA.COM" IP address: 123.45.67.890
LiquidVM R1.2.4.0-95617 (BareMetal 4.1.4.0-95612-24)
--------------------------------------------
See the console log-file for further data
LiquidVM IP-address: 123.45.67.890
Note: | If the IP was obtained via DHCP, make 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 Task 2: Copy the Files to the WLS-VE Instance. |
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.
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
.
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 necessary files. Note the following:
liquidvm
. LiquidVM is a single-process, single-user environment; only the user liquidvm
is supported. DOMAIN_NAME
directory, you can copy them anywhere in LVM file system. The only restrictions are that you cannot write under the /appliance
directory and you should not write under system directories (such as /etc
). You can write to directories such as /apps
or /usr/apps
. These directories are not present by default, but can be created using a scp
or sftp
session.DOMAIN_NAME
directory on the launcher machine to the /domain
directory inside the WLS-VE instance on the ESX server. (Do not create a DOMAIN_NAME
subdirectory under the /domain
directory on the WLS-VE instance; the files must be copied directly under the /domain
directory.) By default, /domain
is defined as the current working directory within the LiquidVM instance. You can shut down the LiquidVM instance using the VMware VI Client as follows:
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
.
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.
DOMAIN_NAME
/virtual/
directory and open the start script that you edited in Task 1: Start LiquidVM in Passive Mode.
startAdmin.sh
(.cmd
on Windows)
startManaged_
nn
.sh
(.cmd
on Windows)
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
.
In the General pane, the State field indicates Powered On.
Note: | The Powered On state does not always indicate active vs. passive mode. For active mode, the WLS main class will be executed, so the VMware console will show messages from WLS. |
As shown in Roadmap for Configuring a WLS-VE Domain, 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. See Starting and Stopping WLS-VE.
After using the P2V utility to convert a physical domain to a virtualized domain, you must manually configure any NFS connections. Before doing so, make sure that both your ordinary OS and your WLS-VE instance have access to the same NFS-share.
For details about generating a WebLogic 9.2 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 WLS-VE instance instead. |
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
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 WLS 10.0 for complete information on how to:
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 5-1 shows a snippet of the Administration Server start-up script, start
AdminServername
.sh/cmd
, with JAVA_OPTIONS=
highlighted.
@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”
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.
Deploy applications on WLS-VE the same way you deploy them on non-virtualized WLS. Application deployment generally involves the following tasks:
weblogic.Deployer
or the Administration ConsoleThese tasks are detailed in Deploying Applications on BEA WebLogic Server 10.0.
![]() ![]() ![]() |