Creating VMware ESX Server Templates


VMware Template Clone to Template and Convert into Template

It’s been a cumbersome activity to create new virtual machines with the software stack installed and configured properly. You can always use tools like KickStart to automatically install the operating system and then install other software as needed.

Configurations of specific application is a complex activity since it may involve manual activity of database configuration or application configuration.

Solution introduced by VMware

Template: a pre-developed VM used to make new VM with a similar Software Stack, Configurations.

VMware ESX Server templates can be a time-saving for virtualization administrators as they allow you to clone, convert(Live VMs) and deploy virtual machines.

You can pick and configure every piece of software you will need into a template, and clone it to new instances whenever needed. It’s not only easier but also much faster.

Convert To Template

Offline Machine

It can be “Clone to Template” and “Converted into Template”.

VMware ESXi - Convert to Template

VMware ESXi – Convert to Template

Clone to Template

VMware ESXi - Clone to Template

VMware ESXi – Clone to Template

VMware ESXi - Clone to Template - Name and Location

VMware ESXi – Clone to Template – Name and Location

VMware ESXi - Clone to Template - Host and Cluster

VMware ESXi – Clone to Template – Host and Cluster

VMware ESXi - Clone to Template - Database

VMware ESXi – Clone to Template – Database

VMware ESXi - Clone to Template - Disk Format

VMware ESXi – Clone to Template – Disk Format

VMware ESXi - Clone to Template - Summary

VMware ESXi – Clone to Template – Summary

Live Virtual Machine

Live VM can only be “Clone to Template”; it cannot be Converted into Template.

Convert Template into VM

Select a Template->Right Click-> Convert to a Virtual Machine

VMware ESXi - Convert Template into VM - Host and Cluster

VMware ESXi – Convert Template into VM – Host and Cluster

VMware ESXi - Convert Template into VM - Resource Pool

VMware ESXi – Convert Template into VM – Resource Pool

VMware ESXi - Convert Template into VM - Summary

VMware ESXi – Convert Template into VM – Summary

Related articles

MySQL-Executing SQL Statements from a .sql File


MySQL-Executing SQL Statements from a .sql File

However, it is also possible to put your SQL statements in a file and then tell mysql to read its input from that file.

If you are already running mysql, you can execute an SQL script file using the source command or . command:

mysql> source file_name
mysql> . file_name
Executing SQL Statements from a .sql File with source command

Executing SQL Statements from a .sql File with source command

Done!!!

References:

http://dev.mysql.com/doc/refman/5.0/en/batch-commands.html
Related articles

View My Profile on Cloudbook.net

CloudSwing-Flexible PaaS (Sample Application Deployment Demo)


Related Blogs:

What is PaaS?

CloudBees~ Java Platform as a Service (Sample Application Deployment Process)

CloudSwing-Flexible Platform as a Service

CloudSwing is a Cloud within a Cloud; Its a PaaS available as a SaaS 🙂 Bit complicated as we hear it but extremely easy when we really understand it.

Its a Completely Flexible PaaS solution with a pre-build templates for various stacks.

Available Platforms:

On top of it, Flexibility will drive the user crazy since user can use Open-source and proprietary software as component and use it easily.

Application Monitoring:

CloudSwing also helps you manage and monitor all of your applications across multiple clouds. OpenLogic has partnered with New Relic to provide application monitoring within CloudSwing. New Relic monitoring agents which are by default installed on pre-built stack,  collect information about the performance of your applications, but do not collect any identifiable data processed by or stored in your application.

Supported Public Clouds:

  • AWS
  • Rackspace
  • Windows Azure (In Rodmap)
  • Private Clouds (In Roadmap)
  • User can use his private Cloud account as well.

Free Plan:

Up to 3 members and deploy up to 5 concurrent applications.

When you are done using your deployed applications, you will want to make sure you Stop the application to avoid using up your cloud time. Go to the Applications page, click the Application and click Stop to shut it down.

Let’s Deploy a Sample Application of Struts-Spring-Hibernate with Tomcat Stack.

1) 1 Step Registration and You are on the way to the CloudSwing Journy.

Registration for CloudSwing PaaS

Registration for CloudSwing PaaS

2) Dashboard, Click on the New Application

CloudSwing PaaS Dashboard

CloudSwing PaaS Dashboard

3) Click on the START.

CloudSwing Services

CloudSwing Services

4) Select the appropriate technology STACK.

CloudSwing - Select a Platform - Tomcat

CloudSwing – Select a Platform – Tomcat

CloudSwing - Select a Platform - Tomcat -verify details

