General Installation Guidelines VDI

12 June, 2008

The following guidelines apply to all installations types (new installations and upgrades).

  • Synchronize time — Make sure that you have synchronized time across VDM Connection Server and desktop virtual machines. By default, virtual machines pick up the time from the ESX host at boot up and you may have to synchronize time on the ESX hosts through the ntpd service.
  • Validate your Internet Explorer settings — VDM Client uses Microsoft Internet Explorer� internet settings, including proxy settings, when connecting to VDM Connection Server. Ensure that your Internet Explorer settings are accurate and that you can access the VDM Connection Server URL through Internet Explorer.
  • Before creating an automatically provisioned desktop pool, do the following:
    • Validate the VirtualCenter guest customization specification if you intend to use one — Make sure that the guest customization specification in VirtualCenter is accurate. You should use VirtualCenter to deploy and customize a VM from your template using that customization specification and fully test the resulting VM (in other words, DHCP, authentication) before using that customization specification in VDM Administrator.
    • Validate network ports on ESX — Make sure you have a sufficient number of ports on the virtual switch which is used for the guest VMs. The default value for ESX server is 24; it may not be sufficient when creating a large pool of desktop VMs.
  • Install required Microsoft Windows patches — For Windows XP desktop VMs, make sure you have RDP patches referenced by Microsoft Knowledge Base (KB) articles 323497 and 884020. Failure to do this may result in a Windows Sockets failed error message on the client. You can find these KB articles at the following URLs:
  • It is recommended that you upgrade VDM Client machines to use Microsoft Remote Desktop Connection (RDC) 6.0 — This recommendation applies to machines running Windows XP and Windows XPe. Windows 2000 does not support RDC 6.0.Windows Vista comes with RDC 6.0 installed.RDC 6.0 can be downloaded at the following Microsoft download site: Microsoft downloads
  • VDM does not support using link-local (169.254.x.x) addresses for desktop virtual machines — Configure desktop virtual machines to use DHCP or static IP addresses.

VDM 2.1 what’s new and what are the issues

12 June, 2008

VDM 2.1 includes the following improvements and new features

  • Pools spanning datastores in order to better manage resources
  • Localization of VDM Web Access and Client for Windows in Japanese and German
  • Command line parameters for VDM Client
  • Integrate MMR multimedia extensions DLL with VDM Client (Windows XP)
  • Allow end users to change password
  • Multiple sessions per user within a pool
  • Improvements to logging
  • Allow end users to restart their VM
  • Defined process for bulk import of individual desktops
  • VDM Configuration Backup (command-line only)
  • Allow blocking of incoming RDP connections that are not from VDM Clients
  • Allow VDM administrators to set default desktop (command line only)

The latest advancements in Virtual Desktop Manager 2.1 include:

  • Improved Scalability: VMware Virtual Desktop Manager 2.1 can run up to 5,000 concurrent connections per cluster of Virtual Desktop Manager servers and provides enterprises the ability to scale to tens of thousands of desktop connections through the use of multiple clusters. In addition, VMware Virtual Desktop Manager enables hundreds of desktop virtual machines to be created in a single storage pool. This enhancement gives customers unparalleled scalability to extend investments in their storage systems.
  • Enhanced End User Experience: VMware Virtual Desktop Manager 2.1 offers a new multi-media redirection feature for XP desktops. This feature redirects certain multi-media codecs to the local PC for rendering of full-motion video and audio.
  • Improved manageability: VMware Virtual Desktop Manager 2.1 features a new transaction logging capability for improved management.
  • Expanded Support for Global Organizations: Localized versions are now available in German and Japanese, to accelerate user adoption in global organizations.

Known issues fixed in VDM 2.1

Known Issues and Restrictions in VDM 2.1

The following are known issues and restrictions for VMware VDM 2.1. The items listed in this section are links to Knowledge Base articles.

VDM Administrator

VDM Connection Server

VDM Web Access

VDM Client

USB Redirection

The USB redirection feature of VDM Client provides generic support for redirecting locally attached USB devices to the desktop virtual machine. The feature has been successfully tested with a range of devices, including printers, scanners, mass storage devices, phones and PDAs. See the KB article at the following URL for details about known issues with redirecting specific USB devices in VDM http://www.vmware.com/info?id=346 .


turn off debug in VMWare 6.5beta (windows)

12 June, 2008

