Use staf/Stax to start a VMware Image

Source: Internet
Author: User

1. Installing staf + Stax on theserver

1.1. [Optional] If JVM not installed, need to install JVM first.

1.2. download the latest stafrelease from
Http://staf.sourceforge.net/getcurrent.php.

1.3. Download The Stax service from

Http://staf.sourceforge.net/getstax.php.

1.4. Install staf

1.5. Create a services folder in thestaf Install Folder, for example: C: \ staf \ Services.

1.6. Extract The Stax servicearchive (staxv3xx.zip or staxv3xx.tar) to .. \ staf \ Services. You shoshould now have a .. \ staf \ Services \ Stax folder.

1.7. Modify the staf. cfg file in .. staf \ bin to include the following lines:

SERVICE STAX LIBRARY JSTAF EXECUTE \
{STAF/Config/STAFRoot}/services/stax/STAX.jar OPTION J2=-Xmx384m
SERVICE EVENT LIBRARY JSTAF EXECUTE \
{STAF/Config/STAFRoot}/services/stax/STAFEvent.jar
SET MAXQUEUESIZE 10000

Explanation on the Internet

1. Service Stax library jstaf Execute
{Staf/config/stafroot}/services/Stax. Jar
Notify staf to load Stax. jar, that is, Stax service, with the name Stax (in this case, Stax is called Stax in the staf service list) at startup.
The passed parameter J2 =-xmx384m indicates to change the JVM stack size. If Stax encounters an outofmemory error, you need to adjust this parameter to increase the JVM stack size.
We recommend that you always specify this parameter when loading Stax and adjust the parameter size according to the system environment.

2. Service event library jstaf Execute
{Staf/config/stafroot}/services/Stax/stafevent. Jar
Notify staf to load stafevent. jar with the name event at startup.

3. To run Stax Monitor (the monitoring tool for Stax tasks) on the machine running Stax, you must set maxqueuesize to ensure that staxmonitor runs properly.

1.8. Restart stafproc

1.9. Run the following cmd to verifyinstallation:

staf local ping ping
staf local service list
staf local stax help

2. Installing staf on tew.achines

2.1. download the latest stafrelease from
Http://staf.sourceforge.net/getcurrent.php.

2.2. Install staf

2.3. configure trust levels. theTrust level of the Test Machines must set with trust level 5 for the Stax server. add the following lines to the staf. CFG filein the staf/bin folder on each test machine:

trust machine mystaxserver  level 5

 

3.How do I use staf and staxto boot and shutdown VMware images on my test machines?

{Ref: http://staf.sourceforge.net/current/STAFFAQ.htm#d0e724}

(The first two parts are completed, and the third part is to be supplemented)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.