CloudSwing – Select a Platform – Tomcat -verify details

5) Verify the Components in the pre-built stack and ADD new if required.

CloudSwing - customize the tomcat platform

CloudSwing – customize the tomcat platform

6) Select a Public Cloud on which you want to deploy your sample application.

CloudSwing - Select Publci Cloud to deploy an application

CloudSwing – Select Publci Cloud to deploy an application

7) Select appropriate Configurations as required for the Application

CloudSwing - Select Public Cloud Select Server Configuration

CloudSwing – Select Public Cloud Select Server Configuration

8) Verify the Instance Details and Click on LAUNCH!

CloudSwing - Launch the instance

CloudSwing – Launch the instance

9) If any Additional components have been added and you want to save that CUSTOM stack then you can Save the Private Stack as well.

CloudSwing - instance allocation

CloudSwing – instance allocation

10) Once the Instance is ready You get the IP Address and SSH Private Key (.PEM)

CloudSwing - instance details

CloudSwing – instance details

CloudSwing - Default Tomcat Page information

CloudSwing – Default Tomcat Page information

11) Verify the Tomcat.

CloudSwing - Tomcat Page verification

CloudSwing – Tomcat Page verification

12) PuTTY’s Key Generator is broken into three main functions: generating, importing, and exporting keys. If you will be receiving a key from another source, you will import the key into the PuTTY Key Generator and then export a PuTTY key for use with the PuTTY applications.

CloudSwing - Import SSH key into PUTTYZen

CloudSwing – Import SSH key into PUTTYZen

13) Download WINSCP

WinSCP (Windows Secure CoPy) is a free and open source SFTP, SCP, and FTP client for Microsoft Windows. Its main function is secure file transfer between a local and a remote computer. Beyond this, WinSCP offers basic file manager and file synchronization functionality. For secure transfers, it uses Secure Shell (SSH) and supports the SCP protocol in addition to SFTP.

Download WinSCP

Download WinSCP

14) Use Imported Key; Username and Password Ubuntu to login into the instance.

Login into the Tocat Server with the use of Key, Uname and password

Login into the Tocat Server with the use of Key, Uname and password

15) Copy the Application from the Local system to Remote.

Copy war file from the local system to CloudSwing Remote Server

Copy war file from the local system to CloudSwing Remote Server

Copy war file from the local system to CloudSwing Remote Server

Copy war file from the local system to CloudSwing Remote Server

16) If you can’t copy the files and get Permission related. errors then Give permission to destination directory with Recursion attribute and try again.

Permissions in Ubuntu

Permissions in Ubuntu

17) While dealing with MySQL, if you get permission related error then give proper rights to the location where data file is available.

Then Create a DB and RUN an SQL Script.

Create Database with the use of .sql script

Create Database with the use of .sql script

19) Change the Database related configurations in the configuration fileof DB (Host, Username, Password, Port) and RESTART tomcat

Change the Database related Properties in Application Configuration

Change the Database related Properties in Application Configuration

20) Done!!!

Sample Application on CloudSwing

Sample Application on CloudSwing

Example of—————-.pem

—–BEGIN RSA PRIVATE KEY—–
MIIEpQIBAAKCAQEAjc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X1lfKnnSqhMflGk7gvpBL6IMOhUgf3TPYfSkorG5JgPbbjLxP
ft+PEgI+7lIcVe+fhiGHFfMEOrm1jRGoElr1EtQ/xqEbBS4NgmXHb6Hmh4B5dl/W8T28ka9Kin2c
d3t9uyNJpsSvPoVc+ZSvXIECgYEApMSELwWdt6dnCdLoZNm5K9LGVgAGNt+3vK1aWC2P5RMMf1Yc
CGsKzcRyQZ8g8sY/zP2khQ8i09eQb5QQgx/LGig+HJO7F9toTo5l5xzeWPX82C3BuLmAbrF1JH57
JeyAYKFbWqy8fg5KPQGLGmxiTxJF3EdET26MbkKmaMzrFSkCgYEApjZNABx3tOSWE1i5lmWdeHma
gbktKgpSxQYLpWYlNgbsp5llOLOLdhH1wR38PbMdqoOuDf3FBTz10c0VJ43ScFm3u+t3Chhn9500
iHd1/gHz/mClr4rpPnRdZKvp1kYXljvl00J3gpPFcIEKxPJcLzlks03J6dLoKgBEnTUtp5o=
—–END RSA PRIVATE KEY—–

Example of—————-CS.ppk

