geetcs
Level 4

Custom VM Pack creation

Hi,

I have followed following steps to create Custom VM Pack creation

1. tar -cf /mydir/vm.tar jre && compress vm.tar

Results : vm.tar.Z

2. create "vm.properties"
vm.platform=Linux
vm.platform.flavor=Linux Sus
vm.name=jre1.4
vm.exe.path=bin/java

3. Zip these two files up (vm.tar.Z and vm.properties) as vm.zip

4. Rename the vm.zip as vm.vm

But when I use as bundled JRE, it does not work.
Please suggest correct steps, if I have done wrongly.
Labels (1)
0 Kudos
7 Replies
jerome_IA
Level 9

From help files:

vm.platform.flavor =>use "Linux" (case sensitive)

--Jerome
0 Kudos
geetcs
Level 4

Changes done...still it does not work....
0 Kudos
jerome_IA
Level 9

Maybe just because vm.platform=Linux is wrong too, use 'unix' instead.

Check "VM Pack Properties" chapter in help files.

--Jerome
0 Kudos
tdfunk
Level 2

Just a question:

You're posting in the IA2011 forum, so I'm assuming you have IA2011. This version includes a VM Pack creation utility.

Have you tried using that utility?

One other note: the structure of the JRE directory and the name of the root directory both have specific requirements. I just created a series of 6u31 VM Packs using the VM Pack creation utility and it whined when I got to the Windows versions. Their JRE directory names where 'jre6' rather than 'jre'. When I renamed them to 'jre', the VM Pack creation utility was happy again.

Here's the kicker: I haven't been able to test the new VM Packs because I can't get IA to load my project files... (noted in a separate thread). So, in reality, I can't vouch for the accuracy of the VM Pack utility.
0 Kudos
geetcs
Level 4

tdfunk wrote:
Just a question:

You're posting in the IA2011 forum, so I'm assuming you have IA2011. This version includes a VM Pack creation utility.

Have you tried using that utility?

One other note: the structure of the JRE directory and the name of the root directory both have specific requirements. I just created a series of 6u31 VM Packs using the VM Pack creation utility and it whined when I got to the Windows versions. Their JRE directory names where 'jre6' rather than 'jre'. When I renamed them to 'jre', the VM Pack creation utility was happy again.

Here's the kicker: I haven't been able to test the new VM Packs because I can't get IA to load my project files... (noted in a separate thread). So, in reality, I can't vouch for the accuracy of the VM Pack utility.


I tried with Utility.....for Windows platform, I could do creation without any hitch...but for Unix platform, it just stuck without any progress status....so I had to fall back to manual steps...
0 Kudos
jmishra
Flexera
Flexera

Hi,

Please try the below Steps to create the VM pack Manually.

1. tar -zcvf vm.tar.Z jre/
2. Provide the permission
chmod 775
3.create "vm.properties"
vm.platform=unix
vm.platform.flavor=Linux
vm.name=SunJRE170_Linux32
vm.exe.path=bin/java
4. Again provide permission
chmod 775
5. Create a jar file from these two file (vm.tar.Z and vm.properties) as SunJRE170_Linux32.jar

6.Rename the SunJRE170_Linux32.jar file to SunJRE170_Linux32.vm

Hope it helps.
0 Kudos
geetcs
Level 4

jmishra wrote:
Hi,

Please try the below Steps to create the VM pack Manually.

1. tar -zcvf vm.tar.Z jre/
2. Provide the permission
chmod 775
3.create "vm.properties"
vm.platform=unix
vm.platform.flavor=Linux
vm.name=SunJRE170_Linux32
vm.exe.path=bin/java
4. Again provide permission
chmod 775
5. Create a jar file from these two file (vm.tar.Z and vm.properties) as SunJRE170_Linux32.jar

6.Rename the SunJRE170_Linux32.jar file to SunJRE170_Linux32.vm

Hope it helps.


Thanks Jayashree!!!, it works...
0 Kudos