Pages

Thursday, February 10, 2011

How to Update VMware View Server's Client Installer from Website

With the recent Vmware View Client build updates to fix problems with Microsoft KB 2482017 Microsoft KB 246702 and my other post. I figured I'd post how to update the VMware View Server website so that future clients get the new build as this change is really easy.

First download the newest client from here. Save both the 32 bit and 64 bit versions as will need to copy them to the server. Next we need to browse the folder structure of our VMware View Server to the following location.
"\\<ViewServer>\c$\Program Files\VMware\VMware View\Server\broker\webapps\downloads.war"
It should look something like this.

All we really need to do is copy the software we already downloaded. (VMware-viewclient-4.5.0-353760.exe and VMware-viewclient-x86_64-4.5.0-353760.exe) and rename them in the folder to match the already existing files.

So backup somewhere first then delete VMware-viewclient.exe and VMware-viewclient-x86_64.exe files.

Then rename VMware-viewclient-4.5.0-353760.exe to VMware-viewclient.exe and copy and replace it to the downloads.war folder.

Do the same VMware-viewclient-x86_64-4.5.0-353760.exe renaming it to VMware-viewclient-x86_64.exe copy and replace it to the downloads.war folder.

To test that this works navgate to https://YourViewServer/ and download the 32 bit and 64 bit clients. Save them and right click the exe's and open the properties on the filies. Go to details and notice the new product version shows the correct build number.


As for fixing existing clients they must uninstall the previous version, you could wrap these exe's so that they first uninstalled any previous versions and then installed the wrapped version. Let me know if anyone has problems following this.

Wednesday, February 9, 2011

VMware View Windows 7 Client can't Connect to View Sever

Update 3 on 2011-04-22 - It was pointed out that I never said here that rather uninstalling these patches you really should have users update their client build that was released by Vmware the day after the Microsoft patches were released. I talk here about how to offer the cleint to your users.

Content below this is outdated.


Update 2 on 2011-02-10 - I wrote up a post here on how to load the new Vmware Client Build into your view server so that clients can download it instead of the old build.

Update 1 on 2011-02-09 - the VMware KB below was actually change to list the two Mircrosoft KB's I listed here. Also they changed the fix as update the Vmware View Client.

This morning we found our lab of Windows 7 View Clients all unable to connect to the View Server. They weren't able to even get the the user login prompt. Instead the Windows 7 View Clients would say connecting and they seem to lockup the View process.  The cause turns out the be windows updates released this morning.

Vmware Posed a KB on the issue (Unable to connect from the Windows 7 Client to the View Connection Server after installing the patch in Microsoft Knowledge Base article 2482017) however VMware only listed Windows KB 2482017 as the problem. Uninstalling this patch only only seemed to make the failing connection fail out rather than locking up.

Solution
We found that uninstalling that alone doesn't resolve the problem and yes we allowed reboots. However by removing both Microsoft update KB2482017 and KB2467023 together restored the machine to proper working order.

Uninstall
Microsoft KB 2482017
Microsoft KB 2467023

Thursday, February 3, 2011

Sysprep and Settings Autologon Keys with FirstLogonCommands

Ran into small problem today when setting up a Vmware View Repurposed Thin Client. The behavior i wanted has the Windows 7 machine running sysprep. On first boot it autologon's to the local administrator account. On that first logon it runs all the nessary FirstLogonCommands from the sysrep unattended file. In those commands are the nessary commands to change the autologon to have it login to a local viewuser account that has had it window shell replaced. The problem was that the FirstLogonCommands where failing at setting the autologon registry keys correctly.

Problem
It turns out that because AutoLogonCount is set to 1, on logon it decrements it to zero. On logoff and reboot when Windows 7 sees the AutoLogonCount set to zero it deletes the keys "AutoAdminLogon", "AutoLogonCount", and "DefaultPassword" from the registry. Those same values I had just set for the ViewUser.

Solution
The easy solution is easy, I just have to add a command to delete the AutoAdminLogon key from the registry my self. Then Windows never goes back and cleans up the Auto Logon Registry keys that where just set.

<AutoLogon>
    <Password>
        <Value>password</Value>
        <PlainText>true</PlainText>
    </Password>
    <Domain>.</Domain>
    <Enabled>true</Enabled>
    <LogonCount>1</LogonCount>
    <Username>Administrator</Username>
</AutoLogon>