PuTTY-User-Key-File-2: ssh-rsa
Encryption: none
Comment: imported-openssh-key
Public-Lines: 6
AAAAB3NzaC1yc2EAAAADAQABAAABAQCNwaP3w8gldxAzTxOqu4XIi6X6n1NPIQzv
dRHvgW9FqrzAfbYA8jAj0+TzL1lwNoBwtYLs3wTvPHxgIdKXRZ/ME1Z7Gzt2Bkwf
fVRkhoahpGUNhPoZ1/q+Gn+iEcPzyRONp7iddR4O4ryos1ecMK3iO8W+dBeOYZji
yVNx2+VuoVpkb8mvRLgWc8tZXe6KKTB1/C1xdC2np+ves0Avn1E/+AQDX9QBUK8l
iyhr0ZAaiJrFMmh2Rqzvv+hpqtkMX5l5hPSH7OZHSFRNQF/kj+C+lvSMmrwrOxCj
Qn3cymKNlTKcufyb6xrca+unUr7HGciNpLv5yf99relIRK12+iQt
Private-Lines: 14
AAABAFKf1mmYxPUJY/j0E3uFV6Ifu3vMF+vcUMTV0MFwCSJrNR9hZo9AmsyXOjCA
nbnpGo4XThuwlhi3gasqq6ueWljBwLt6kPrnCsGj9GevfZOD1Z6+rmQX3j+mBFS7
1CIpRmtfohys4fs9L0eJWPxh50ghHM44rm4/9rPhMvD/gcgsBvKJUgygNineWBEa
PsU/qo36VPR4EdvFP9XWrSvEFNOT+marzRNkCTWTW0UZxtskcvX7uI4k4b32QJEz
2xO7OdsdEjb7WJxq7SZbVC0UTDbsLJjfxlu9PHYXYxgipM1e6kTmy+5vkEfrrSAl
czptEwVgNioLWbB48550WH0qTIEAAACBANJKLOeo3HuLqnedzXZe9WDsW21Sh4Ky
qxpS3Yu7Zap1CmZlG6PQWv8F+glU0M5k8lLRqMDSygHANZtSpXEw8015A8DjQYOR
4wFB/Ge48yB9faiMDpCI2nvmRE7QtbuVdL4qpGFpwuCZw840IygBSEA/nGbpfs97
yXr2AtexFpyhAAAAgQCskdhtrt4B9+TnuyWQYrQMx9ImRShkPcEg9GKix04YNx9b
L6jNolNhjfzdz9ES9IOu2o5Ey6QTYrAhAm42YYJxNTG+Xni8jAyTeQKVZ2wWb/EA
pAOYEKn2up8a2Dls1N00i7RpdDnxM47V80CdltgLJY1s4vrQtbIj8waNQbYwDQAA
AIEApjZNABx3tOSWE1i5lmWdeHmagbktKgpSxQYLpWYlNgbsp5llOLOLdhH1wR38
PbMdqoOuDf3FBTz10c0VJ43ScFm3u+t3Chhn9500iHd1/gHz/mClr4rpPnRdZKvp
1kYXljvl00J3gpPFcIEKxPJcLzlks03J6dLoKgBEnTUtp5o=
Private-MAC: ee593a11e05d0aa146ebbb524167437f7a25190a
Related articles

Install Ubuntu 10.04.3 LTS (Lucid Lynx) Guest OS on VMware ESXi


Install Ubuntu 10.04.3 LTS (Lucid Lynx) Guest OS on VMware ESXi

Please Visit:

VMware: Installing a Guest Operating System (Windows 2008 R2 64bit) on Virtual Machine

Use Ubuntu ISO Image insted of Windows

Click on Install Ubuntu x.x

Install Ubuntu 10.04.3 LTS (Lucid Lynx) - Select Language

Install Ubuntu 10.04.3 LTS (Lucid Lynx) – Select Language

Select Region and Timezone

Install Ubuntu 10.04.3 LTS (Lucid Lynx) - Select Location

Install Ubuntu 10.04.3 LTS (Lucid Lynx) – Select Location

Select Keyboard Layout

Install Ubuntu 10.04.3 LTS (Lucid Lynx) - Select Keyboard Layout

Install Ubuntu 10.04.3 LTS (Lucid Lynx) – Select Keyboard Layout

Prepare Disk Space

Install Ubuntu 10.04.3 LTS (Lucid Lynx) - Prepare Disk Space

Install Ubuntu 10.04.3 LTS (Lucid Lynx) – Prepare Disk Space

Account Credentials

Install Ubuntu 10.04.3 LTS (Lucid Lynx) - Account Credentials

