Virtual Guru's Blog – Home of Virtualization Workshops

January 14, 2010

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

Filed under: glassfish, jeos, mysql, opensolaris, virtualbox, Virtualization, vmware — natiku @ 8:07 am

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 & Pack VMware – our primary development platform
      Step 6b: Generate VirtualBOX 3.x OVF format


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://virtguru.files.wordpress.com/2010/01/adddisk.jpg

  • Create VM config

http://virtguru.files.wordpress.com/2010/01/vmconfig.jpg

  • Add description

http://virtguru.files.wordpress.com/2010/01/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://virtguru.files.wordpress.com/2010/01/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.

About these ads

1 Comment »

  1. [...] Part 10: Glassfish V3 Pet Catalog sample DEMO in VM Template – Clean and Convert [...]

    Pingback by Virtual Appliances & OVF Workshop « Virtual Guru's Blog – Home of Virtualization Workshops — February 1, 2010 @ 4:05 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Shocking Blue Green Theme. Create a free website or blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: