Skip Headers

Oracle® JRockit Virtual Edition User's Guide Release 2.0.0 Part Number E22518-01 |
Home | Contents | Contact Us

Previous | Next
| View PDF

# C.2 Sample Detailed Configuration File

This section shows the contents of the sample detailed configuration file, which you can generate by using the --create-full-config option of the Image Tool.

    <jrockitve-imagetool-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="jrockitve-imagetool-config.xsd" version="5.2">
    <jrockitve-filesystem-imports>
        <copy from="path_to_java_application_dir"/>
        <copy from="/installs/*install3*/*"/>
        <copy from="/share/temp/data/*" todir="/data"/>
        <copy from="/tmp/my.dat" tofile="/data/THEVERSION"/>
      </jrockitve-filesystem-imports>
      <jrockitve-config memory="1 GB" cpus="4">
        <storage>
          <disks>
            <disk id="root" size="256 MB"/>
          </disks>
          <mounts>
            <mount>
              <mount-point>/</mount-point>
              <disk>root</disk>
            </mount>
            <mount type="nfs">
              <mount-point>/test</mount-point>
              <options>
                <option>uid=513</option>
                <option>gid=503</option>
              </options>
              <server-path>/temp/user/testdir</server-path>
              <server>us.mycompany.com</server>
            </mount>
          </mounts>
        </storage>
        <vm-name>default-vm</vm-name>
        <working-dir>/application/myworkdir/</working-dir>
        <java-arguments>-cp $JAVA_HOME/lib/tools.jar:. -Xmx128m -jar MyApp.jar arg0 arg1 arg2</java-arguments>
        <kernel-arguments>
          <entry key="logLog" value="all"/>
          <entry key="netTcpTtl" value="20"/>
        </kernel-arguments>
        <console-log-path>/test/mylog.log</console-log-path>
        <network>
          <dns>
            <static-hosts>
              <hosts ip="192.168.1.34">
                <host>myhost</host>
              </hosts>
              <hosts ip="10.0.1.56">
                <host>one.myhost1.com</host>
                <host>two.myhost1.com</host>
              </hosts>
            </static-hosts>
            <server-order>
              <server ip="172.22.17.100"/>
              <server ip="192.168.1.2"/>
            </server-order>
            <lookup-order>
              <name suffix="us.host.com"/>
              <name suffix="in.host.com"/>
            </lookup-order>
          </dns>
          <nics>
            <nic network="eth0" type="nat">
              <ip>172.23.22.22</ip>
              <netmask>255.255.255.0</netmask>
              <mac>12:ab:34:cd:56:ef</mac>
            </nic>
            <nic network="eth1" type="bridged"/>
          </nics>
          <routes>
            <route>
               <mtu>1500</mtu>
               <gateway>173.23.22.1</gateway>
               <nic>nic0</nic>
            </route>
            <route>
               <mtu>1500</mtu>
               <destination-ip>10.161.184.0</destination-ip>
               <netmask>255.255.0.0</netmask>
               <nic>nic0</nic>
            </route>
          </routes>
          <hostname>example</hostname>
        </network>
        <locale-data>
          <locale>en_UK</locale>
          <timezone>Europe/London</timezone>
          <encoding>ISO-8859-1</encoding>
        </locale-data>
      </jrockitve-config>
      <jrockitve-binary-url>ftp://host.com/jrockitve.bin</jrockitve-binary-url>
    </jrockitve-imagetool-config>