I’m playing with VMWare workstation 6.5beta(build-91182) and was looking to do some advanced configurations, specifically running ESX 3.5U1 , therefore i was interested in maximum performance to squeak out as much out of my laptop….

A couple things i found out really quick 1) set the Virtualization setting in your systems BIOS if you have one. My core duo did , my centrino did not. This speeded things up considerably, i’d say by a factor of 10.

2) The VMWare workstation process wants to run VM’s with the vmware-vmx-debug binary, and it indicates that you must live with this. Upon closer inspection in the application directory (C:\Program Files\VMware\VMware Workstation) I found vmware-vmx and its about 2MB smaller binary. So what I did was rename vmware-vmx-debug to vmware-vmx-debug-orig and then copy vmware-vmx to vmware-vmx-debug.

Bron: jthomasser.wordpress.com


ESX 3.5 start vm’s inside workstation 6.5 beta1

12 June, 2008
additional note:
3.5i build 82664 works for me too – i can start VMs …essential entries I used for 3.5.i :

config.version = “8″
deploymentPlatform = “windows”
displayName = “esx35i”
ethernet0.present = “TRUE”
ethernet0.virtualdev = “e1000″
floppy0.present = “FALSE”
guestOS = “other”
ide1:0.autodetect = “TRUE”
ide1:0.deviceType = “cdrom-image”
ide1:0.fileName = “G:\esx35\esx-3.5.0-64607.iso”
ide1:0.present = “TRUE”
memsize = “1024″
monitor.virtual_exec = “hardware”
monitor_control.restrict_backdoor = “true”
numvcpus = “1″
scsi0.present = “TRUE”
scsi0.virtualDev = “lsilogic”
scsi0:0.fileName = “esx35i-system.vmdk”
scsi0:0.present = “TRUE”
sound.present = “FALSE”
virtualHW.version = “6″

Bron: ntpro.nl

Undocumented VCB config.js feature

12 June, 2008

Duncan over at YellowBricks.com found a undocumented fearure in the VCB config.js file

One of my customers wanted to use the default VCB framework but did not want to quiesce the VM for several reasons. (Databases, Active Directory etc.) I could not find an option in the config.js file but noticed the following in the file glue.js:

// A fallback to be able to switch to non-quiesced snapshots
if (typeof(NO_QUIESCE) != "undefined") {
cmd +="-Q 0 ";
}

In other words, setting the option “NO_QUIESCE” with no value in config.js results in the VM not being quiesced, default it will quiesce the VM! I added the following line to the  config.js file to accomplish this:

NO_QUIESCE=””;


Administrative rights requirement for use of VDM USB Driver

12 June, 2008

USB redirection requires administrative privileges on both client and desktop virtual machines. If the user does not have the necessary privileges in both places, the USB device redirection functionality will be unavailable.

For Windows Vista clients with User Access Control enabled (the default), to run VDM Client with administrative privileges, follow the instructions in Microsoft KB 922708 on how to run a program as an administrator: http://support.microsoft.com/kb/922708

For Windows Vista guests, disable User Account Control so that VDM Agent components run with administrative rights (running the wssm.exe process as an administrator is not sufficient, as Windows Defender will block this process running with administrative rights at startup when UAC is enabled).


Troubleshooting VMware(ESX) snapshots

12 June, 2008

Virtualization administrators can use snapshots on VMware ESX to travel back in time and figure out what went wrong with their virtual machines (VMs). But what do you do when your snapshots start acting funny? In this tip, we’ll troubleshoot potential problems that may come up when using snapshots on ESX.

Locating VMs that have snapshots
Trying to find out which VMs have snapshots can be challenging. There is no centralized way to do this built into the VMware Infrastructure Client or VirtualCenter, so you should periodically check your ESX servers for old snapshots that need to be deleted. There are a few methods you can use to accomplish this.

Method 1 – use the Find command on the Service Console

  1. Login to service console.
  2. Change to your /vmfs/volumes/ directory.
  3. Type find -iname “*-delta.vmdk” -mtime +7 -ls to find snapshot files that have not been modified in 7 days or simply find -iname “*-delta.vmdk” to find all snapshot files.

Method 2 – Use a free Perl script from Dominic Rivera called Snapalert. This script uses the VI Perl toolkit to talk directly to VirtualCenter and makes sure that no components need to be installed on each host (also works with ESXi Installable). Optionally, the script can also generate an email report.

Method 3 – Use a free utility from Xtravirt called Snaphunter, which can report back on the snaphot status of VMs from multiple ESX Servers and also send email reports.

