Creating Smart Virtual Appliances with IBM Image Construction and Composition Tool
Total Page:16
File Type:pdf, Size:1020Kb
Front cover Creating Smart Virtual Appliances with IBM Image Construction and Composition Tool Create smart appliances that are cloud-ready Develop PowerVM, KVM, and ESX customized virtual appliances Learn from experts how to cloudify your applications Jarek Miszczyk Greg Hurlebaus Pat Nickel Rashed Ferdous David Peraza John Jacobson Moises Romo Li-Fang Lee Kerry Staples ibm.com/redbooks International Technical Support Organization Creating Smart Virtual Appliances with IBM Image Construction and Composition Tool July 2013 SG24-8042-01 Note: Before using this information and the product it supports, read the information in “Notices” on page ix. Second Edition (July 2013) This edition applies to Version 2, Release 2, Modification 1.1 of the IBM Image Construction and Composition Tool. © Copyright International Business Machines Corporation 2012, 2013. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Notices . ix Trademarks . .x Preface . xi Authors. xi Now you can become a published author, too! . xiii Comments welcome. xiii Stay connected to IBM Redbooks . xiv Chapter 1. Introduction to virtual appliance construction . 1 1.1 Deploying your applications into the cloud . 2 1.2 Solving the terminology puzzle . 3 1.3 Why implement software virtual appliances . 4 1.4 A need for a virtual appliance construction tool . 5 1.4.1 Application packaging options . 5 1.4.2 Supported deployment options . 5 1.5 Putting the Image Construction and Composition Tool into context . 7 1.5.1 Image Construction and Composition Tool and the IBM PureSystems . 7 1.5.2 Image Construction and Composition Tool and the IBM Workload Deployer. 9 Chapter 2. Anatomy of a virtual appliance . 11 2.1 Description of a virtual appliance . 12 2.2 Components of a virtual appliance . 12 2.2.1 The OVF file . 14 2.3 Virtual appliance self-activation. 16 2.4 IBM Virtual Solutions Activation Engine . 16 2.5 What a virtual appliance is not . 20 Chapter 3. Architecture of the IBM Image Construction and Composition Tool. 21 3.1 Actors and use cases . 22 3.1.1 Operating system specialist . 22 3.1.2 Software specialist . 23 3.1.3 Virtual appliance architect. 24 3.2 Component view . 25 3.2.1 The model . 27 3.2.2 Package generators . 27 3.2.3 Cloud providers. 28 3.3 Flow of the main scenarios . 29 3.3.1 Importing an image from a cloud provider. 29 3.3.2 Importing an image from a running virtual machine . 31 3.3.3 Extending a base OS image . 33 3.3.4 Capturing a synchronized virtual image instance . 34 3.3.5 Exporting a virtual appliance. 34 3.4 Cloud provider concepts . 36 3.5 Software bundle concepts. 36 3.6 Image concepts. 37 3.7 User interface . 37 Chapter 4. Setting up the virtual appliance build environment . 45 © Copyright IBM Corp. 2012, 2013. All rights reserved. iii 4.1 Installing the Image Construction and Composition Tool . 46 4.1.1 Installing the tool on Linux . 46 4.1.2 Installing the tool on AIX . 48 4.1.3 Accessing the tool. 49 4.2 Setting up the build environment for PowerVM virtual appliances . 49 4.2.1 Reference architecture . 50 4.2.2 Requirements and recommendations . 51 4.2.3 Creating the build environment . 57 4.3 Setting up the build environment for KVM virtual appliances . 65 4.3.1 Reference architecture . 66 4.3.2 Nodes . 66 4.3.3 Tips and techniques . 68 Chapter 5. Product Activator Development Kit . 73 5.1 Overview of the Product Activator Development Kit . 74 5.2 Installing PADK . 75 5.3 A walkthrough of the development process by using PADK . 77 5.3.1 Installing the Virtual Solutions Activation Engine manually. 77 5.3.2 Prototyping the activation program . 79 5.3.3 Creating a product activator project in Eclipse . 79 5.3.4 Coding the activation program . 82 5.3.5 Setting up the connection to the target virtual machine . 82 5.3.6 Running and debugging the activation program . 84 5.3.7 PADK integration with Image Construction and Composition Tool. 86 Chapter 6. KVM Express cloud provider. 91 6.1 Overview of the KVM provider architecture. 92 6.2 Setting up the KVM provider . 93 6.2.1 Installing the KVM provider . 93 6.2.2 Managing the KVM provider . 94 6.2.3 Creating the KVM cloud provider . 94 6.3 Creating a base image from ISO. 96 6.3.1 Preliminary setup . 96 6.3.2 Importing an ISO image . 98 6.3.3 Building a base operating system appliance. ..