VMware View Client as a shell for XPe and XP Pro clients

26 June, 2009

Using the Win32 View Client on XPe or XP Pro will allow you to use the full featured View client with all the bells and whistles.  The problem is that it’s still XP and can be confusing to your users to have them log into one desktop just to send them to another virtual desktop. So how can we fix that? If you replace the shell with the View client you can eliminate the XP desktop and on a boot of the client the only interface presented to a user is the View Client. This makes logging in simple and clean. The problem with just replacing the shell with the View client is that once the user exits, logs out, or just accidentally closes the client, It  will not start again automatically. Below is a way to have the Client restart automatically and hide the needed command window.


The following instructions will hide the XP  desktop and present the user with just the View client and will restart if it gets closed. This was done on an HP t5730 Thin client but the process should be the same for most XPe Thin clients and even a repurposed XP Pro desktop.


Create a View.cmd file with the following.


@echo off

:View

“C:\Program Files\VMware\VMware View\Client\bin\wswc.exe”

goto View


Place it where ever you like,  c:\BatchFiles for example


Create a vbs script with the following in it. Place it wherever you like C:\BatchFiles for example.


Set WshShell = CreateObject(”WScript.Shell”)

WshShell.Run chr(34) & “C:\BatchFiles\view.cmd” & Chr(34), 0

Set WshShell = Nothing


Open Regedit and go to ;


HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon


Change Shell from explorer.exe to the new shell path and the Windows Scripting  command,  e.g  wscript c:\BatchFiles\view.vbs


Commit the changes to the flash drive if using XPe.


ewfmgr  c: -commit


Reboot. Enjoy the new View only interface!

Once this is done there will be no desktop for any users, including Administrator. You can still get to the Task Manager with a CTRL-ALT-DEL but the interface is gone. You can modify the Registry setting to use a specific user by logging in as that user and modifying HKEY_CURRENT_USER instead.


Distributed Power Management on x3850

5 June, 2009

While working at a customer site I have been working on setting up Distributed Power Management, DPM is an experimental feature delivered through VMware ESX 3.5 and vCenter 2.5. While having some problems with the configuration I had two goals. I wanted to keep redundancies within the current configuration and wanted to comply to the goals of the customer, which was as Green as possible.

To get the redundancy I created a single vSwitch with two portgroups one for the Service Console and one the VMotion port, with each a difference VLANs configured. At both portgroup an active physical NIC was attached which was standby on the other portgroup. My first goals was reached.

To get the second goal I selected the first internal NIC at the ESX host and configured this one attached to the VMotion portgroup. Within the portgroups I configured the auto negotiation as on the Cisco switch to. The reason for this is that is that the used NIC only support wake-on-LAN at 10 or 100 Mbit and not at 1 Gbit.

More info can be found at the following URL: http://tinyurl.com/r8bwth


Silent install without reboot

24 April, 2009

The View client can be installed in two ways. You can do a normal GUI based install what means that you click through the installation wizard or you can do a scripted or silent installation. The silent or scripted View Client installation can be personalized with loads of MSI parameters. Some of them are standard MSI, some of them are specific.

If you need to know the parameters just start a View Client installation and search for the files vmmsi.log and vminst.log. In these installation logfiles you can also find the MSI parameters used during the installation. If you want to suppress the system reboot after the View Client silent installation you could try to use the MSI parameter /norestart but it will not work. To suppress the reboot with the View Client you need to the the option: RebootYesNo.

(Screenhost from the vmmsi.log file)

To suppress the reboot after the View Client installation start the silent installation of the View Client like shown below:

VMware-viewclient-{3.x.x-xxxxxx}.exe /s /v /qn RebootYesNo=”No”


Which View Composer version is installed on my system?

21 April, 2009

As with all other Windows based applications you can find the version of the installed View Composer within  the Add/Remove Software dialog in the control panel. Just click on: Click here for support information.


View Designing

9 March, 2009

When doing a design for a View Architecture there are a lot of things to think about in difference areas, the following rules are general and can be used for doing the View design.


The following design specifications will be observed when designing the View Composer architecture:

