Part 10: Glassfish V3 Pet Catalog sample DEMO in VM Template - Clean and Convert

OpenSolaris 200906 JeOS Prototype was designed as PURE CLI enviroment providing main building stone for creation of Virtual Appliances or VM Templates

In this example I will DEMOnstrate creation of Evaluation type Virtual Appliance / VM Template which will leveradge OpenSolaris 200906 JeOS prototype and just in Dec/09 released Glassfish v3, Java EE 6 and Netbeans 6.8 with simple Java EE 6 demo. This entry is part of Virtual Appliances & OVF workshop.

New Glassfish V3 introduce an unique network repository based modular structure, so we can more easily create really simple initial DEMO setup which user can extend by installation more samples right from Glassfish V3 repository or from Netbeans GUI.


Step 6: Clean and Convert VM

Step 6a: Clean VMware - our primary development platform

2. Clean runtime files

[ruda@kutina-ws osol-0906-jeos-proto-gfv3-mysql-va-sample-vmware]# ls | tee
GFv3-MySQL-VA-Sample.nvram
GFv3-MySQL-VA-Sample-opt.vmdk
GFv3-MySQL-VA-Sample.vmdk
GFv3-MySQL-VA-Sample.vmx
GFv3-MySQL-VA-Sample.vmxf
vmware-0.log
vmware-1.log
vmware.log

Clean it to

GFv3-MySQL-VA-Sample-opt.vmdk
GFv3-MySQL-VA-Sample.vmx
instance.vmdk

2. Clean runtime info

In \*vmx file delete per instance generated infos:

[ruda@kutina-ws osol-0906-jeos-proto-gfv3-mysql-va-sample-vmware]# cat \*.vmx | egrep "uuid|Address"
ethernet0.generatedAddress = "00:0c:29:ab:c9:73"
uuid.location = "56 4d 7e c6 01 ef ec 56-6f d6 b5 1a 8a ab c9 73"
uuid.bios = "56 4d 7e c6 01 ef ec 56-6f d6 b5 1a 8a ab c9 73"
ethernet0.generatedAddressOffset = "0"

Step 6b: Generate VirtualBOX 3.x OVF format

OVF is most convenient way for use to distribute VM Templates / Virtual Appliances , unfortunately OVF 1.0 is not compatible across products, see

Here we will use a VirtualBox VMware HW compatibility mode feature

1. Use both VMDK disks and create a in VirtualBox? similar VM setup

  • Add disks

http://blogs.sun.com/VirtualGuru/resource/petsample/adddisk.JPG

  • Create VM config

http://blogs.sun.com/VirtualGuru/resource/petsample/vmconfig.JPG

  • Add description

http://blogs.sun.com/VirtualGuru/resource/petsample/adddescription.JPG

  • Export to OVF V1.0

Here you can add license and vendor is normally company (Here in DEMO I point to underling JeOS)

http://blogs.sun.com/VirtualGuru/resource/petsample/vaexport.JPG

Uff, VMDK disk have in OVF 611MB, GRRR, this default gzip compression is ....

Hint: OVF is a text XML file, you can edit infos directly in it with good editor.

Post a Comment:
  • HTML Syntax: NOT allowed
About

Hands-on experience with Virtualization

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today