VMware

34K

Solutions

17K

Contributors

VMware is virtual machine software that provides a virtualized set of hardware (a video adapter, a network adapter, and hard disk adapters) to the guest operating system. VMware virtual machines become highly portable between computers, because every host looks nearly identical to the guest. In practice, a system administrator can pause operations on a virtual machine guest, move or copy that guest to another physical computer, and there resume execution exactly at the point of suspension. VMware's enterprise software hypervisors for servers, VMware ESX and VMware ESXi are bare-metal embedded Hypervisors that run directly on server hardware without requiring an additional underlying operating system.

Share tech news, updates, or what's on your mind.

Sign up to Post

When your production Windows 2003 VM is running out of disk space on C: , and you must increase the space.  What do you do?  

This tutorial will show you how to increase the size of a virtual machine disk (VMDK) for boot volume C: on Windows 2003 (32 Bits) operating system with no downtime.

Disclaimer – Before you perform steps in this tutorial, it is always good idea to have a good backups.

Example:  Increase the size of a Windows 2003 C: Drive from 11GB to 12GB

1) Download Dell ExtPart utility -  Dell Extpart only works with 32 bit operating systems

http://www.dell.com/support/drivers/us/en/19/DriverDetails?DriverId=R64398&FileId=2731129714&DriverName=Dell%20Basic%20Disk%20Expansion%2C%20v.1.0.4%2C%20A01

2) Copy the ExtPart to the VM you would like to expand the disk, and extract the file to C:\Dell\ExtPart folder

3) On your ESX/ESXi Host, go to the VM you would like to expand -> Right click -> Edit Settings -> Hard Disk –> Virtual Disk

4) In Provisioned Size -> Type the space you would like to increase

Example:  Current size of the Virtual Disk is 11GB
Enter a brief description of your file (required) Increase Provisioned Size to 12GB
Enter a brief description of your file (required)5) Log on to the Windows 2003 VM as System Administrator. Open Disk Management
Enter a brief description of your file (required)
6) Select "Rescan disks" to detect the new space you added it to the VM if it’s not already shown. You will see the new 1GB of unallocated space
Enter a brief description of your file (required)7) Open Command Prompt and Go to …
1
Virtual Desktop Infrastructure is sure to become the next big thing in a post-PC market. The ability to centralize user desktops around a pool of virtual images eases administration, support and updates. User productivity can be enhanced by the constant presence of a virtual machine connection, from the office or at home.

The ultimate expression of this is put into a zero-client, which is just a terminal, connecting the user to a virtual session in the cloud. As companies move their networks in this direction, many desktop computers will become surplus, some that still have a few years of use left in them. Repurposing a desktop as a thin-client is the best way to try-out VDI with a minimal investment up front.

What is needed is an old computer that can adequately run either Windows XP or Windows 7, a VMWare View Infrastructure and the VMWare View client (free).

1. Install Windows on the old computer and update it to its fullest extent. The house rules where I work stipulate antivirus software must be installed on any PC, so do that if necessary. That is all that really needs to be installed. Microsoft Office or other software are not necessary because they will never be used. Joining the computer to a corporate domain is optional as well. We’ll set the machine to auto-login as a local user and start the VMWare view client immediately.

2. Install The VMWare View client on the computer.

3. Create a new directory ~ C:\CustomShell

4. Place the following code …
3
LVL 15

Administrative Comment

by:Eric AKA Netminder
Comment Utility
Firebar,

Congratulations! Your article has been published.

ericpete
Page Editor
0
LVL 27

Author Comment

by:Jason Watkins
Comment Utility
Thanks ericpete, much obliged!
0
In my previous 24 VMware Articles, most featured Intermediate VMware Topics. My next series of articles will concentrate on topics for the VMware Novice; this is the second article in this series.

In this series of basic VMware articles for the Novice, I'll be showing you the basic VMware skills required to install, configure and deploy virtual machines using VMware's FREE VMware vSphere Hypervisor (ESXi).

This article will show you how to connect and complete some basic configuration of the VMware vSphere Hypervisor 5.1 on a computer. VMware vSphere Hypervisor 5.1 is also known as ESXi 5.1.

If you have missed the first article in the series, it's here: HOW TO: Install and Configure VMware vSphere Hypervisor 5.1 (ESXi 5.1)

1. Download Tools to Manage the ESXi Host Server

ESXi 5.1 DCUI (console) when Server has completed the Boot processWhen the VMware vSphere Hypervisor (ESXi 5.1) server is fully BOOTED and started the above screen is displayed. This screen is called the Direct Console User Interface (DCUI). The majority of the management is performed remotely from another Windows computer using software tools called the VMware vSphere Client. You cannot manage or install virtual machines from the ESXi 5.1 server console; this must be completed remotely from another computer.

You can obtain the VMware vSphere Client software package (VMware-viclient-all-5.1.0-786111.exe) from the VMware website, as detailed in the first article of this series:
HOW TO: Install and Configure VMware vSphere Hypervisor 5.1 (ESXi 5.1)
13

Expert Comment

by:Wagner Caetano
Comment Utility
Thank you to share with us!!! You save my week!!
Best regards
Wagner
0
LVL 132

Author Comment

by:Andrew Hancock (VMware vExpert / EE Fellow)
Comment Utility
Wagner

Thanks for reading and your comments.

Andy
0
In my previous 24 VMware Articles, most featured Intermediate VMware Topics, my next series of articles will concentrate on topics for the VMware Novice.

In these series of basic VMware articles, I'll be showing you the basic skills required to install, configure and deploy virtual machines using VMware's FREE VMware vSphere Hypervisor.