· Every View partition with View Composer desktops requires that View Composer is installed on that container’s vCenter Server system

· Maximum of eight ESX/ESXi hosts per View Composer cluster

· Maximum of 500 vClones (linked clones) per Parent VM replica; this is a good practice for recompose/refresh operations

· Maximum of three 500 VM clusters per View container; this is to stay clear of the 2,000 VM limit in vCenter Server 2.5

· Maximum of 64 linked clones per datastore

There are a lot of other objects to observe, i will try to write them down here in the future.


VMworld 2008 – The day before

15 September, 2008

After picking up my badge en general stuff this day i found some nice info from Cisco, they were announcing the introduction of Cisco’s Virtual Switch for VMware ESX. During these days Cisco will introduce technologies and services to help the turn in the IT environment into a dynamic data center that is more scalable, more agile, and more resilient. More info will come when available.

They are still working hard to get everything done for Tuesday when vmworld will really start, tomorrow the Partner Day and the Technology Exchange is on the program.


VMware ESX and ESXi Comparison

5 September, 2008

Capability

VMware ESX

VMware ESXi

Service Console

Service Console is a standard Linux environment through which a user has privileged access to the VMware ESX kernel. This Linux-based privileged access allows you to highly customizing your environment by installing agents and drivers and executing scripts and other Linux-environment code.

VMware ESXi is designed to make the server a computing appliance. Accordingly, VMware ESXi behaves more like firmware than traditional software. To provide hardware-like security and reliability, VMware ESXi does not support a privileged access environment like the Service Console of VMware ESX. To enable interaction with agents, VMware has provisioned CIM Providers through which monitoring and management tasks – traditionally done through Service Console agents – can be performed. VMware has provisioned RCLI to allow the execution of scripts.

Remote CLI

VMware ESX Service Console has a host CLI command through which VMware ESX can be configured. ESX 3.5 Update 2 supports RCLI.

VMware ESX Service Console CLI has been ported to a Remote CLI (RCLI) for VMware ESXi. RCLI is a virtual appliance that interacts with VMware ESXi hosts to enable host configuration through scripts or specific commands.

Note: RCLI is limited to read-only access for the free version of VMware ESXi. To enable full functionality of RCLI on a VMware ESXi host, the host must be licensed with VI Foundation, VI Standard, or VI Enterprise.

The following Service Console CLI commands have not been implemented in RCLI:

  • ESXcfg-info
  • ESXcfg-resgrp
  • ESXcfg-swiscsi

Scriptable Installation

VMware ESX supports scriptable installations through utilities like KickStart.

VMware ESXi Installable does not support scriptable installations in the manner ESX does, at this time. VMware ESXi does provide support for post installation configuration script using RCLI-based configuration scripts.

Serial Cable Connectivity

VMware ESX supports interaction through direct-attached serial cable to the VMware ESX host.

VMware ESXi does not support interaction through direct-attached serial cable to the VMware ESXi host at this time.

SNMP

VMware ESX supports SNMP.

VMware ESXi supports SNMP when licensed to a VI Foundation, VI Standard, or VI Enterprise edition. The free version of VMware ESXi does not support SNMP.

Active Directory Integration

VMware ESX supports Active Directory integration through third-party agents installed on the Service Console.

VMware ESXi with a Virtual Infrastructure license and in conjunction with VirtualCenter allows users to be authenticated via Active Directory. In this configuration, users can log in directly to an ESXi host and authenticate using a local username and password.
The free version of VMware ESXi does not support Active Directory integration at this time.

HW Instrumentation

Service Console agents provide a range of HW instrumentation on VMware ESX.

VMware ESXi provides HW instrumentation through CIM Providers. Standards-based CIM Providers are distributed with all versions of VMware ESXi. VMware partners may inject their own proprietary CIM Providers in customized versions of VMware ESXi. To obtain a customized version of VMware ESXi, you typically have to purchase a server with embedded VMware ESXi through a server vendor.
At this time, HP also offers its customized VMware ESXi Installable on www.vmware.com. Dell and IBM will soon offer their customized version of VMware ESXi on www.vmware.com.
Remote console applications like Dell DRAC, HP iLO, and IBM RSA are supported with ESXi.