Method 4 – Query the VirtualCenter SQL database. VirtualCenter keeps track of all the snapshots on every host in its VPX_SNAPSHOT table. I’ve written a Visual Basic Script (VBS) that queries this table to display a list of VMs with running snapshots. This method works okay. But it relies on database tables, which could potentially change in future versions of VirtualCenter.

Dealing with snapshots that do not delete properly
Occasionally, a snapshot will not delete properly leaving an active snapshot for a VM. This can happen when using VMware Consolidated Backup or when deleting snapshots through Snapshot Manager. In most cases, the snapshot will not appear in the Snapshot Manager for you to delete. The only indication that a snapshot may still exist is the presence of delta files in the VM’s directory.

If you do have a snapshot running that is not in Snapshot Manager, you can attempt to delete it one of two ways. First, create a new snapshot using the VI Client and delete all snapshots from the snapshot manager after the new one has been created. Alternatively, login to the ESX Service Console, switch to the VM’s home directory and create a new snapshot by typing vmware-cmd createsnapshot . Wait for the snapshot to be created and type vmware-cmd removesnapshots. When it completes, check to see if the delta files have been deleted. If they have, then it was successfully completed.

If the delta files weren’t deleted, check the vmx file for the VM and locate the lines starting with scsi. If the VM is configured with only one virtual disk, it is usually scsi0:0 (if .present is false, it is a non-existent drive that you can ignore). The .fileName should be using the original disk file that was created with the VM and is usually the same name as your VM. If this is the case, then your VM is not using the snapshot files. If it has a -00000# in the filename, it is currently using a snapshot file. The following makes this a little clearer: VM with no snapshots: scsi0:0.present = "true" scsi0:0.fileName = "myvmname.vmdk" VM with snapshots: scsi0:0.present = "true" scsi0:0.fileName = "myvmname-000001.vmdk"

If this is the case and the above operation failed, your only other option is to either clone the VM or clone the VM’s disk file. To clone the VM you can use VMware Converter to create a new clone of your existing VM and, when completed, shutdown and delete the old VM.

Another method is to shutdown the VM, login to the Service Console, switch to the VM’s directory and clone the VM’s disk file by using vmkfstools and specifying the snapshot file as the source disk, i.e. “vmkfstools –i myvmname-000001.vmdk myvmnamenew.vmdk” Once it completes go into the settings for the VM, remove (don’t delete) the hard disk, add a new hard disk and browse to the newly created disk file. Power on the VM and verify everything is working before you delete the old disk and delta files.

Changing snapshot file locations
By default, the snapshots are written to the home directory of each virtual machine. Sometimes you may want to change this to not take up space on the volume of which your VM resides. It is possible to individually specify a new working directory for snapshots on each VM. Both snapshots and vswp files are written to this directory when you do this.

Be warned, though. If your VM is on shared storage and you specify local storage as a location you will not be able to use features like VMotion/HA/DRS. To do this follow these steps:

  1. Power off your VM and login to the Service Console.
  2. Edit the VMX file of your VM with Nano or Vi
  3. Add a new line using the following syntax: workingDir = “/vmfs/volumes/SnapVolume/Snapshots/”
  4. If you want your vswp file to stay in the VM’s directory, add the following line to the VMX file: sched.swap.dir = “/vmfs/volumes/VM-Volume1/MyVM/”. This step is optional. Furthermore, you do not need to worry about updating the existing “sched.swap.derivedName” parameter because it is generated by the VM and written to the config file each time the VM powers on.
  5. Power on your VM and your vswp, vmsn and snapshot (delta-vmdk) files will now be located in this directory

Using VMotion with snapshots:
If you try to VMotion a VM with running snapshots from one host to another you will receive the following warning: “Reverting to snapshot would generate error (warnings) on the destination host.” This simply warns that if you have changed the default locations for any files of the VM (like snapshot or vswp files as detailed above), the VM will crash when the migration is complete. This is true if the destination host cannot access the same storage that the files are located on as the source host.

So if your VM was on shared storage and configured so that the snapshot files were on local storage, then you would have a problem if you VMotioned the VM to another host. If your VM has all its files on shared storage, and that storage is accessible to all ESX hosts then you’re in good shape. VMware recommends that you commit all snapshots before VMotioning VMs. But if you do not do this, it will work just fine.

Bron: searchvmware.techtarget.com