This is how it will look in the sysprep unattended file to set the autologon after the administrator autologon.

      <SynchronousCommand wcm:action="add">
        <CommandLine>cmd /c reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v AutoLogonCount</CommandLine>
        <Description>Remove AutoLogonCount so that other autologon settings stay</Description>
        <Order>18</Order>
        <RequiresUserInput>false</RequiresUserInput>
      </SynchronousCommand>
      <SynchronousCommand wcm:action="add">
        <CommandLine>cmd /c reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultDomainName /t Reg_SZ /d .</CommandLine>
        <Description>Set default Domain for autologon</Description>
        <Order>19</Order>
        <RequiresUserInput>false</RequiresUserInput>
      </SynchronousCommand>
      <SynchronousCommand wcm:action="add">
        <CommandLine>cmd /c reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultUserName /t Reg_SZ /d ViewUser</CommandLine>
        <Description>Set default UserName for autologon</Description>
        <Order>20</Order>
        <RequiresUserInput>false</RequiresUserInput>
      </SynchronousCommand>
      <SynchronousCommand wcm:action="add">
        <CommandLine>cmd /c reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultPassword /t Reg_SZ /d password</CommandLine>
        <Description>Set default Password for autologon</Description>
        <Order>21</Order>
        <RequiresUserInput>false</RequiresUserInput>
      </SynchronousCommand>
      <SynchronousCommand wcm:action="add">
        <CommandLine>cmd /c reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v AutoAdminLogon /t Reg_SZ /d 1</CommandLine>
        <Description>Set AutoLogon to enabled </Description>
        <Order>22</Order>

Tuesday, February 1, 2011

Password Manager Pro Service doesn't start Database (mysql)

At work we use and recommend "ManageEngine Password Manager Pro". However lately we've had a problem with the Password Manager Pro Windows Service would not start correctly. For reasons that were not clear; the service would stop seconds after starting. After looking into it I found that the mysql process was never being launched. As a part time fix I created a bat file on the server to manually start the Password Manager Pro Database. However this only worked as long as my account stayed logged into the machine.

cd "\Program Files (x86)\PMP\bin"
startdb.bat 2345
pause

Final Solution
After a support call with ManageEngine they reported the following.

Please add the path for 'findstr' in the environmental variables. You can Right Click My Computer-->Properties-->Advanced Tab-->Environmental Variables and add the path of the findstr.exe file which will be in WINDOWS\system32 folder. We use findstr command to fetch the database password which is present in databaseparams.conf file for starting the database while you start PMP from services console.
However looking at the system path variable it included "C:\Windows\system32", upon further looking by setting the service to start with a user account. And then making sure that user account had "C:\Windows\system32" in their user variable resolved the service problems. Not the best solution but a workable one.

Environment Variables

Thursday, January 13, 2011

Find VMX files and Add to Inventory

Sorry there hasn't been many posts of late. Been really busy with VMware problems at work. Trust me there are a ton of upcoming posts on the subject. But for now here a helpful hint on adding VMware VM's back to a ESX Host. I ran into this because I've been migrating ESX hosts and their VM's from one Vmware vCenter to another. I'll make another post on the reason why but for now I wanted to note a faster method in the GUI to do so.

The storage being used by the ESX hosts are the same on both vCenters so you only have to remove the VM from Inventory on the old vCenter and then find the *.vmx file in the DataStore on the new vCenter. Right Click it and say add to Inventory.  So far so good, simple if only doing a couple VM's but i'm doing hundreds. Thus Navigating the Folder structure of the dataStore and then finding the vmx file takes a bit. I found it to be much faster to search the datastore by Virtual Machines. 

With this I don't have to navigate the folder structure and I can right Click them to add to Inventory. This works better than just searching for *.vmx files because when you search for those it doesn't allow you to right click to add to inventory.

Wednesday, December 15, 2010

Grant Local Administrators MS SQL SysAdmin Rights while not a SysAdmin

Recently had a problem where an Microsoft SQL instance on a Development server was in accessible. The server was no longer bound to the domain and the local Windows Administrator accounts didn't have sysadmin access to the SQL. I found a great post over at David Browne's - Batch File to Grant Local Administrators a Sysadmin Login in SQL Server on the method by which you could give access to the administrative accounts.

The outcome is that if you have Administrator access to the machine you can ways give yourself Full access to the databases.

Thursday, December 9, 2010

Nexus 1000 Interface resetting when only member of Port-Channel

This should be the first of many posts on configuring VMware ESX Hosts to use the Nexus 1000. This is a work in progress. First and foremost, I am not a networking guy and this is a very complicated configuration. The networking admin where I work, Chris Johnson, is very good and has been teaching me as we work out the problems. I'm learning this stuff with you and please post any help you can. I'll try and do the same.

