Vmware Survival Guide

  

These are my personal notes that I use as a quick help in my work.
You are welcome to read them.

Contents of current page Top-level home page
 
Index  Java Internet Oracle Notes
Linux Basics Web Basics SQL Notes
Informatica Servlets Apache BkpRstore SQL*Plus
Teradata   LDAP Storage PL/SQL
Windows     Tables OEM
UML   Net8 Portal
SQL Server Python perl Performance OLAP
Vmware Visual Basic PHP/MySQL User Mgmt  
Git        
More technical pages here

Contents

 


Introduction

 

Management User Interface (MUI) at http://servername

Switch between VM and host: ^G / Ctrl+Alt
Alt+Ctrl+Del = Alt+Ctrl+Ins

What are the different VM files: see "VM files" in the section "Disks and Files".


Disks and Files

 

VM Files

 

/boot 50MB On primary partition
swap 2*service console memory size Best on primary partition
/   Best on primary partition
/home nvram and *.vmx (configuration files, see below) exteneded local partition
/vmimages Disk ISO files,
templates for VMs
Files in pieces of no more than 2GB
exteneded local partition
swapfile.vswp Swap for vmkernel on vmfs partition Used for overcommitment on VM memory
core dump vmkcore 100 MB on vmfs partition, in case of crash (very rare)
vmfs (file system on external disk) *.vmdk (or *.dsk) = the virtual disks of the VMs No sub-dir

 

Some Notions

Hyper Threading
A CPU looks like two CPUs
APIC
Full APIC mode

 


Hardware Mapping

Most configuration changes must be made when the machine is turned off.
Except attaching/detaching CD-ROMs and floppys, changing the mappings, or changing virtual switch connectivity, which can be done when the machines are on.
Disks can be copied but not moved when the machine is on.

NIC

Two types: vlance (default) or vmxnet (not all OSs have the necessary drivers)

The VMs are connected to virtual switches. Depending on the number of outside adaptors (NICs), the virtual switches are of the following types:

The virutal switches are visible as a switch or, if "port groups" are defined, they are visible as VLANs.

Disks

Physical disks have names:
device:t:n:m
where:

See disks with vdf -h (equivalent to df -k)

Extend disk size:
vmkfstools -X nG vmfs_partition:virtual_file.vmdk
where n is the new size

Four types of virtual disks:

SCSI

Two options: vmxlsilogic (default, only option for w2k and xp) or vmxbuslogic (best for other OS)


VM Management

Connect to the Service Console:

 

Exit the Remote Console with "Detach and Exit"

Export to Change on Write (COW) format. Pieces of at most 2 GB. Only data is exported, not the empty space.
Export: vmkfstools -e cowformat_file.vmdk vmfs_partition:vmfs_disk_file.vmdk (note: target comes first)
Import: vmkfstools -i cowformat_file.vmdk vmfs_partition:vmfs_disk_file.vmdk (note: target is second file)

 

Cloning

Machine name: potential conflict
Network address: put in DHCP first
SID (entry in Active Directory): potential conflict

Two methods:
run sysprep to empty the registry, but this also removes the configuration of the language and the keyboard
or use "ghost walker"

 

VM Sizing

Note that memory overcommitment is possible because of:

Resource management is done by percentages. Each VM starts with 1000 (default). If this is increased, the VM gets more of the resource.

 

Backup / Restore

1. Put the backup agent in the VMs, just like a physical machine --> fine control
Best for application data

2. Put the backup agent on the Service Console --> backup the VM files as seen by the Service Console (VM must be shut down)
Best for full backup of the VM

3. Backup the files on the SAN.

 


Miscellaneous

Copy of Disks

dd if=/dev/cdrom of=/vmimages/...iso bs=32k
dd if=/dev/fd0   of=/vmimages/...flp bs=1k

bs not necessary
No need to mount  

 

Sample configuration file (.vmx)

config.version = "8"
virtualHW.version = "4"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic"
memsize = "512" <--
Look at this so that it is less than the local RAM. Can also be changed in GUI (menu / player / troubleshoot / change memory allocation)
MemAllowAutoScaleDown = "FALSE"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "Whatever the VM files are called.vmdk"
ide1:0.present = "TRUE"
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "cdrom-raw"
ethernet0.present = "TRUE"
usb.present = "TRUE"
sound.present = "TRUE"
sound.virtualDev = "es1371"
sound.fileName = "-1"
sound.autodetect = "TRUE"
displayName = "Whatever the VM files are called"
guestOS = "winnetenterprise"
nvram = "Whatever the VM files are called.nvram"
ide1:0.autodetect = "TRUE"
scsi0:0.redo = ""
ide1:0.startConnected = "FALSE"
ethernet0.addressType = "generated"
ethernet0.generatedAddress = "00:56:ad:56:bc:56"
ethernet0.generatedAddressOffset = "0"
tools.syncTime = "FALSE"
checkpoint.vmState = ""
floppy0.startConnected = "FALSE"
floppy0.fileName = "A:"

 

 

Problems and Solutions