Install Ubuntu 10.04.3 LTS (Lucid Lynx) – Account Credentials

Summary

Install Ubuntu 10.04.3 LTS (Lucid Lynx) - Installation Summary

Install Ubuntu 10.04.3 LTS (Lucid Lynx) – Installation Summary

Installation of Ubuntu….

Install Ubuntu 10.04.3 LTS (Lucid Lynx) - Installation of Ubuntu

Install Ubuntu 10.04.3 LTS (Lucid Lynx) – Installation of Ubuntu

Install Ubuntu 10.04.3 LTS (Lucid Lynx) - Installation of Ubuntu 1

Install Ubuntu 10.04.3 LTS (Lucid Lynx) – Installation of Ubuntu

Install Ubuntu 10.04.3 LTS (Lucid Lynx) - Installation Complete

Install Ubuntu 10.04.3 LTS (Lucid Lynx) – Installation Complete

Done!!!

Getting Started with Ubuntu 10.10

A Complete Beginner’s Manual for Ubuntu 10.04 (Lucid Lynx)

Ubuntu: An Absolute Beginners Guide:

The Incredible Guide to NEW Ubuntu (Karmic Koala)

Old Computer, New Life: Restoring Old Hardware With Ubuntu

Computer Inside Your Computer: How To Use VirtualBox:

Install phpMyAdmin on Ubuntu 11.10 or 11.04 or 10.10 or 10.04 LTS


 

Install phpMyAdmin on Ubuntu 11.10 or Ubuntu 11.04 or Ubuntu 10.10 or Ubuntu 10.04 LTS

Install phpMyAdmin on Ubuntu 11.10 or 11.04 or 10.10 or 10.04 LTS

phpMyAdmin is an open source tool written in PHP intended to handle the administration of MySQL with the use of a Web browser. It can perform various tasks such as creating, modifying or deleting databases, tables, fields or rows; executing SQL statements; or managing users and permissions.

Features:

  1. Web interface
  2. MySQL database management
  3. Import data from CSV and SQL
  4. Export data to various formats: CSV, SQL, XML, PDF (via the TCPDF library), ISO/IEC 26300 – OpenDocument Text and Spreadsheet, Word, Excel, LaTeX and others
  5. Administering multiple servers
  6. Creating PDF graphics of the database layout
  7. Creating complex queries using Query-by-example (QBE)
  8. Searching globally in a database or a subset of it
  9. Transforming stored data into any format using a set of predefined functions, like displaying BLOB-data as image or download-link
  10. Active query monitor (Processes)

How to install it?

Update the UBUNTU Machine

Upgrade Ubuntu Packages

Upgrade Ubuntu Packages

Upgrade Ubuntu Packages

Upgrade Ubuntu Packages

Install phpMyAdmin

install phpMyAdmin

install phpMyAdmin

Done!!!

Getting Started with Ubuntu 10.10

A Complete Beginner’s Manual for Ubuntu 10.04 (Lucid Lynx)

Ubuntu: An Absolute Beginners Guide:

The Incredible Guide to NEW Ubuntu (Karmic Koala)

Old Computer, New Life: Restoring Old Hardware With Ubuntu

Computer Inside Your Computer: How To Use VirtualBox:

Related articles

 

Install PHP 5 on Ubuntu 11.10 or 11.04 or 10.10 or 10.04 LTS


 

Install PHP 5 on Ubuntu 11.10 or Ubuntu 11.04 or Ubuntu 10.10 or Ubuntu 10.04 LTS

PHP is a general-purpose server-side scripting language originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document. It also has evolved to include a command-line interface capability and can be used in standalone graphical applications.

PHP was originally created by Rasmus Lerdorf in 1995. The main implementation of PHP is now produced by The PHP Group and serves as the de facto standard for PHP as there is no formal specification.PHP is free software released under the PHP License which is incompatible with the GNU General Public License (GPL) due to restrictions on the usage of the term PHP.

Update the UBUNTU Machine

Update Ubuntu Packages

Update Ubuntu Packages

Update Ubuntu Packages

Update Ubuntu Packages

install php

install php

Install PHP

Getting Started with Ubuntu 10.10

A Complete Beginner’s Manual for Ubuntu 10.04 (Lucid Lynx)

Ubuntu: An Absolute Beginners Guide:

The Incredible Guide to NEW Ubuntu (Karmic Koala)

Old Computer, New Life: Restoring Old Hardware With Ubuntu

Computer Inside Your Computer: How To Use VirtualBox:

References:

http://en.wikipedia.org/wiki/PHP
Related articles