This article will show you how to install and configure the VMware vSphere Hypervisor 5.1 on a computer. VMware vSphere Hypervisor 5.1 is also known as ESXi 5.1.

The FREE version of ESXi 5.1 is limited to 32GB per server.

ESXi 5.1 will install and run only on servers with 64-bit x86 CPUs.
ESXi 5.1 requires a host machine with at least two cores.
ESXi 5.1 supports only LAHF and SAHF CPU instructions.
ESXi 5.1 requires the NX/XD bit to be enabled for the CPU in the BIOS.

A full list of the ESXi 5.1 Hardware Requirements can be found in the VMware ESXi 5.1 Install Guide

Check the VMware Hardware Compatability Lists (HCL), to discover if your computer is certified for use with ESXi 5.1.

If your computer is not listed on the VMware HCL, it may still be possible to install and run VMware ESXi 5.1 on your laptop, desktop, or server. The HCL exists because the server vendor and VMware have certified and tested ESXi 5.1 will function correctly, on the servers listed on the HCL.

1. Register with VMware.com and Download VMware vSphere Hypervisor 5.1

Open the following link in your web browser
https://my.vmware.com/web/vmware/evalcenter?p=free-esxi5&lp=default
Click the License and Download Tab
25
LVL 132

Author Comment

by:Andrew Hancock (VMware vExpert / EE Fellow)
Comment Utility
@bfsmarty I'm glad you've enjoyed them, I'll get back to adding more next year on EE. Many Thanks for your kinds words. Merry Christmas and A Prosperous VMware New Year 2016
0

Expert Comment

by:David Jones
Comment Utility
New to VMware and these article really help as my company start to apply VMware platform.
0
In VMware vSphere 5.x (ESXi 5.x) there is a new feature called Host Cache Configuration. This new feature allows the VMware vSphere Administrator to configure the VMware vSphere 5.x (ESXi 5.x) host server to use a cache on a Solid State Disks (SSD) for the virtual machine's swapfile for better performance, because the SSD has much faster latency than a traditional mechanical disk. This is also known in VMware Administrator circles as Swap to Host Cache or Swap to SSD. Once Host Cache Configuration has been enabled, the virtual machines will be swapping to SSD, but this swapfile is not a true swap file, and the entire virtual machine swap file (.vswp)  is not stored on the SSD.

With the current fall in prices for consumer SSDs, it can give a real performance boost to a VMware ESXi 5.x server which is short on memory. Consumer SSDs e.g. Kingston SSDNow V+200 Drive Model SVP200S37A/60G are generally cheaper than server memory. We recently purchased this model for £29.99 GBP.

If your SSD is not correctly Tagged as an SSD on the VMware vSphere Server (ESXi 5.x), please refer to my previous Experts Exchange article
HOW TO: Tag and Configure a storage device as a Solid State Disk (SSD) in VMware vSphere 5.0 or 5.1  (ESXi 5.0 or ESXi 5.1)

In the following tutorial, I'll demonstrate how you can Enable the Host Cache Configuration Feature.

1. Connect to the VMware vSphere Hypervisor (ESXi) or VMware vSphere vCenter Server.

5

Expert Comment

by:DITGUY
Comment Utility
Is this necessary if you plenty of RAM in the esx host and the guest OS? Will a host use that pagefile if it's not using the max ram assigned to it?
0
In VMware vSphere 5.x (ESXi 5.x) there is a new feature called Host Cache Configuration. This new feature allows the VMware vSphere Administrator to configure the VMware vSphere 5.x (ESXi 5.x) host server to use a cache on a Solid State Disks (SSD) for the virtual machine's swapfile for better performance, because the SSD has much faster latency than a traditional mechanical disk. This is also known in VMware Administrator circles as Swap to Host Cache or Swap to SSD. Once Host Cache Configuration has been enabled, the virtual machines will be swapping to SSD, but this swapfile is not a true swap file, and the entire virtual machine swap file (.vswp)  is not stored on the SSD.

However, not all SSD devices are correctly tagged as SSD. This tutorial shows how to tag a Non-SSD storage device as SSD, if you want to experiment with Host Cache Configuration but do not have a SSD to hand. This is not supported by VMware, tagging a non-SSD as a SSD.

The same procedure can be followed to tag a SSD, correctly, if it's not recognized by the VMware ESXi server.

With the current fall in prices for consumer SSDs, it can give a real performance boost to a VMware ESXi 5.x server which is short on memory. Consumer SSDs e.g. Kingston SSDNow V+200 Drive Model SVP200S37A/60G are generally cheaper than server memory. We recently purchased this model for £29.99 GBP.

The commands we will be using in this Tutorial, are the esxcli
1
Migrate VMs between hosts and/or datastores for FREE without vMotion/Storage vMotion or Shared Storage

Not all organisation have access to VMware's vMotion or VMware's Storage vMotion technology because of budgetry constraints. I've written this article because it's a question which appears on Experts Exchange at least every few weeks, and now there is an easy solution to the problem.

Scenario 1
First implementation of VMware vSphere Essentials without shared storage, later the organisation purchases shared storage (iSCSI or Fibre Channel SAN or NFS NAS), and then needs to migrate existing virtual machines with little downtime to the shared storage platform.
 
Scenario 2
Organisation purchases a second newer replacement VMware vSphere host, needs to migrate existing virtual machines with little downtime to new VMware vSphere host.