Note: COS agents have a longer lineage than CIM Providers and are therefore more mature. VMware is actively working with its 250+ partners to close the CIM Provider–Service Console agent gap.

Software Patches and Updates

VMware ESX software patches and upgrades behave like traditional Linux based patches and upgrades. The installation of a software patch or upgrade may require multiple system boots as the patch or upgrade may have dependencies on previous patches or upgrades.

VMware ESXi patches and updates behave like firmware patches and updates. Any given patch or update is all-inclusive of previous patches and updates. That is, installing patch version “n” includes all updates included in patch versions n-1, n-2, and so forth.

VI Web Access

VMware ESX supports managing your virtual machines through VI Web Access. You can use the VI Web Access to connect directly to the ESX host or to the VMware Infrastructure Client.

VMware ESXi does not support web access at this time.

Licensing

VMware ESX hosts can be licensed as part of a VMware Infrastructure 3 Foundation, Standard, or Enterprise suite.

VMware ESXi hosts can be individually licensed (for free) or licensed as part of a VMware Infrastructure 3 Foundation, Standard, or Enterprise suite.

Individually licensed ESXi hosts offer a subset of management capabilities (see SNMP and Remote CLI).

ESXi

(ESX not available without VI)

VI Foundation

(with ESX or ESXi)

VI Standard

(with ESX or ESXi)

VI Enterprise

(with ESX or ESXi)

Core hypervisor functionality

Yes

Yes

Yes

Yes

Virtual SMP

Yes

Yes

Yes

Yes

VMFS

Yes

Yes

Yes

Yes

VirtualCenter Agent

Yes

Yes

Yes

Update Manager

Yes

Yes

Yes

Consolidated Backup

Yes

Yes

Yes

High Availability

Yes

Yes

VMotion

Yes

Storage VMotion

Yes

DRS

Yes

DPM


VMware unveils VMDirectPath technology, Intel to support it with Nehalem

28 August, 2008

At the Intel Developer Forum (IDF) 2008, Intel showed on stage its upcoming new quad-core CPU codename Nehalem, much expected by the virtualization professionals because of the included Extended Page Tables (EPT) technology.

On top of that now there’s another reason to wait for Nehalem: the processor will support a new technology developed by VMware and called VMDirectPath.

VMDirectPath will allow ESX to avoid the emulation of network interface cards and map the physical NICs directly to the virtual machines:

Intel delivered a very interesting presentation about its effort to boost the hypervisor performance with VT-x, VT-d and VT-c technologies and slides from 27 to 32 are about VMDirectPath:

Nehalem CPUs for server use will be released no earlier than H2 2009.

VMware predicted that around that date the technology would completely cancel the performance degrade that virtualization introduces. It seems that to go there customers will have to bring with them a lot of hardware (and possibly drop a lot of flexibility).


VMware ESX and Enhanced VMotion Compatibility

27 August, 2008

The classic VMotion problem of recent times is the customer who buys tin from a vendor, only to find out that the processor number e.g. 53xx and 54xx, is actually quite significant. The principle difference which will prevent VMotion is the addition of SSE4.1 to the 54xx range of Intel processors (if you previously only had 53xx Intel processors).

An application using the SSE4.1 feature (or is aware of this feature) when VMotioned to a non-SSE4.1 host would likely blue screen trying to make use of this feature on the older host.

People then recalled the CPU mask feature in VMware – we’ll just mask it out they thought. Unfortunately VMware declared this was an unsupported mask with KB1993 and KB1991.

Note that for production environments, VMware neither supports nor recommends modifying VMotion masks for SSE3, SSE3, or SSE4.1 because of the risk of failure of the application or guest operating system after migration.

The reason soon became clear:

  • SSE features can be used by user-level code (applications).
  • Mask does not work for user-level code (i.e. applications).
  • In user-level code, CPUID is executed directly on hardware and is not intercepted by VMware.
  • Thus, VM cannot reliably hide SSE from an application

