db2_classroom_1.0 - vmware basics and introduction_lab

Upload: pduraes

Post on 06-Apr-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/3/2019 DB2_Classroom_1.0 - VMware Basics and Introduction_Lab

    1/12

    1

    VMwareBasicsand Introduction

    I

    Information Management Cloud Computing Center of Competence

    IBM Canada Lab

  • 8/3/2019 DB2_Classroom_1.0 - VMware Basics and Introduction_Lab

    2/12

    2

    Contents

    1. VMWARE BASICS AND INTRODUCTION...................................................22. HOW TO OBTAIN VMWARE SOFTWARE? ................................................33. UNPACKING THE IMAGE ............................................................................44. USING THE VMWARE VIRTUAL MACHINE................................................4

    4.1 OPEN THE VIRTUAL MACHINE IN VMWARE ..................................................44.2 START THE VIRTUAL MACHINE....................................................................54.3 LOGIN TO THE VIRTUAL MACHINE AND ACCEPT THE LICENSE AGREEMENT .....74.4 OPEN THE TERMINAL WINDOW ...................................................................94.5 CLOSE THE TERMINAL WINDOW ...............................................................11

    1. VMware Basics and Introduction

    The VMware Player and VMware Workstation are the synonym for test beds anddeveloper environments across the IT industry. While having many other functions forthis specific purpose it allows the easy distribution of an up and running Linuxsystem featuring latest DB2 9.7 and WebSphere Application Server technology rightto anybodys computer be it a notebook, desktop, or server.The VMware image can be deployed for simple demos and educational purposes or itcan be the base of your own development and experiments on top of the given

    environment.

    What is a VMware image?

    VMware is providing a virtual computer environment on top of existing operating systemson top of Intel or AMD processor based systems. The virtual computer has all theusual components like a CPU, memory and disks as well as network, USB devices oreven sound. The CPU and memory are simply the existing resources provided by theunderlying operating system (you can see them as processes starting with vmware..The disks are different. For the host operating systems they show up as a collection offiles that can be copied between any system even between Windows and Linuxflavors. Those virtual disk files make up the most part of the image while the actual

    description file of the virtual machine is very small.

    The following will illustrate how to obtain VMware Player. Then, it will show you how tostart the VMware image for the Hands-On Labs used in this technical session.

  • 8/3/2019 DB2_Classroom_1.0 - VMware Basics and Introduction_Lab

    3/12

    3

    2. How to obtain VMware Software?

    Open a web browser and visit www.vmware.comClick on the Downloads link. Look for the Downloads link on the upper right hand cornerof the page.

    Figure 1 Obtaining VMWare software

    Click on the Desktop Downloads Tab.

    Figure 2 Obtaining VMWare software (Continued)

  • 8/3/2019 DB2_Classroom_1.0 - VMware Basics and Introduction_Lab

    4/12

    4

    Click on the product of your choice. We recommend VMware Player or VMwareWorkstation. Follow the on screen instructions for registration and download.

    3. Unpacking the imageThe image is delivered in a self-extractable set of rar files. For easy handling the files arecompressed to 700MB volumes. Download all the volumes to the same directory.

    Double click the executable file (highlighted in the figure below) and select thedestination folder.

    4. Using the VMware Virtual Machine

    4.1 Open the Virtual Machine in VMware

    Starting the VMware virtual machine can happen through either way:

    Double click on the file DB2 Express-C 9.7 32-bit.vmx in your WindowsExplorer or Linux file browser.

    Figure 3 Starting the Virtual Machine by double clicking on the vmx file

    Or:

    Select it through the File > Open icon in the VMware console.

  • 8/3/2019 DB2_Classroom_1.0 - VMware Basics and Introduction_Lab

    5/12

    5

    Figure 4 Starting the Virtual Machine using File -> Open

    Either way should result in the screen below:

    Figure 5 Starting the Virtual Machine

    4.2 Start the Virtual Machine

    Next the image can be booted up by pressing the Power On button in the upperleft side (marked in a red circle above).

    You may be prompted with a dialog box indicating the VMWare image has been movedor was copied as shown in the figure below. Choose the default I copied it

  • 8/3/2019 DB2_Classroom_1.0 - VMware Basics and Introduction_Lab

    6/12

    6

    Figure 6 Starting the virtual machine Moved or copied it?

    The system will power up like any other Linux system and will come to the state as

    shown in the figure below:

    Figure 7 Starting the Virtual Machine Login prompt

    After the virtual machine has finished booting up, you can now work inside the virtualmachine environment. To bring focus into the virtual machine environment, click inside

    the virtual machine screen with your mouse or click on the Full Screen button in

    the toolbar on top of the VMware window.After clicking on the screen, you may not see your mouse pointer anymore, this isnormal as you are now operating in a command line mode inside the virtual machine.You can bring focus to the host operating system at any point by pressing Ctrl + Alt atthe same time.

    The next section will explain the user IDs and passwords you will need.

  • 8/3/2019 DB2_Classroom_1.0 - VMware Basics and Introduction_Lab

    7/12

    7

    4.3 Login to the Virtual Machine and Accept theLicense Agreement

    At the prompt for a login user ID in Figure 6 above, enter:

    User ID: rootPassword password

    You will only use this user ID and password once.

    You will then see several panels similar to the figure below asking you to read,understand and accept the license agreement.

    Figure 8 Accepting the licenses

    In order to use this image, you must accept all of the listed agreements and notices thatwere displayed. Select I accept to go to the next screen. If you do not agree with thelicense, select Abort and the virtual machine will be shutdown automatically. After youhave chosen I accept or I understand in all panels, a black window will appear for a

    few seconds. Do not touch anything! The graphical interface will eventuallyautomatically start, and you will be prompted for a user ID as shown in the figure below.

  • 8/3/2019 DB2_Classroom_1.0 - VMware Basics and Introduction_Lab

    8/12

    8

    Figure 9 Login in to your Linux system

    At the prompt, enter the following credentials:

    User ID: db2inst1Password password

    This is the user ID and password you will use from now on for all exercises.You will notbe prompted again to accept licenses the next time you use thissame virtual machine.

    If you log on successfully, you will see your desktop looking similar to the figure below

  • 8/3/2019 DB2_Classroom_1.0 - VMware Basics and Introduction_Lab

    9/12

    9

    Figure 10 Your desktop

    4.4 Open the Terminal Window

    In order to execute commands, we will use the Command Line Terminal. To launch the

    terminal window, press the menu at the bottom left corner of the screen,

    and select .

  • 8/3/2019 DB2_Classroom_1.0 - VMware Basics and Introduction_Lab

    10/12

    10

    Figure 11 Starting a terminal

    A terminal window similar to the above will pop up after you click on the icon.

    Figure 12 Starting a terminal (continued)

    The terminal gives you a command line prompt and allows you to execute anycommands using this prompt.

  • 8/3/2019 DB2_Classroom_1.0 - VMware Basics and Introduction_Lab

    11/12

    11

    4.5 Close the Terminal Window

    To close the terminal window, simple click on the X button on the top right hand cornerof the terminal window, or type exit at the command prompt to exit out of the logged-interminal. (Note, it might take multiple exitcommands to logout of all logged-in sessions

    and close the terminal window if you have remote login or you are logged into a differentuser from this terminal window).

    Figure 13 Closing your terminal

    This ends this short introduction.

  • 8/3/2019 DB2_Classroom_1.0 - VMware Basics and Introduction_Lab

    12/12

    12

    Copyright IBM Corporation 2011All Rights Reserved.

    IBM Canada8200 Warden AvenueMarkham, ONL6G 1C7Canada

    IBM, IBM (logo), and DB2 are trademarks or registered trademarksof International Business Machines Corporation in the UnitedStates, other countries, or both.

    Linux is a trademark of Linus Torvalds in the United States, othercountries, or both.

    Windows is a trademark of Microsoft Corporation in the UnitedStates, other countries, or both.

    VMware is a trademark or VMware Inc. in the United States, othercountries, or both.

    Other company, product, or service names may be trademarks orservice marks of others.

    References in this publication to IBM products or services do notimply that IBM intends to make them available in all countries inwhich IBM operates. The following paragraph does not apply to theUnited Kingdom or any other country where such provisions areinconsistent with local law:

    INTERNATIONAL BUSINESS MACHINES CORPORATIONPROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTYOF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING,BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR APARTICULAR PURPOSE.

    Some states do not allow disclaimer of express or impliedwarranties in certain transactions, therefore, this statement may notapply to you.

    This information could include technical inaccuracies ortypographical errors. Changes are periodically made to theinformation herein; these changes will be incorporated in neweditions of the publication. IBM may make improvements and/orchanges in the product(s) and/or the program(s) described in thispublication at any time without notice.

    Any performance data contained herein was determined in acontrolled environment. Therefore, the results obtained in otheroperating environments may vary significantly. Somemeasurements may have been made on development-levelsystems and there is no guarantee that these measurements will bethe same on generally available systems. Furthermore, somemeasurement may have been estimated through extrapolation.Actual results may vary. Users of this document should verify theapplicable data for their specific environment.

    Information concerning non-IBM products was obtained from thesuppliers of those products, their published announcements orother publicly available sources. IBM has not tested those productsand cannot confirm the accuracy of performance, compatibility orany other claims related to non-IBM products. Questions on thecapabilities of non-IBM products should be addressed to thesuppliers of those products.

    The information in this publication is provided AS IS withoutwarranty. Such information was obtained from publicly availablesources, is current as of July 2010, and is subject to change. Anyperformance data included in the paper was obtained in the specificoperating environment and is provided as an illustration.Performance in other operating environments may vary. Morespecific information about the capabilities of products describedshould be obtained from the suppliers of those products.