One of the thousand problems I've been working with actually came the host we use to migrate machines on and off the nexus switches. We have some hosts that use the regular Vmware Distributed virtual switch (DVS) and we have test hosts that use the Nexus v1000 Distributed virtual switch.
  • All our VMware ESX hosts use Dual Port 10 Gig FCoE Emulex cards setup as trunks.
  • All hosts also have two 100 MB Nics
    • One is for for the lights out management, (Dell Remote Management Cards and a really crappy IBM knock off).
    • One is for service console not on the distributed virtual switch but the normal Virtual Switch. The service console isn't on the distributed virtual switch because we've had to many problems managing the hosts when the Emulex cards and/or nexus fail.
One host has a single 10G nic on the regular Vmware Distributed virtual switch and its other 10G nic  on Nexus v1000 Distributed virtual switch. This host is for migrating machines on and off the nexus hosts. As a result the the Nexus 10g Nic interface was setup in a port-channel by itself. The result was that the interface kept reseting every minute. It would say up for 30 seconds, then off line for 30 seconds.

Here is how this looked in the logs.

Nexus 1000 Command: show logging last 100
2010 Dec 7 12:12:07 ac02-ns1-01 %ETHPORT-5-IF_DOWN_INITIALIZING: Interface Ethernet6/3 is down (Initializing)
2010 Dec 7 12:12:07 ac02-ns1-01 %ETHPORT-5-SPEED: Interface port-channel4, operational speed changed to 10 Gbps
2010 Dec 7 12:12:07 ac02-ns1-01 %ETHPORT-5-IF_DUPLEX: Interface port-channel4, operational duplex mode changed to Full
2010 Dec 7 12:12:07 ac02-ns1-01 %ETHPORT-5-IF_RX_FLOW_CONTROL: Interface port-channel4, operational Receive Flow Contol state changed to on
2010 Dec 7 12:12:07 ac02-ns1-01 %ETHPORT-5-IF_TX_FLOW_CONTROL: Interface port-channel4, operational Transmit Flow Contol state changed to on
2010 Dec 7 12:12:40 ac02-ns1-01 %ETH_PORT_CHANNEL-4-PORT_INDIVIDUAL: port Ethernet6/3 is operationally individual
2010 Dec 7 12:12:40 ac02-ns1-01 %ETHPORT-5-IF_UP: Interface Ethernet6/3 is up in mode trunk
2010 Dec 7 12:13:07 ac02-ns1-01 %ETHPORT-5-IF_DOWN_INITIALIZING: Interface Ethernet6/3 is down (Initializing)
2010 Dec 7 12:13:08 ac02-ns1-01 %ETHPORT-5-SPEED: Interface port-channel4, operational speed changed to 10 Gbps
2010 Dec 7 12:13:08 ac02-ns1-01 %ETHPORT-5-IF_DUPLEX: Interface port-channel4, operational duplex mode changed to Full
2010 Dec 7 12:13:08 ac02-ns1-01 %ETHPORT-5-IF_RX_FLOW_CONTROL: Interface port-channel4, operational Receive Flow Contol state changed to on
2010 Dec 7 12:13:08 ac02-ns1-01 %ETHPORT-5-IF_TX_FLOW_CONTROL: Interface port-channel4, operational Transmit Flow Contol state changed to on
2010 Dec 7 12:13:44 ac02-ns1-01 %ETH_PORT_CHANNEL-4-PORT_INDIVIDUAL: port Ethernet6/3 is operationally individual
2010 Dec 7 12:13:44 ac02-ns1-01 %ETHPORT-5-IF_UP: Interface Ethernet6/3 is up in mode trunk
2010 Dec 7 12:14:08 ac02-ns1-01 %ETHPORT-5-IF_DOWN_INITIALIZING: Interface Ethernet6/3 is down (Initializing)
2010 Dec 7 12:14:08 ac02-ns1-01 %ETHPORT-5-SPEED: Interface port-channel4, operational speed changed to 10 Gbps
2010 Dec 7 12:14:08 ac02-ns1-01 %ETHPORT-5-IF_DUPLEX: Interface port-channel4, operational duplex mode changed to Full
2010 Dec 7 12:14:08 ac02-ns1-01 %ETHPORT-5-IF_RX_FLOW_CONTROL: Interface port-channel4, operational Receive Flow Contol state changed to on
2010 Dec 7 12:14:08 ac02-ns1-01 %ETHPORT-5-IF_TX_FLOW_CONTROL: Interface port-channel4, operational Transmit Flow Contol state changed to on
2010 Dec 7 12:14:41 ac02-ns1-01 %ETH_PORT_CHANNEL-4-PORT_INDIVIDUAL: port Ethernet6/3 is operationally individual
2010 Dec 7 12:14:41 ac02-ns1-01 %ETHPORT-5-IF_UP: Interface Ethernet6/3 is up in mode trunk