The best that customers could do was buy compatible hardware, and keep themselves right with vendor compatibility charts such as these ones from Dell and HP.

ESX 3.5 U2 brought a new feature: Enhanced VMotion Compatibility (EVC for short) which I’ll explain…

New CPUs are coming out with a facility to ‘turn off’ (mask) features that would make them VMotion incompatible with other hosts running older (compatible) CPUs.

For Intel this is called Flex Migration. It is clear that for processors that are in different families but support Flex Migration will negotiate the common feature set amongst the CPUs.

Where it is not absolutely clear, is where you have an existing cluster and you want to add in hosts with the new Flex Migration facility. You should be able to do this if you satisfy the following requirements (paste from Basic Administration Guide):

All hosts in the cluster must either have hardware live migration support(Intel FlexMigration or AMD‐V Extended Migration) or have the CPU whose baseline feature set you intend to enable for the cluster. For specific host processors supported, see Table 15‐1.

Table 15-1. Processors Supported in EVC Clusters

Vendor Baseline Processor Processors Supported
Intel Intel Core 2 (Merom) Intel Core 2 (Merom)
45nm Core 2 (Penryn)
AMD AMD Second Generation Opteron (Rev‐E/F) AMD Second Generation Opteron (Rev‐E/F)
AMD Third Generation Opteron (Barcelona)

It is therefore advised that customers buying new tin, if they cannot acquire a processor that is exactly the same or in the same family – purchase a Flex Migration enabled CPU.

It should also be clear that only masks the features on the processors, it does not turn them off. Programs which are written to guidelines will behave, those which are coded badly will see these features regardless – and more importantly will encounter issues if VMotioned to a host that used that feature. Pasted from VMware:

EVC utilizes hardware support to modify the semantics of the CPUID instruction only. It does not disable the feature itself. For example, if an attempt to disable SSE4.1 is made by applying the appropriate masks to a CPU that has these features, this feature bit indicates SSE4.1 is not available to the guest or the application, but the feature and the SSE4.1 instructions themselves (such as PTESE and PMULLD) are still available for use. This implies applications that do not use the CPUID instruction to determine the list of supported features, but use try‐catch undefined instructions (#UD) instead, can still detect the existence of this feature.

Therefore, for EVC to be useful, application developers must adhere to recommended guidelines on feature detection. CPU vendors recommend that software programmers query CPUID prior to using special instructions and features available on their CPUs. If this guideline is followed by programmers, EVC is a reliable mechanism for live migration of x86 virtual machines across varied hardware. Thus, you can use EVC to enable an entire cluster to use the same set of basic features, allowing migration with VMotion across any two nodes in the cluster. VirtualCenter can also set up new hardware add‐ons to the cluster and apply these masks.

Intel provide a comparison tool to check beforehand if a CPU possesses Flex Migration capability.

Further Information on this subject can be located in the VMware VMotion Guide and the ESX 3.5U2 Basic Admin Guide Page 238 Onwards.

Bron: http://www.novosco.com/articles/2008/08/19/vmware-esx-and-enhanced-vmotion-compatibility/


ESX3: Scripted Install is disabled

27 August, 2008

When you click the Log In To Script Installer link, you are presented with the following error

Image

To fix this problem you will need to login as ‘root’ to the console of your ESX host and edit a file. By default the scripted installer applet is disabled - to enable it follow the process below:

1. Log in to the console using your root account

2. Using VI or NANO open the following file /usr/lib/vmware/webAccess/tomcat/apache-tomcat-5.5.17/webapps/ui/WEB-INF/struts-config.xml

3. We need to comment out and un-comment some lines. Luckily they are in the same section. You need to find the scripted install handler section.

4. I have marked in red the line of code we need to comment out and the section to un-comment in blue, in the picture below.

To comment out the line, we use the <!– to start the comment and close the comment using –>

Image

5. In the screenshot below you can see the changes we have made to the section. Save the changes and exit the editor.

Image

6. To have our changes take effect the configuration file needs to be re-read by the web server so we will need to restart the webAccess service.

Enter service vmware-webAccess restart to restart the webAccess service

Bron: xtravirt