Traditionally we would use ESXi/ESX Backup and Restore techniques, VMware vCenter Converter Standalone 5.0, or Datastore browser to clone or copy see my previous Experts Exchange articles below, to address the above scenarios, (remember here that VMware's vMotion or VMware's Storage vMotion is NOT available, because it's not available in our licensed version of VMware vSphere).

VMware ESX/ESXi Backup Guide

HOW TO: Clone or Copy a virtual machine in VMware vSphere Hypervisor ESX/ESXi 4.x or ESXi 5.0

22
LVL 132

Author Comment

by:Andrew Hancock (VMware vExpert / EE Fellow)
Comment Utility
It used to support 4.1, but whether the latest download does is another question, as 4.1 has been retired long ago.

This article was written around 6.1, and it did support 4.1, the latest current version of Veeam is 9.0!
0

Expert Comment

by:Alberto Garcia
Comment Utility
Hi Andrew

In first place, thank you for your work, it's really useful!

But.. I have problems using your procedure with ESX 6.0 and Veeam Backup & Replication 9.5, when I try to made a "Quick Migration" or a "Backup" I get the error:
"Preparing target VM Error: Current vSphere license or ESXi version prohibits execution of the requested operation. "

But the ESX is licensed:
"Product: VMware vSphere 6 Hypervisor Licensed for 2 physical CPUs (unlimited cores per CPU)
License Key: **************
Expires: Never

Product Features:
    Up to 8-way virtual SMP"

Please, could you help me?

Many thanks!
0
I was looking into new v5 features and found some things not normally found in Google unless you explicitly Google for these terms.

Two of these features are :

In v5 vmotion can use 16  * 1 Gbe network adapters, for instance in a team. This is new as vmotion in v4 was limited to 1 * 1Gbe network adapter. It can also use 4 * 10gbe network adapters. This an important improvement over vsphere v4. To get it working you just need to add the nics for vmotion into the vmxnet 3 virtual adapter that your using for vmotion usually iscsi or fibre channel although fibre channel is not as fast as iscsi over say 4 * 10 Gbe and I think fibre channel will start to disappear because of the fact that creating a iscsi network using standard Ethernet switches and stacked Ethernet switches will be far cheaper than using fibre channel as that needs Fibre Channel switch that are expensive and in my opinion will always be.

The other new thing is called stun on page send which means when your vmotioning a virtual machine its virtually impossible to see the virtual machine go down. Just try an IP -t ping on the virtual machine during the vmotion you may just see one or two dropped packets which will net really be noticed in normal use. It works by slowing down the virtual machine slightly so the v motion has more resources to complete the vmotion.

These two functions mean when you have a virtual environment using vsphere v5 and vmotion you can vmotion mission critical virtual…
0
As an ESX VMware OS Administrator, sometimes we need to get remote terminal access to the servers, the reasons can be multiple: our user interface crashed, server cannot be accessed via GUI but can be pinged, terminal access is the only option to use some functions or just to feel the power of the command prompt.

The SSH protocol can be used to get access to the remote terminal of your servers. Why not telnet? telnet is a plain-text protocol which can be easily violated. Read more: wiki.

Now, to get access to the terminal console using SSH, first of all we need to check if the server has SSH service enabled.

SSH Server on ESX

Activating SSH Server on ESX

1.

Select the server you want to grant SSH access

2.

Select  "Configuration" tab

3.

Select "Security Profile" optionAs you can see on the image, the SSH Server is already enabled in my ESX server, if you don't have it, you need to enable it:

4.

Select "Properties..." optionSecurity Options - Properties

5.

Check the "SSH Server" optionOk, now you are ready to access via SSH to your server, but you don't have a user more than root to access.

Trying to access with root user via SSH to the server

Now, if you try to access via SSH with root user you will get the following message (i'm using OpenSSH for Windows as SSH Client in this tutorial):
Enable root access via SSHAs you can see, we cannot access via SSH with the root user, that's cause ESX has SSH root access unable by default.

Enabling root access via SSH

We need to access via SSH with another user than root:
Login normal user and ssh_config edit
2
LVL 6

Expert Comment

by:jaredr80
Comment Utility
Great article! Have shared with all my VMWare Administrators.

-Jared
0
LVL 6

Author Comment

by:Ricardo Martínez
Comment Utility
Thank you! i'm glad my article is helpful for you, i think this is a knowledge that all of us that work with ESX need to know.

Regards
Ricardo
0
One of the benefits of using a Dell PowerEdge Server versus a HP ProLiant Server to host a VMware vSphere Host, is the ability to Create and Manage the virtual disk (RAID array) on the server with ESXi 5.0 installed, without restarting the server, and using the Storage Controller RAID BIOS configuration utility.

Currently (July 2012), the only way to create and manage a HP SmartStart RAID Array, is either to shutdown the VMware vSphere 5.0 (ESXi 5.0) server, and use the SmartStart RAID Array BIOS at POST or BOOT the server from the HP SmartStart CDROM and use the Array Configuration Utility (ACU). HP have still not provided a software alternative when the ESXi server is running.

The Dell documentation seems to complicate this process in how to complete this task, and due to the many questions, I have decided to create a Tutorial Walkthrough in few easy steps of how this can be easily achieved.


Prerequisites


1. Download and Install the Dell OEM version of VMware vSphere 5.0 U1 (ESXi 5.0 U1), on your Dell PowerEdge Server.

Download the ISO here - VMware-VMvisor-Installer-5.0.0.update1-623860.x86_64-Dell_Customized_RecoveryCD_A00.iso

2. Dell OpenManage System Administrator for ESXi 5.0 must be installed on the ESXi 5.0 host to be managed.

Download here - Dell OpenManager System Administrator for ESXi 5.0

3. PUTTY - used to establish an SSH connection to the ESXi 5.0 host server.

PUTTY download

4. WinSCP - used to transfer the Dell OpenManage software to the ESXi 5.0 Server.

WinSCP Download

5. Optional Manual for reference only

Dell OpenManage with ESXi 5.0 Systems Management Guide

1. Upload [url="http://downloads.dell.com/FOLDER00655764M/1/OM-SrvAdmin-Dell-Web-7.1.0-5304.VIB-ESX50i_A00.zip

Dell OpenManage VIB Bundle[/url] to ESXi server"]Using WinSCP upload the Dell OpenManage VIB Bundle downloaded above to the /var/log/vmware
13
LVL 19

Expert Comment

by:vmwarun - Arun
Comment Utility
Take a bow, Andrew. Nicely written with excellent screenshots added to it.
0
LVL 132

Author Comment

by:Andrew Hancock (VMware vExpert / EE Fellow)
Comment Utility
@arunraju Thanks for your kind comments.
0
Managing some ESX (4.1) farms for some time now I was looking for a way to get notified of the backup results of my VDR devices (1.2). I came across an article in the VMware communities: VDR email which seemed to be what I was looking for. After some testing I got it to work but wasn't quite satisfied yet. I wanted a report that I could present or mail directly to the management if necessary.
So I started to play around to suite it to my needs. Though I'm not a scripting expert I know enough to be dangerous. But the result might not be a typical example of neat programming.

Anyway, I quite happy with the result and wanted to share this with you.

Here is the code:

#!/bin/bash
#
# Variables 
domain=mydomain.local
host=$HOSTNAME
smtphost=mymailhost.mydomain.local
mailto=myemail@mydomain.com
mailto2=mysecondemail@mydomain.com
#
cat /dev/null >> /root/oldfailure.out
cat /dev/null >> /root/oldlocks.out
cat /dev/null >> /root/olderror.out
cat /dev/null >> /root/oldsuccess.out
cat /dev/null >> /root/oldbackup.out
cat /dev/null >> /root/oldintegrity.out
cat /dev/null >> /root/oldrestorepoint.out
cat /dev/null >> /root/oldincomplete.out
cat /dev/null >> /root/temperror.out
cat /dev/null >> /root/temperror2.out
cat /dev/null >> /root/temperror3.out
cat /dev/null >> /root/temperror4.out
cat /dev/null >> /root/tempincomplete.out
#
fail=0
lock=0
err=0
succ=0
incomp=0
#
# First get the errors and make it

Open in new window

0
Storage DRS is a new feature introduced in Vmware vShpere 5. This extends the capabilities of the Distributed resource scheduler to Storage. It means that vSphere can move/place your VMs across intelligently based on storage capacity and datastore latency. This article explains how to configure storage DRS in vShere 5

Inorder to configure storage DRS, you first need to create a Datastore cluster. This is a new concept of storage and similar to the ESX clusters in the sense that it represents a set of resources.Datastore clusters are as the name indicates a pool of datastores,which can be either VMFS5 or NFS based.Inorder to create a Datastore cluter and configure it for Storage DRS

Login to your vCenter and go to view->inventory->datastores and cluster datastores

Right click your datacenter->select New datastore cluster

create
Enter the datastore cluster name. Ensure that the option to turn on Storage DRS is checked

1
In the next screen, you can choose either the manual mode or fully automated mode. In manual mode, vCenter will make recommendations based on your settings and you can choose to apply it. This would be a best option to start with if you are trying out Storage DRS for the first time

2
In the next screen, you set the SDRS rules. SDRS can work based on both I/O latency and space usage.

3
Here check the option to enable I/O metric for SDRS to ensure that I/O …
1
LVL 9

Expert Comment

by:RantCan
Comment Utility
Thanks for this salient article. Clear and concise.
0
In VMware vSphere 4 1 and 5.0, if you have two or more hosts, using shared storage, (SAN/NAS) you can create a VMware vSphere Cluster and enable High Availability mode (HA), if you have the correct VMware vSphere Licensing.

VMware vSphere High Availability (HA) provides easy to use, cost effective high availability for applications running in virtual machines. In the event of VMware vSphere server failure, affected virtual machines are automatically restarted on other VMware vSphere production servers with spare capacity.

You may have noticed that after Turning On vSphere HA in Cluster settings from the vSphere Client that a Configuration Issues warning yellow box may appear on the Summary page of ALL host ESXi servers in the vSphere Cluster.

The Configuration Issues reports The number of vSphere HA heartbeat datastores for this host is 1, which is less than requried: 2
The Configuration Issues reports "The number of vSphere HA heartbeat datastores for this host is 1, which is less than requried: 2"

or another common configuration issue, when there are no shared datastores

The number of vSphere HA heartbeat datastores for this host is 0 which is
less than required 2


You will also notice there is also a yellow/orange warning triangle displayed on ALL the vSphere ESXi host servers in the vSphere Cluster.

Warning trianles on hosts in vSphere Cluster
(in the above example cluster screenshot, you may also notice "blue sleeping" icons, this indicates, the hosts are currently in standby mode. vSphere Distributed Resource Scheduling (DRS) (with Distributed …
8
LVL 38

Expert Comment

by:younghv
Comment Utility
"Yes" vote above.
Very nicely detailed instructions and should prove helpful for a lot of people.
0
LVL 19

Expert Comment

by:*** Hopeleonie ***
Comment Utility
"Yes" vote above.
Your Tutorials helped me everytime!
0
How many of you wanted to set up a proof of concept or a trial with Vmware View  to see how it works , but having no Esxi or vCenter  to do that?  This article will show you how you can get View working without having  vCenter or even ESX hosted  virtual machines .

What you need :
View Manager :One virtual or physical machine under Windows Server
VirtualDesktop machine : Any machine, either virtual (under Hyper-V or Vmware work station, or Virtual PC or Parallels) or physical that will be added to View Manager in order to be named as a virtual desktop later .
One client machine where View Client will be installed to access Virtual desktops.

And now let get to work :

1. Install View manager. It's a next next next procedure, nothing special here.
2. install the View Agent on the VirtualDesktop machine. Now here we can make the difference; View Agent, when installed through the setup.exe, is by default managed with vCenter, so tell it to not expect to be managed by vCenter; we should launch setup.exe with the command line as shown.
[b]VMware-viewagent-5.<Build Number>.exe /V"VDM_VC_MANAGED_Agent=0"[/b]

Open in new window

That tells the View Agent "do not be managed with vCenter":
VDM = Virtual Desktop Manager

VC = Vcenter
Managed_agent=0 means its not managed by vCenter


That's the big trick here; then finish the installation and reboot the machine. Now go back to View Manager and create new virtual desktop pool, using this procedure :

Connect to your View Manager console
Connect to your view manager
Click Add Pool to create new one and select Manual
0
HOW TO:  P2V, V2V for FREE - VMware vCenter Converter Standalone 5.0

VMware vCenter Converter Standalone v5
If you need to complete a Physical to Virtual (P2V), Virtual to Virtual (V2V) conversion to a VMware product (VMware Workstation, Player or vSphere) for FREE, I would recommend and use VMware vCenter Converter Standalone 5.0.

other commercial products exist, which I have used, and if you have a large estate of physical machines to migrate, these products have a scheduler and can perform automated workflows, but these are commerical products and not FREE like VMware vCenter Converter Standalone 5.0

NETIQ Platespin Migrate

Acronis vmProtect

Storagecraft Shadow Protect

Symantec System Recovery Server Edition

If the operating system is Windows 2003, Windows 2000 or Windows NT 4.0, select and earlier version of VMware vCenter Converter Standalone version 3.0.3 or 4.0, support for early operating systems has been removed now from v5.0.

if you have recently upgraded to vSphere vCenter Server 5.0, and are looking for the Convert/Import vCenter plugin which existed with 4.x, it's now longer available, and has been removed, and you will need to use  VMware vCenter Converter Standalone 5.0 for your conversions.

and if you do use VMware vCenter Converter Standalone 5.0, and you want to make your transfers 60% faster checkout my EE article here

13
LVL 38

Expert Comment

by:younghv
Comment Utility
Andy - no rush - just wanted you to know that there is an actual live person on the other end of this process.

Vic
0
LVL 38

Expert Comment

by:younghv
Comment Utility
You should consider combining all of your EE Articles and having a primer published about VMware.

"Yes" vote above.
0
HOW TO:  Resize a VMware (VMDK) Virtual Disk

To re-size a disk, select the Virtual Machine, select Edit Settings, highlight the Virtual Hard Disk, and select Edit - there is an option to increase size. This only changes the physical size of the virtual disk, it does not grow the partition on the disk. If this option is unavailable and grayed out, you may have an IDE disk, which does not support expansion, or you may have a snapshot atttached to the virtual disk.

Always ensure you have a full backup  - not a snapshot -  before any disk expansion or partition alterations.


1. Resize partition with Gparted Live CDROM

Using GParted Live CDROM to extend a partition
i. Download Gparted Live CDROM from here

ii. Upload the cdrom iso to the vSphere ESX/ESXi datastore.

iii. Mount the cdrom or iso on the virtual machine.

iv. Shutdown and restart the virtual machine booting from the cdrom.

v. Select Resize partition.

Here is a Tutorial Walkthorugh of how to resize a partition with a GParted Live CDROM

http://www.howtogeek.com/howto/windows-vista/using-gparted-to-resize-your-windows-vista-partition/

2. Using DISKPART.exe

Using Diskpart to Extend a Partition
(the system disk cannot be re-sized within the virtual machine, but other disks can be resized, eg. D: E: etc)

i. Shutdown the virtual machine.

ii. Remove disks from virtual machine (but do not delete them).

iii. Add the disks to another virtual machine.

iv. Start up virtual machine.

v. Use Diskpart in the OS to extend disks.

see here for details
16

Expert Comment

by:nytcrawlr
Comment Utility
Dell Extpart will run on 64-bit 2k3, extract the exe via winzip or 7-zip as it is only an archive that performs the arch check.  Once extracted, extpart should work fine.
0
LVL 132

Author Comment

by:Andrew Hancock (VMware vExpert / EE Fellow)
Comment Utility
Caused crashes on 64bit Windows 7 and Windows 2008 R2 hence, why I recommended a different utility, especioally when completing disk expansion, the last thin you want is corrupted partition because the utility crashed.

Up to the EE Reader to experiment, and use whatever they are happiest with, they should always have a backup before any disk expansion! But thanks for your response.
0

VMware Virtual Machine Snapshots


Please just let me open and state, if you find yourself with a snapshot issue, and are struggling, please post a question to get an Expert to help you resolve the situation, otherwise you risk data loss. Finally, Snapshots are evil, and one of the most popular questions in the VMware Zone on Experts Exchange.


A snapshot is NOT a backup of a VM; that is a gross misconception.


A snap shot is a way to preserve a point in time when the VM was running OK before making changes. A snapshot is NOT a way to get a static copy of a VM before making changes.  When you take a snapshot of a VM what happens is that a delta file gets created and the original VMDK file gets converted to a Read-Only file.  There is an active link between the original VMDK file and the new delta file.  Anything that gets written to the VM actually gets written to the delta file.   The correct way to use a snapshot is when you want to make some change to a VM like adding a new app or a patch; something that might damage the guest OS. After you apply the patch or make the change and it’s stable, you should really go into snapshot manager and delete the snapshot which will commit the changes to the original VM, delete the snap, and make the VMDK file RW. The official stance is that you really shouldn’t have more than one snap at a time and that you should not leave them out there for long periods of time. Adding more snaps and leaving them there a long time degrades the performance of the VM.  If the patch or whatever goes badly or for some reason you need to get back to the original unmodified VM, that’s possible as well.  


VMware Snapshots are really designed for patching a vritual machine, testing and then rollback if the patch did not function. It is not recommended to leave a virtual machine running on a snapshot vritual disk


1. performance when using a snapshotted disk is worse than normal

2. if the snapshot delta virtual disk runs out of datastore storage space, the virtual machine will fail.


How do I know if I have a snapshot?


1. Check the Virtual Machine, Right Click the Virtual Machine, Click Snapshot


Virtual Machine Snapshot2. Are they any Snapshots listed


Snapshots Listedin the example above, there is a snapshot listed XenDeploy#1


It is very common, that the snapshot is missing from the snapshot manager window, but the virtual machine is still running on a snapshot, and the sure way to tell, is to look at the contents of the vm folder


Virtual Machine snapshotin the above example, the pink rectangle highlights the parent disk, the red rectangle highlights the current snapshot delta disk.


if you see a virtual machine disk with a -00000x.vmdk it is likely this is a snapshot delta disk. This is the active disk which is being written to, the parent disk is no longer at present being written to. Final confirmation can be confirmed by checking the virtual machine disk properties of the VM.


Virtual Machine Snapshotthe above example, the virtual machine disk can clearly be seen as Windows-7-000001.vmdk, this is a snapshot disk.


I often hear from VMware Admins "but I do not use snapshots, so how did it get there"?


BUT, most backup applications, VMware vDR, Veeam Backup and Replication and many more, use the Snapshot API function to backup virtual machines, and can leave a VM running on a snapshot. So check your datastores, setup alerting to advise of snapshots in vCenter Server, use Nagios, vCLI, PowerCLI, many how brew scripts on the market to catch these evil snapshots before its too late.


If you find yourself in a situation with a Snapshot, and you have started the Deletion process, Be Patient, it can take minutes, hours or days to complete, and appear to hang at 95% or 99% with no feedback from vSphere Client.


We have waited 3.5 days for a snapshot to complete, which depends on how large the snapshot, and how fast the datastore the virtual machine is stored on.


So Be Patient, do not fiddle, cancel the process or restart the host, it will complete eventually. Try and Delete snapshots with the virtual machine powered off.


Just to confirm this also checkout this EE Question, which will confirm to be patient!


ESXi snapshot deletion stuck at 99%


I would highly recommend reading these two articles on VMware Virtual Machine Snapshots at the VMware Knowledgebase


Understanding Snapshots  

Snaphot Best Practices


Also check out the following Snapshot Articles by fellow VMware vExpert Eric Siebert


Part 1 : How VMware snapshots work

Part 2 : Deleting virtual machine snapshots without wasting disk space

Part 3 : Troubleshooting VMware snapshots


*******************************************************************************************************************************************

Thank you for reading my article, please leave valuable feedback. If you liked my VMware article and would like to see more VMware Articles from me, please click the Yes button near the: Was this article helpful? at the Top of this article to the right of the Article title. Thank You.

*******************************************************************************************************************************************

60
LVL 132

Author Comment

by:Andrew Hancock (VMware vExpert / EE Fellow)
Comment Utility
Answered!
0

Expert Comment

by:piaakit
Comment Utility
Yea In the vm datastore I see many xxx0001.ctk.vmdk
Shall I delete them manually ? Will this delta snapshot  
Caused vm OS got stuck in one area can't boot into the os ?
0
Got a vSphere 4.x or vSphere 5.0 performance issue? Read on

All the performance information for your vSphere 4.x or 5.0 environment is available from within vSphere vCenter, most performance monitoring tools, just present the information differently, the performance information has been obtained from vCenter Server monitoring your environment.

Performance Charts from VMware vSphere vCenter Server
Performance Charts from VMware vSphere vCenter Server
Performance Charts from VMware vSphere vCenter Server
A free application that can help you display and present the information.

Veeam Monitor for free

If you want a quick tool, to help you with wanting to know all the individual elements, then I would suggest using Veeam Monitor Free Edition

Veeam Monitor leverages Veeam Business View™ to enable performance monitoring, alerting and reporting for virtual machine groups based on criteria such as business unit, department, location, purpose, service-level agreement or any other criteria you define. This ability to perform business-centric monitoring helps to identify the business impact of a virtual infrastructure’s performance and respond accordingly. It also allows you to configure flexible alerts based on known server type characteristics and the potential business impact of an outage for more granular service-level management. You can also create targeted reports showing only the data relevant to specific business units, departments or types of server.

Source
http://www.veeam.com/esxi-monitoring-free.html.


If you want to get down …
24
LVL 1

Expert Comment

by:patron
Comment Utility
Thanks a lot for sharing such a great info..
0
LVL 132

Author Comment

by:Andrew Hancock (VMware vExpert / EE Fellow)
Comment Utility
@BKBIGB No problems!
0
HOW TO become a VMware Certified Professional 5.0.

There is no shortcut to becoming a VMware Certified Professional, this article has been put together to answer common questions, on how do I become a VCP.

1. You will need to register and attend a VMware Course, at a VMware Authorised Training Centre. The course must satisfy and meet the VCP requirements.

VMware Certified Professional on vSphere 5

Required Coursework

VMware vSphere: Fast Track [V5.0]

]VMware vSphere: Install, Configure, Manage [V5.0]

VMware vSphere: What's New [V5.0]

2. Take and Pass the Exam.

Check the Exam Blueprint to give you an idea of the content you need to know

As for learning VMware vSphere 5.0, there are many Online Forums, Documentation, Download Evaluations from VMware to test, Build a VMware Lab and also don't forget the Experts are here to help at Experts-Exchange.com

Also fellow VMware vExpert - Brian Atkinson, has just released a new VCP5 Book

http://www.prweb.com/releases/2012/5/prweb9497406.htm

VCP5 VMware Certified Professional on vSphere 5 Study Guide: Exam VCP-510

I believe this is the first Study Guide for the VCP5 Exam.

Amazon UK here

Amazon US here

Official vSphere 5.0 Training at VMware

Trainsignal Online vSphere 5.0 Training

vBrownBags
14
LVL 2

Expert Comment

by:itnifl
Comment Utility
I took a "VMware vSphere: Fast Track [V5.0]" course. Learned alot. Can recomend it!
0
LVL 132

Author Comment

by:Andrew Hancock (VMware vExpert / EE Fellow)
Comment Utility
Thanks for your feedback on the VMware vSphere: Fast Track [V5.0] course.
0
NIC teaming for ESX can be configured for both network load balancing and failover. If you have more than one NICs in the ESX host machine, you can make use of this configuration for network optimization. This is a recommended configuration in production scenarios. In case of a failover configuration, the NICs are configured in active-passive mode. In case of load balancing (which is explained here), all the involved NICs are in active mode and  the traffic from the host is distibuted among the teamed NICs.

This document explains how to create a vSwitch for teaming and the corresponding Network switch configuration.

Two or more NIC cards are required to use NIC teaming in  ESX Server.


Step 1: Create a new vSwitch and give it a network label like "VM Network”.
Add the required NICs to the switch. Procedure on how to add a NIC to a virtual switch is described below:
Select the vSwitch from the Configuration -> networking . Select Network adapters and click on add.
In the Add Adapter Wizard select the NIC card which needs to be added to the switch and click on next. If the NIC card is already attached to another virtual switch, it will be removed from it and added to the new one.
Go to next screen.
In the failover order, we can configure the active and standby adapters if required. Click next and finish the configuration.

Step 2: Configure teaming
Configuring teaming in ESX …
0

Virtualization Software


Choosing virtualization software is one of the most important steps a network administrator can take as he will be dealing with that software for a long period. Troubleshooting, ease of configuration and installation and cost are the three most important factors, the decision maker should be aware of off. It also depends on which operating systems or application server, the company will be hosting on the virtual machine. The competition between different Virtual software providers in the market is really immense.  Riding the best virtualization boat is not that easy, and choosing the right product is for a company requires a deep look on the market side and see what it is offering.

VMware and Hype-V are the two leading solutions is the virtualization market. Historically, VMware is older in the market and was known to have a great stability and online support, a lot of open forums and sources are known to be one of the most useful and successful Vmware features. Known as the leading operating systems manufacturer in the whole globe, and as the best seller of Operating systems in the world, Microsoft introduced hyper-v software to be their competitor virtualization product in the market, so they can run their own server and operating systems on.

To choose the right virtualization software, it is really useful to start by doing a comparison between the available leading products in the market, that’s why Hyper-V vs. Vmware is an ideal …
1
LVL 132

Expert Comment

by:Andrew Hancock (VMware vExpert / EE Fellow)
Comment Utility
in the screenshot by Miles..., I'm not sure what VMware product they are comparing Microsoft Windows Server 2008 Hyper-V R2 to, VMware VI Enterprise, it's not a current VMware product.

VMware vSphere 5.0 Enterprise and Enterprise Plus (current product) have a backup product included called VMware Data Recovery included.

VMware Consolidated Backup has been discontinued in 2008. End of General Support was in 2010. It's been replaced by VMware Data Recovery

 See here for End of Life Statements


In your article you state "Referring to all the above, Hyper-V will be the software used by the company as it is more reliable" - you need to qualify this statement, the review is based on out of date material and information.

both the following references are not current.

3-      Microsoft Windows Hyper-V VS VMware Virtual Infrastructure 3.5, http://www.itcomparison.com/Virtualization/MShypervvsvi35/HyperVvsvmware35esx.htm  2008
4-      http://www.milesconsultingcorp.com/Hyper-V-versus-VMware-Comparison.ASPX , Hyper-V vs. VMware Comparison


Last release of VI 3.5 was released in December 2009. End of Support was 2010.
0
VMware Disaster Recovery 2.0 and the powers of Deduplication

This article was originally written for our internal staff members comprised of mostly software engineers.

One of my biggest concerns when taking over as the Network Admin at Pyramid was the poor backup plan in place. File level backups via tape were incomplete (I have since resolved these) but worse was the backups taking place on the VM environment. Backing up the VM environment is becoming more critical as Production servers are moved to the Virtual Hosts.
 
 
 vRanger 5.2 –Inherited was 6 CPU licenses and is the legacy system for backing up the Virtual Environment. The problems with this are countless. First issue is we have 10 CPU’s on our ESX environment, meaning I’ve been playing musical licenses for the last 4 months. The cost to add 4 more CPU’s is below plus roughly $350 x 10 = $3500 annual maintenance.
 
4 - MNT VRANGER BACKUP AND REPLICATION /CPU  = $2,365.00
 

Also I get countless errors like this
 
VM Name: PYRAMEDIA
 Result: Failed
 Start Time: 3/28/2012 11:32:14 PM
 End Time: 3/28/2012 11:32:45 PM
 Duration: 0 minute(s)
 Archive Size: 0 GB
 Message: An internal error occurred during execution, please contact Vizioncore support if the error persists. Error Message: Index was outside the bounds of the array.
 
Message: vmlab1.pyramid-solutions.com is not licensed for the Backup feature.
 
Message: An internal error occurred during execution, please …
0
I work for a firm of about 30 with a healthy amount of sales but not enough to justify the expense of an enterprise level backup solution or appliance.  So I had to make my own.  

Before we went to VMware, we had been using USB hard drives as a backup target for each server which worked pretty well. Using basic Windows backup on the machines proved sufficient to provide data protection and consistency for all applications and files.  

Considering that virtualization adds a level of management between the OS and the hardware, it became obvious that a direct USB connection would no longer be possible  Having purchased the VMware vSphere Essentials Plus Kit, we were entitled to the use of VMware Data Recovery which is an awesome little on-site backup tool.  But it is not designed for offsite transport of the data right out of the box.  

Here's how we made it work:
Set Up VMware Data Recovery through the OVF tool
Add a dedup target, using a local virtual disk.  It allows for CIFS shares, but it doesn't work after you get above about 100GB of pre deduplicated data. It says it supports up to 500GB of deduplicated data on CIFS, but it starts getting inconsistent.
Add your virtual machines to the job
Note that exchange and SQL servers still require an application aware backup solution.  You can back them up with this but will still need to use ntbackup, wbadmin, or a thrid party tool to truncate the logs.
0
One of the new features of a version 7.0 or later virtual machine, supported in VMware vSphere 4.1, 5.0 or the VMware vSphere Hypervisor ESXi 4.1, ESXi 5.0 often overlooked by VMware Administrators is the ability to add and connect USB devices connected to the VMware host ESXi server to Virtual Machines. VMware refers to this as USB Passthrough.

Virtual Machine Versions 7 and above support USB Passthrough. vMotion is also supported on the virtual machine, and the USB device will stay connected to the original host, with the USB device. VMware ESXi and the Virtual Machine use a "USB over IP" mapping to remain connected, in this way virtual machines are not "locked" to hosts, which is important with load balancing in VMware DRS.

It is now possible to use USB Modems, USB Security Keys, USB Serial Devices, USB VOIP devices, USB flash drives and USB external disks to connect to virtual machines.

USB Passthrough is supported on Windows XP, Windows Vista, Windows 7, Windows 2003, and Windows 2008 and Windows 2008 R2 virtual machines. Also various Linux distributions.

The background to writing this aticle, a physical small server in our office, the VOIP Gateway which handles the VOIP international telephone calls from the UK via SIPPS gateway on the Internet - FAILED. (It is chepaer than BT Business Tariffs!). The VOIP Gateway uses a USB wireless dongle to interface with the DECT ISDN exchange. This is a real time voice and data system, that now has been
39

Expert Comment

by:Mike T
Comment Utility
Great article but for me doesnt work. I have a "Seagate RSS Expansion Desk" usb drive which works under Windows 7 but I under vmware Windows 7 it does not show up.

Under device manager is see
Universal Serial Bus (USB) Controller
"Device Status: The drivers for this device are not installed. (Code 28)

There is no driver selected for the device information set or element."

Any ideas welcome on how to get this working. It's driving me nuts
0
LVL 132

Author Comment

by:Andrew Hancock (VMware vExpert / EE Fellow)
Comment Utility
Hi Mike

I would encourage you to post a question in the VMware Topic area, and we can discuss at length and other experts can also join in, and also you can share you issue, as it's rather hidden here, as no one other than the Author tracks these messages left here!

Andrew
0
What are VMware Tools?

VMware Tools are a suite of utilities that enhances the performance of the virtual machine's guest operating system and improves management of the virtual machine. Without VMware Tools installed in your guest operating system, guest performance lacks important functionality. You can check if you have VMware Tools installed by checking the Summary of your virtual machine using the vSphere Client if using VMware vSphere 4 ot 5, or ESX/ESXi 4.x, 5.0. If VMware Tools are installed VMware Tools will read OK, an IP Address and DNS hostname will appear in the Summary page.

VMware Tools status in Summary
Installing VMware Tools on a Linux distribution should not be difficult. Unfortunately, compared to the Windows installation of VMware Tools on a Windows OS, which is fairly hands off, the Linux version is rather hands on, and requires use of the Linux console command line.

This is a popular topic on Experts Exchange in the VMware Zone, which some members still find difficult. I hope with this Tutorial Video members can quickly and easily install VMware Tools successfully with limited Linux experience.

This is the Hancock Method . It works for me. In the video, I'm installing VMware Tools on an Ubuntu Server 11.10 LTS 32-bit Linux distribution, there is no Desktop or GUI. This procedure should work for any Linux distribution, whether installed as a Virtual Machine in VMware vSphere 4.x or 5.0, VMware Workstation or VMware Player.

If you do have a…
3

VMware

34K

Solutions

17K

Contributors

VMware is virtual machine software that provides a virtualized set of hardware (a video adapter, a network adapter, and hard disk adapters) to the guest operating system. VMware virtual machines become highly portable between computers, because every host looks nearly identical to the guest. In practice, a system administrator can pause operations on a virtual machine guest, move or copy that guest to another physical computer, and there resume execution exactly at the point of suspension. VMware's enterprise software hypervisors for servers, VMware ESX and VMware ESXi are bare-metal embedded Hypervisors that run directly on server hardware without requiring an additional underlying operating system.