vmware server: virtual pc basics · web interface with built-in viewer based on java; only 2 tcp...

46
VMware ® Server Virtual PC Basics VMware is a registered trademark of VMware, Inc. (an EMC company).

Upload: others

Post on 29-Oct-2019

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

VMware® Server

Virtual PC Basics

VMware is a registered trademark of VMware, Inc. (an EMC company).

Page 2: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

NDG Customer Support

Kaan Uzun, NDG Support ManagerEmail: [email protected] Receive

Software UpgradesBug FixesInstall Questions / Technical Support

VMware support for NETLAB+ podsHost setup and virtual machine installAllocation for NETLAB+ pods

Page 3: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

NETLAB+® Concept

Remote Lab SolutionClassroom Lecture Tool7x24 World Wide Web Lab AccessRemote PC Support (2005)Lab & Account ManagementAssessment & Data CollectionCustom Topology & Lab Design

Page 4: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

What is a Virtual Machine (VM)

Software on host instead of physical hardwareHardware resources allocated from the physical host

Windows Server 2003

VMware Server

Linux

Virtual Machines

VMwareHost

Win XP

CPU Memory Disk NIC

Page 5: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Download VMware Server (Free)

http://www.vmware.com/download/server/

Page 6: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Register for S/N (Free)

Make sure to write down Serial Number (not emailed)

Page 7: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Benefits & Usage for Academies

Benefits of VMware Server and Virtual Machines (VM)Free Virtualization: http://www.vmware.com/products/server/Revert Snapshot: return PC to clean state for next student’s lab timeUsers can have administrative privileges on a VM

Additional Benefits with NETLAB+®

Integrates with VMware API to provide VM automation for labsUsers may Power On/Off, Revert (scrub) a VM from web interfaceTechnical Support available

Page 8: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Academy Example

VMnet: virtual switch that can interconnect 1 or more virtual adaptersVMnet’s can connect to one real adapter or VLAN interface on host

PCID=12WinXP

PCID=15Linux

PCID=7WinXP

VMnet7

VMnet5

Virtual Machines

VMware GSXHost

Virtual Adapter

Real Adapter

Page 9: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Academy Example (cont.)

Virtual network interfaces on a VM can be tied to real networks in lab exercises (requires 802.1q NIC on the VMware server)

PC_1 IS_1

BBVMnet3

Virtual Machines

VMware GSXHost

Virtual Adapter

Intel 802.1q NIC

Control Switch

802.1q Trunk

Any Reserved Port

PC_2 IS_2

VMnet5

VMnet4

VLAN 156

VLAN 155

VLAN 152

R1

R2

RBB

VLAN 156

VLAN 155

VLAN 152

VLAN 150

VLAN 153

Page 10: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

NETLAB Academy Edition®

Access to VM is proxied through NETLAB & VMware servers (simple web interface with built-in viewer based on Java; only 2 TCP ports)

N

NETLAB

N

NETLAB

OUTSIDEINTERFACE

VNCTCP 23

VNC (keyboard + video + mouse)

NETLAB+Remote PCJava Viewer

POD

INSIDEINTERFACE

D GD G

CONTROLPLANE

PROXYTCP 59XX

TCP 902

API (status, on, off, revert)

Windows Server 2003

VMware Server

E0E0 E0E0

VM3VM2VM1 VM4VNC 5903 VNC 5904VNC 5902VNC 5901

VMwareHost

Page 11: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Minimum Host Requirements

http://www.vmware.com/pdf/server_admin_manual.pdf (page 5)4 VM’s concurrently running per processor (recommended max)

• Standard x86 based server with up to 16 processors• 733MHz or faster compatible x86 processor (Intel or AMD; see above guide)• Memory: 512MB (min. for host); add memory for each guest O/S installed• Memory: 64MB max for hosts that support large memory• Hard Disk: 200-250MB free disk space (min. for host)• Hard Disk: additional space required for each guest O/S with applications• NIC: Static IP address for your host machine (recommended)

Ability to install a wide variety of guest O/S’s and applications

Page 12: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

VMware Host Example (NETLAB AE)

http://www.netdevgroup.com/ae/vmware.htm

Page 13: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

VMware Host Requirement Tips

DO NOT Over-Cycle a single VMware Host4 VM’s running concurrently per single-core processorDual-Core Processor recommended