ESX Command: tail /var/log/vmkernel -n 30
Dec  7 11:43:02 nkuvmhost9 vmkernel:
Dec  7 11:43:30 nkuvmhost9 vmkernel: 3:21:34:09.172 cpu8:4531)Need to send MAC Move for Inband Port
Dec  7 11:43:30 nkuvmhost9 vmkernel:
Dec  7 11:44:02 nkuvmhost9 vmkernel: 3:21:34:41.376 cpu3:4319)Not removing sys vlan 60 from the ltl 18
Dec  7 11:44:02 nkuvmhost9 vmkernel:
Dec  7 11:44:02 nkuvmhost9 vmkernel: 3:21:34:41.376 cpu3:4319)Not removing sys vlan 70 from the ltl 18
Dec  7 11:44:02 nkuvmhost9 vmkernel:
Dec  7 11:44:02 nkuvmhost9 vmkernel: 3:21:34:41.376 cpu3:4319)Not removing sys vlan 200 from the ltl 18
Dec  7 11:44:02 nkuvmhost9 vmkernel:
Dec  7 11:44:02 nkuvmhost9 vmkernel: 3:21:34:41.376 cpu3:4319)Not removing sys vlan 268 from the ltl 18
Dec  7 11:44:02 nkuvmhost9 vmkernel:
Dec  7 11:44:02 nkuvmhost9 vmkernel: 3:21:34:41.376 cpu3:4319)Not removing sys vlan 274 from the ltl 18
Dec  7 11:44:02 nkuvmhost9 vmkernel:
Dec  7 11:44:02 nkuvmhost9 vmkernel: 3:21:34:41.376 cpu3:4319)Not removing sys vlan 275 from the ltl 18
Dec  7 11:44:02 nkuvmhost9 vmkernel:
Dec  7 11:44:31 nkuvmhost9 vmkernel: 3:21:35:10.172 cpu8:4104)Need to send MAC Move for Inband Port
Dec  7 11:44:31 nkuvmhost9 vmkernel:
Dec  7 11:45:02 nkuvmhost9 vmkernel: 3:21:35:41.376 cpu8:4319)Not removing sys vlan 60 from the ltl 18
Dec  7 11:45:02 nkuvmhost9 vmkernel:
Dec  7 11:45:02 nkuvmhost9 vmkernel: 3:21:35:41.376 cpu8:4319)Not removing sys vlan 70 from the ltl 18
Dec  7 11:45:02 nkuvmhost9 vmkernel:
Dec  7 11:45:02 nkuvmhost9 vmkernel: 3:21:35:41.376 cpu8:4319)Not removing sys vlan 200 from the ltl 18
Dec  7 11:45:02 nkuvmhost9 vmkernel:
Dec  7 11:45:02 nkuvmhost9 vmkernel: 3:21:35:41.376 cpu8:4319)Not removing sys vlan 268 from the ltl 18
Dec  7 11:45:02 nkuvmhost9 vmkernel:
Dec  7 11:45:02 nkuvmhost9 vmkernel: 3:21:35:41.377 cpu8:4319)Not removing sys vlan 274 from the ltl 18
Dec  7 11:45:02 nkuvmhost9 vmkernel:
Dec  7 11:45:02 nkuvmhost9 vmkernel: 3:21:35:41.377 cpu8:4319)Not removing sys vlan 275 from the ltl 18
Dec  7 11:45:02 nkuvmhost9 vmkernel:
Dec  7 11:45:32 nkuvmhost9 vmkernel: 3:21:36:11.172 cpu8:4531)Need to send MAC Move for Inband Port

It seems we can hide this issue if we remove the interface from the port-channel. 

Warning: Before you can disable Vpc (Virutal port channel) you must remove all but one nic it from the Distubed switch in ESX.

An example on how to remove an interface from a port-channel.
  • > conf
  • > interface ethernet 6/3
  • > no channel-group 21 mode active
But why does it fail in the first place when its the single member of the port-channel?

Post a comment if you have any idea why or over at at my post at http://communities.vmware.com/message/1661219#1661219.