Creating Virtual Machines

Module 3

© 2012 VMware Inc. All rights reserved

You Are Here

Course Introduction
Introduction to Virtualization Creating Virtual Machines VMware vCenter Server Configuring and Managing Virtual Networks Configuring and Managing vSphere Storage Virtual Machine Management

Data Protection Access and Authentication Control Resource Management and Monitoring High Availability and Fault Tolerance Host Scalability Patch Management Installing VMware vSphere Components

VMware vSphere: Install, Configure, Manage – Revision A

3-2
© 2012 VMware Inc. All rights reserved

Importance

A virtual machine is a set of virtual hardware on which a supported guest operating system and its applications run. You can create a virtual machine in a number of ways. Choosing the correct method can help you save time and make the deployment process manageable and scalable.

VMware vSphere: Install, Configure, Manage – Revision A

3-3
© 2012 VMware Inc. All rights reserved

Manage – Revision A 3-4 © 2012 VMware Inc.Module Lessons Lesson 1: Lesson 2: Virtual Machine Concepts Creating a Virtual Machine VMware vSphere: Install. All rights reserved . Configure.

Lesson 1: Virtual Machine Concepts VMware vSphere: Install. All rights reserved . Configure. Manage – Revision A 3-5 © 2012 VMware Inc.

you should be able to do the following:  Describe a virtual machine.  Display a virtual machine’s files. All rights reserved . VMware vSphere: Install.Learner Objectives After this lesson. Configure.  Discuss virtual machine hardware. Manage – Revision A 3-6 © 2012 VMware Inc.

) VMware vSphere: Install. Configure.  Avoid using special characters and spaces in the virtual machine’s name. including its virtual hardware.What Is a Virtual Machine? A virtual machine is:  A set of virtual hardware on which a supported guest operating system and its applications run  A set of discrete files A virtual machine’s configuration file describes the virtual machine’s configuration. virtual machine MyVM. Manage – Revision A 3-7 © 2012 VMware Inc.vmx … guestOS = “winnetstandard” … displayName = “MyVM” (etc. All rights reserved .

vswp) (vmx-<VM_name>.vmsd) (<VM_name>.vmsn) (<VM_name>-delta. Configure.vmdk) VM folder Log files Template file Raw device map file Disk descriptor file Disk data file Suspend state file Snapshot data file Snapshot state file Snapshot disk file VMware vSphere: Install. Manage – Revision A 3-8 © 2012 VMware Inc. All rights reserved .vmdk) (<VM_name>.vmx) (<VM_name>.vmdk) (<VM_name>.vswp) (<VM_name>.nvram) (vmware.Files That Make Up a Virtual Machine Configuration file Swap files BIOS file (<VM_name>.vmss) (<VM_name>.vmtx) (<VM_name>-rdm.log) (<VM_name>.vmdk) (<VM_name>-flat.

Configure. Click Browse Datastore to browse its files. All rights reserved . right-click the datastore in the Resources pane. VMware vSphere: Install. On the Summary tab. Manage – Revision A 3-9 © 2012 VMware Inc.Displaying a Virtual Machine’s Files Click a virtual machine.

Select Show All Virtual Machine Files from the menu. VMware vSphere: Install. Configure. All rights reserved .Using the Storage Views Tab to Display Files Select the virtual machine in the inventory and click the Storage Views tab. Manage – Revision A 3-10 © 2012 VMware Inc.

All rights reserved . Manage – Revision A 3-11 15 devices per adapter © 2012 VMware Inc. Configure.Virtual Machine Hardware 1 IDE controller 4 devices up to 3 parallel ports up to 4 serial/com ports HD audio 1 USB controller 20 Devices 1 floppy controller 2 Devices 1-10 NICs Virtual Machine hardware 3D up to 4 SCSI adapters up to 1TB of RAM up to 64 vCPUs VMware vSphere: Install.

Configure. All rights reserved .CPU and Memory Up to 64 virtual CPUs (vCPUs):  Depends on the number of licensed CPUs on a host and the number of processors supported by a guest operating system Up to 1TB maximum memory size:  Depends on the amount of memory that the guest operating system is told that it has VMware vSphere: Install. Manage – Revision A 3-12 © 2012 VMware Inc.

thick provision eager zeroed.Virtual Disk Sample virtual disk definition: Virtual disk size: Datastore: Virtual disk node: Virtual storage adapter: Virtual disk files: Default disk mode: Optional disk mode: Disk provisioning policy: 4GB MyVMFS 0:0 LSI Logic SAS Server1. Manage – Revision A .vmdk Snapshots allowed Independent – persistent or nonpersistent Thick provision lazy zeroed. All rights reserved VMware vSphere: Install. or thin provision 3-13 © 2012 VMware Inc.vmdk and Server1-flat. Configure.

Manage – Revision A 3-14 © 2012 VMware Inc. All rights reserved .Virtual Network Interface Card Network adapters that might be available for your virtual machine:  Flexible – Can function as either a vlance or vmxnet adapter: • • vlance – Also called PCNet32. vmxnet2. Configure. choose vmxnet3. supported by most 32-bit guest operating systems vmxnet – Provides significantly better performance than vlance  e1000 – e1000e: • High-performance adapter available for only some guest operating systems  vmxnet. • • vmxnet2 (Enhanced vmxnet) – vmxnet adapter with enhanced performance vmxnet3 – Builds on the vmxnet2 adapter VMware vSphere: Install. and vmxnet3 are VMware® drivers that are only available with VMware® Tools™: Whenever possible.

Configure. USB 3. All rights reserved .Other Devices CD/DVD drive:  Connect to CD-ROM.0:   Smart-card readers Floppy drive: Connect to floppy or floppy image. Manage – Revision A 3-15 © 2012 VMware Inc. Generic SCSI devices (such as tape libraries):  Can be connected to additional SCSI adapters NVIDIA GPUs (VMware® View™)  Use hardware-accelerated graphics with View VMware vSphere: Install. DVD. or ISO image.

 Press Ctrl+Alt+Ins in the virtual machine console. Access the virtual machine’s guest operating system. Send Ctrl+Alt+Del to the guest operating system. Manage – Revision A 3-16 © 2012 VMware Inc. Configure. Press Ctrl+Alt to release the pointer from the virtual machine console. All rights reserved . VM console icon VM console VMware vSphere: Install.Virtual Machine Console Send power changes to the virtual machine.

Manage – Revision A 3-17 © 2012 VMware Inc.  Display a virtual machine’s files.Review of Learner Objectives You should be able to do the following:  Describe a virtual machine. All rights reserved . VMware vSphere: Install.  Discuss virtual machine hardware. Configure.

Manage – Revision A 3-18 © 2012 VMware Inc. Configure.Lesson 2: Creating a Virtual Machine VMware vSphere: Install. All rights reserved .

VMware vSphere: Install. Configure. you should be able to do the following:  Create a virtual machine:  • • • Configure the virtual machine options Install the guest operating system into the virtual machine Install VMware Tools into the guest operating system Describe how to import a virtual appliance. Manage – Revision A 3-19 © 2012 VMware Inc. All rights reserved .Learner Objectives After this lesson.

Manage – Revision A 3-20 © 2012 VMware Inc.Provisioning a Virtual Machine Methods for creating virtual machines:  Use the Create New Virtual Machine wizard.  Import a virtual appliance. VMware vSphere: Install. Configure. All rights reserved .

All rights reserved . Configure.  Perform a “typical” or “custom” configuration. VMware vSphere: Install. Manage – Revision A 3-21 © 2012 VMware Inc.Create New Virtual Machine Wizard Start the Create New Virtual Machine wizard.

Choosing the Typical Configuration Information needed for a typical configuration:  Virtual machine name and inventory location  Datastore on which to store the virtual machine’s files  Guest operating system and version  Disk parameters for creating a new virtual disk: • • Disk size Disk-provisioning: - Thick Provision Lazy Zeroed Thick Provision Eager Zeroed Thin Provision VMware vSphere: Install. Configure. Manage – Revision A 3-22 © 2012 VMware Inc. All rights reserved .

 You can mix thick and thin formats.  Full reporting and alerts help manage allocations and capacity. Manage – Revision A 3-23 © 2012 VMware Inc. All rights reserved .  A virtual machine sees the full allocated disk size at all times. Configure.Storage Virtual Disk Thin Provisioning  Virtual machine disks consume only the amount of capacity needed to hold the current files. More efficient storage utilization:  Virtual disk allocation140GB  Available datastore capacity 100GB  Used storage capacity 80GB VMware vSphere: Install.

number of cores per CPU and size of memory  Number of NICs. use an existing disk. Manage – Revision A 3-24 © 2012 VMware Inc. and network adapter type  SCSI controller type  Whether to create a disk. network to connect to. attach an ISO image to the virtual CD/DVD drive. SCSI(0:0)) Mode-independent (persistent and nonpersistent) For both the typical and the custom configurations:  You can edit virtual machine settings before completing the task. Configure. use a raw device mapping (RDM). • For example. VMware vSphere: Install. All rights reserved .Choosing the Custom Configuration Other information needed for a custom configuration:  Virtual machine version (version 9 is the latest)  Number of CPUs. or use no disk  Other disk-provisioning settings: • • • Whether to store the virtual disk with the virtual machine or in a different datastore Virtual device node (for example.

vmdk .vmdk -flat. .vmdk -rdm. All rights reserved . The mapping file is stored on a VMware vSphere® VMFS datastore that points to the raw LUN. Manage – Revision A © 2012 VMware Inc.vmdk Raw LUN VMFS or NFS VMFS 3-25 NTFS or ext3 VMware vSphere: Install. Configure.Raw Device Mapping virtual disk RDM RDM enables you to store virtual machine data directly on a logical unit number (LUN).

All rights reserved . Manage – Revision A 3-26 © 2012 VMware Inc. VMware vSphere: Install.Installing the Guest Operating System Install the guest operating system into the virtual machine. Configure.

VMware Tools icon VMware vSphere: Install. Manage – Revision A 3-27 © 2012 VMware Inc. • • • •     • SVGA display vmxnet/vmxnet3 Balloon driver for memory management Sync driver for quiescing I/O Improved mouse Virtual machine heartbeat Time synchronization Ability to shut down virtual machine Adds additional choices to Perfmon DLL. Configure. All rights reserved .VMware Tools Features of VMware Tools include:  Device drivers: Install VMware Tools into the guest operating system.

com/appliances Use the VMware vSphere® Client™ to upload appliances into VMware vCenter Server™ or a VMware vSphere® ESXi™ host.vmware. Configure.Virtual Appliances Virtual appliances are reconfigured virtual machines:  Usually designed for a single purpose (for example. VMware vSphere: Install. Manage – Revision A 3-28 © 2012 VMware Inc. All rights reserved . a safe browser or firewall)  Deployed as an OVF template Available from the VMware Virtual Appliance Marketplace:  http://www.

Deploying an OVF Template Another way to deploy a virtual appliance or any virtual machine stored in OVF format:  Deploy from an OVF template. Manage – Revision A 3-29 © 2012 VMware Inc. Configure. VMware vSphere: Install. All rights reserved .

3.Lab 3 In this lab. 1. 4. Prepare your virtual machine for upcoming labs. Install VMware Tools on a virtual machine installed with a Windows operating system. Manage – Revision A 3-30 © 2012 VMware Inc. you will create and prepare virtual machines for use. Install a guest operating system in a virtual machine. VMware vSphere: Install. Create a virtual machine. 2. Configure. Identify a virtual machine’s disk format and usage statistics. 5. All rights reserved .

All rights reserved . VMware vSphere: Install. Configure.Review of Learner Objectives You should be able to do the following:  Create a virtual machine:  • • • Configure the virtual machine options Install the guest operating system into the virtual machine Install VMware Tools into the guest operating system Describe how to import a virtual appliance. Manage – Revision A 3-31 © 2012 VMware Inc.

Configure. You can use the vSphere Client to create virtual machines using the Add Virtual Machine wizard or by deploying an OVF template. Questions? VMware vSphere: Install.Key Points   Virtual machines can be provisioned using different methods. Manage – Revision A 3-32 © 2012 VMware Inc. All rights reserved .