DO NOT Over-Allocate Memory and Disk SpacePlan ahead and divide host resources evenly

DO NOT Over-Build a single VMware HostSpread resources over multiple VMware HostsVMnet limitation (10 VMnet’s per Windows host)

Page 14: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Installing VMware Server

An installation wizard will guide you through the product installationCustom Setup: removing VMware Management Interface (overhead)

Page 15: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

VMware Server Console

Centralized management with the ability to run several VM’s simultaneously

Page 16: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Creating Virtual Machines

Step-by-step wizard for easy installation

Page 17: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Virtual Machine Configuration

Custom has more flexibility (set memory and access rights)

Page 18: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Select Guest O/S

Variety of O/S’s running on same host

Page 19: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Naming Convention

Choose VM name carefully (renaming VM later may not succeed)

Examples:1) POD_x PC_y2) Server_x VM_y

Page 20: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Allowing Access to VM

Allow all users to see and use a VM (instead of private to creator)

Page 21: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Options for Running VM

File system permissions of VM will be Local system

Page 22: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Virtual Processor Options

One processor recommended on VM’s

Page 23: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Memory for VM

Recommendations for Minimum/Optimum/Maximum

Page 24: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Virtual Networking Options

“Use bridged networking” to bind VM’s VLAN to VMnet

Page 25: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Create New Virtual Disk

Create a new .vmdk partition (Virtual Machine Disk Format)

Page 26: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Virtual Disk Capacity

Allow virtual disk to dynamically grow (set the maximum capacity)

Page 27: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Finish VM

Do not change the .vmdk filename (no value add)

Page 28: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

VM Console

Use console to boot virtual machine and install guest O/S (CD-ROM)

Page 29: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Virtual CD-ROM

Shared from host (disable so VM’s will not fight for same resource)You may point to an ISO file to boot or run an application (or O/S)

Page 30: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

VM Snapshots

Always save your work often (especially in early stages)Before and after (Windows Security Pack installations)

Page 31: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Installing VM Tools

The equivalent of Virtual Machine Drivers (required)

Page 32: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Installing VM Tools

Each VM needs these drivers installed for enhanced functionality

Page 33: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Copying VM’s

There is no clone button (but you can copy VMDK hard drive file)Create a new VM with same properties (proper Windows licensing)

Page 34: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

VM Copy Steps

Create one good virtual machine with guest O/S and VM ToolsUse VM Wizard to create a new VM (make sure to use same hard drive partitioning size/scheme)Instead of installing new VM guest O/S and VM Tools, you can usethe VMDK file in previous VM directoryMake sure to copy / paste (do not cut, move or use existing VMDK for new VM)You will want to change new VM’s guest O/S computer name

Page 35: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Creating VLAN Adapters

Intel Advanced Network Services Protocol (driver for Intel based NIC)Be sure to uncheck TCP/IP and Client for MSN for each VLAN

Page 36: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

VM Network Connection

Choose Custom Specific VMnet (10 available for Windows hosts)

Page 37: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Binding VLAN to VMnet

Bind VLAN adapter to custom VMnet using Virtual Network Editor

Page 38: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Adding Virtual Hardware

Adding a USB controller is simple (Windows 2003 recommended)VM support for USB 1.1 (disable USB 2.0 from host BIOS)Install USB drivers on VM’s

Page 39: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

USB Applications

Wireless USB Adapter (Linksys WUSBF54G and WUSB54GC)

Page 40: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

NETLAB+ & VMware API

NETLAB user on Windows host (used to control VM via API)

Page 41: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Directory Permission for API User

NETLAB user must have full access to Virtual Machines <dir>

Page 42: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

VM Screen Resolution

32-bit color, 800x600 recommended (1024x768 supported in viewer)

Page 43: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

VM System Properties

Set Visual Effects for best performance (enhanced experience)

Page 44: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

VMX Configuration File

Adding VNC support (Remove Java Viewer has built-in client)

Page 45: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

Take A Final Snapshot

Adjust Snapshot setting (Ask me) and save the final copy

Page 46: VMware Server: Virtual PC Basics · web interface with built-in viewer based on Java; only 2 TCP ports) N NETLAB OUTSIDE INTERFACE VNC TCP 23 VNC (keyboard + video + mouse) NETLAB+

NETLAB AE PODS

NETLAB AE pods that support VM’s (2 custom pods of your choice)