Pages

Showing posts with label VMWare. Show all posts
Showing posts with label VMWare. Show all posts

Wednesday, September 19, 2012

Vmware ESXi 5.0 update 1 Sending Traffic out unused VMNIC because of Failback

We've had some troubled with our Equallogic SAN Performance which lead to us really looking at the iSCSI/Equallogic best practices. This post with a few others will address what we've learned and I wish I could say the Support call to Dell Equallogic Team has been really useful but expect for the exception of one tech named "Chris" that really shared some useful information on the Equallogic side of things we've been on our own for the last 3 weeks.

One of those problems I noticed and shared with the Equallogic team was that following Equallogic's Configuring and Installing the EqualLogic Multipathing Extension Module for VMware vSphere and PS Series SANs  guide to MPIO for iSCSI targets Traffic on the ESXi Host was coming out of the incorrect  vmnic.

The Environment:

  • ESXi Host 5.0.0 build 768111 fully patched as of 9-16-2012
  • Dell Equallogic PS6100XS with firmware 5.2.5
  • Using EqualLogic-ESX-Multipathing-Module v1.1.1

The Problem

If you follow the install guide for the EqualLogic-ESX-Multipathing-Module and use the setup.pl script for the configuring of a vSwitch or Distributed Switch  (vDS) you'll create two ISCSI vmk's and a storage heartbeat vmk.
vSwitch Setup for just iSCSI
On both of those iSCSI networks you configure Nic Teaming and Failover to only use one of Physical Adapters and mark the other unsed and of course alterternate which one is marked unused for the other ISCSI Network.


The Dell setup.pl script marks the failback to No on each iSCSI Network. So  following these best practices in my setup I would expect that vmk2 traffic could only come out vmnic2 as vmnic3 is set to be Unused. And vise versa vmk3 traffic would only come out vmnic3 as vmnic2 is marked as Unused for it.


However when I SSH to the ESXi host and run "esxtop" and hit "n" for network I see the following showing that vmk2 is infact using that what is suppose to be an "unused" vmnic3.  I pointed this out to Dell and they sais it was odd didn't have any answers yet they ever followed up with me on it. I got asked for vmware supports but not even asked to recreate it.



The Fix

After setting this up every way I could think of; trying it using both vSwitches and Distributed Switches, rebuilding my hosts from CD, trying different ESX hosts with different hardware, tried hosts on different network infrastructure. All with the same issue of it using the incorrect nic.

After all I used the script to create the setup to ensure it was correct and best practice. I create it by hand instead of the script and double checked every setting to ensure everything matched. Still no luck. So of course after it was already time to go home I checked ESXTOP one last time on a ESX host I wasn't finished configuring  and behold it was working correctly. Each vmk was bound to its correct vmnic.

vmk using the correct vmnic
What I hadn't done was set the failback to no yet. Everything else was done.


The Reason this Happened
After doing some reading in this epic post by Joshua Townsend that laid out the resent changes round VMware iSCSI Networking. In fact his quick fix at the time was to in fact turn on failback to no. Looking at the EqualLogic-ESX-Multipathing-Module v1.1.1 setup.pl you can see it following Joshua's quick fix and setting the failback option. I also found the same thing in version 1.1.0. The scripts comments even say that its doing so because of a Vmware bug. However VMware says that bug is now fixed (VMware KB 2008144) and instead looks like setting this option introduces a bug instead.


So if you used the Dell EqualLogic-ESX-Multipathing-Module setup script or followed the install guide you may want to check if you do in fact have this problem because Network throughput, Multipathing and Network Redundancy may not work as you expect.


Wednesday, August 15, 2012

VMWorld 2012

I'm surprised  and excited to announce that I"ll be attending VMworld 2012 this year and even more surprised to say I'll actually sitting on a panel to talk about “Doing More with Less” by Leveraging Desktop Virtualization to Reduce Costs While Improving Learning. I'll be speaking about how Northern Kentucky University (NKU) is offering more services to our students and faulty. Offering a better experiences, faster delivery of professor needs, using less time of support staff, and doing it all without spending more than we were previously.

I'll be attending VMworld with Paul Ritter, NKU's Server Team Manager,  so expect additional VMworld posts from us in the coming weeks. Also remember that if you attending VMworld to register for our session and if you have questions please leave them in the comments and I'll attempt to get answers ahead of time.


EUC3380 - Live Panel Discussion on How Education Customers Are “Doing More with Less” by Leveraging Desktop Virtualization to Reduce Costs While Improving Learning


I'll also try and take this chance to release some projects I built for NKU but honestly never got around to publishing or polishing enough for general release.

For an example I wrote a website for reporting VMware View Statistics (a feature sorely missing from the VMware product).

Active Connections from the Statistics Site
I modified the powershell scripts in I use for the Thin Client made using Windows 7 to provide a Lab Status Web Page for students that shows in real time which labs have Thin Clients and how many.



Monday, April 2, 2012

Expanded Guide for Windows 8 on VMware View

Last week I started trying to get a Vmware View Pool working for Demoing Windows 8 for users. At my boss's request because we could show what we can do with View and also preventing people from digging up old PCs and laptops to install it on.


I quickly found the post made by Andre Leibovici at http://myvirtualcloud.net/?p=2991 on the steps to creating a VMware Pool of Windows 8 VMs. Great blog by the way. This post was exactly what I was looking for but I ran into a few problems like others in the comments of his blog that I wanted to try and answer if possible.


Normally we can we can install windows and then the VMware Tools followed by the VMware View Agent. Then create a pool selecting that VM to be replicated/cloned. However currently after looking at the logs I believe there is a issue with the VMware View Agent communication with the View Server which shows up as "Waiting for agent".


Waiting for Agent Problem

Before I had started to follow Leibovici's post I tried to create a Windows 8 VMware Automated Pool like I normally would. This is where one of my problems came up. I created the Windows 8 VM, Installed the VMware tools, then Agent and tried to create a Pool. I cloned my windows 8 VM to 5 VMs , customized them and started them. Then started "Waiting for agent". For anyone that has tried this might know this is as far as the VM ever gets. You can see the errors by checking out the logs on both the client and server.

View Agent Log Events Path: C:\ProgramData\VMware\VDM
View Server Log Events Path: C:\ ProgramData\VMware\VDM\logs


At this time I know of no solution for this issue. These VM's do exist in the ADAM Database under the Servers OU but changing the pae-OSVersion has no effect. You'll find the following links talking about it it but none of which provided a solution as of yet.




While I had no luck finding a solution for this I believe its why Leibovici guide has your create a manual pool and connect the Windows 8 vm's as "Other Sources" in order to get around this problem.

Other Sources

If your like me you may never use this feature of View. If so you let me show you it should look like. From inside the VMware View Admin web site expand View Configuration and select Registered Desktop Sources. You'll notice that i have a Zero here because in this screen shot I have not yet successively connected a machine as a Other Source.



This shows you two types of sources Terminal Services Sources and Other Sources. Other Sources is what were interested in. Other Sources are normally Physical machines with the VMware View Agent Installed so that View Offer these machines in a Manual Pool. Because following Leibovici's post we want our Windows 8 VM to show up under Other Sources.

How to Search VMware View ADAM Instance

A few of the VMware View posts I've read recently had people searching for Objects by hand from the Servers OU in the VMware View Adam Database.  I"m not sure if they just didn't feel like explaining how to search it but I figured I'd five a quick guide on how to do this because even in a small View deployment this can be like finding a needle in a hay stack as there can easily be hundreds of objects.

First we need to Connect to the VMware View ADAM instance which I covered here. .

Next Right Click the "Default naming Context..."  and select New, and then Query.


Open a New Query Window. Enter what ever you want for the name.
Most likely for the "Root of Search" you want the to click browse and select the top node.
and finally the Query String you'll need to edit to find what your looking for.

Usually I'm looking for a Pool of Vms or specific VM.

When looking for a pool of VMs with same base name I can use a '*' as a wildcard search. Be sure to replace basename with your vm pool name.


(&(objectClass=pae-VM)(pae-displayname=basename*) )


If I know the full VM name then something like the following.


(&(objectClass=pae-VM)(pae-displayname=FullVMName) )



Play around and see what works. To edit your query right click it choose settings.



You can also use any type of boolean search to do more complicated searches.

Logical Operator Description
= Equals to
& AND
! Not
| OR







Tuesday, June 7, 2011

Using Local Solid State Drives to provide VMware View Storage

While Implementing Vmware View on campus we're looking at what hardware and storage to use or purchase. In our current Vmware environment we have a mixture of technology due to migration from one to another.
  • Server Hardware:  we currently have a mixture of Large Dell and IBM hosts and half a rack of Cisco UCS.  
  • Storage Hardware: we have/had IBM sans, EMC sans, Equallogic, and now IBM N Series (read Netapp with out support).
Note: You would think the answer would be simple, just use the NetApp with the PAM cards it has but we've had very bad performance  and currently a 4 Month Support call with IBM with no solution in sight. So such we're not wanting to add to the IOPS load of the Netapp.

Our View Enviroment looks to be growing to the 1000 VM Range however these are non-persistent VM's that are refreshed on logoff for student use.

While researching Pivot3's vBank I started researching Solid-State Storage(SSD) for VMware figuring anyone trying to speed up the IOPS for Vmware View was just going to stick the Replica on a SSD anyway and ideally a SSD local to the VMware host. 

This lead me to reading Brian Madden's Post on the pretty much my same conclusion on View and SSD's. Anyway a commenter on his post, Lance Hundt, gave a link to VMware Reference Architecture for Stateless Desktops. Following that Document I found a more detailed really great Vmware PDF on how to actually do this with Local Solid State Drives. 


Once you read this it because so clear, but the normal Vmware ESX mental rules get in the way. Normally Local  ESX storage is useless, we don't use it nor want it. This idea flips that on its head.

If you only had local really fast SSD's for storage everything would be really really fast. However the SSD's don't have much storage space because their two expensive. Not a problem however because the Stateless VM's are replica's and don't use much space. The idea seems sound to me but there is a added management cost when you take a host down and put it in maintenance mode, you first have to do some manual housekeeping.

I wish I provide more detail on this but I haven't been able to talked to anyone doing this yet but would be curious if any has. I'll update this post if I put together some SSD's to try it with and update this post if I do.



Friday, April 8, 2011

VMware vCenter stuck "In Process"

We recently had serveral unexplainable issues with our VMware vCenter Server would have task hang "In Process" untill the vCenter server or services where restarted. Normally the solution most post say is to restart ESX Mgmt-vmware service like so:


 service mgmt-vmware restart



However after all my trouble shooting failed and tracing kernal logs in ESX it became clear to myself and VMware support that the task were simply never reaching the ESX hosts. This took a lot of convincing on my part to vmware but eventually VMware support agreed with me.  We then took a closer look at our vCenter server and found that the Database was running SQL 2008 Service Pack 1.

VMware support said that they didn't yet support SQL 2008 Service Pack 1 and that odd behavior they couldn't describe or explain sometime occurred. I agreed to change the Database back to a SQL 2008 without service pack 1 and figured it would take a day or so.

How wrong I was.

There is no DB downgrade path for SQL 2008 SP1. I tried several methods to migrate the database but in the end the only solution was to recreate the vCenter as a clean install. It was hard but worth it in the end. I had to remove each ESX ever and reconnect it to the new vCenter. This was made much more difficult because I use Nexus 1000 distributed switches. I then remove a VM from inventory on the old vCenter then added it to inventory on the new vCenter. I required nightly outages until finally all the VM's were migrated.

I don't recommended this process unless there is no other method available. It did resolve my problem but I had to kill the patient in order to do so.

Links
vCenter Server displays the error: Failed to connect to host

Vmware and Cisco Nexus 1000 Notes

This post is mostly just commands I've been meaning to flush out to a full post but haven't had the time. I'm going to go ahead and post it as it may help some one. I do plan on coming back to finish and flush out more explanations but till then good luck. If really do have honest questions ask them in the comments and I'll answer what I can.




latest V1000 Software
http://www.cisco.com/cisco/software/navigator.html?mdfid=282362725&i=rp

Vmware Commands 
esxupdate query | grep VEM
vem version

vemcmd show card
vemcmd show port

tail /var/log/vmkernel -n 30

vemlog show last 2000 | more

ac02-ns1-01

read the log and remvoe the stuff we don't need

tail /var/log/vmkernel -n 40000 | grep -v runt | uniq

tail /var/log/vmkernel -n 40000 | grep -v runt | grep ": 1"

Cisco v1000 Commands
http://www.cisco.or.at/en/US/docs/switches/datacenter/nexus1000/sw/4_0/troubleshooting/configuration/guide/trouble_5modules.html

http://saloperie.com/docs/cisco/BRKVIR-3005.pdf
Great PDF with trouble shooting and commands



VEM may drop Cisco Nexus 1000V ARP request from VM.


Revised understanding of the issue of 30secs of working and 30secs of reset
putting a single nic in a port channel causes it to behave 30 seconds up and then 30 seconds down, this has be recreated. the speed setting has nothing to do with it. and the Auto Negotiation being seen in the log was just after the 30 sec fail.

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

VEM commands can be run remotely from the VSM (v1000)
module vem 3 execute show port


Update VEM Feature Level after VSM Software Update:
system update vem feature level <number> : <number> being the feature level if you do it without the number it will show the available feature levels

Show current VEM feature level on VSM:
sh system vem feature level




show system redundancy status
show interface status




show run interface po4
show run interface ethernet 6/3

conf

interface ethernet 6/3




show port-channel summary

show interface brief


show run interface po7


show svs

sh cdp nei
sh module vem mapping 
show module

show log last 30





add or remove interface to port channel
conf
interface ethernet 6/3
channel-group 21 mode active
no channel-group 21 mode active




When you can ping the VM from some Other Machines but others say destination unreacable. Its the firmware



Links 

Thursday, March 24, 2011

Download Dell OpenManage Server Update Utility (SUU)

Ever have one of those tasks that you figure will take 10 minutes but ends up taking your entire morning day. I did this morning when last night the front display on one of our Dell R900 VMware ESX hosts reported a problem with a CPU. Just a warning but it needed addressing. I put the ESX Host in maintenance mode and starting to research the issue. Multiple websites say that just upgrading the firmware and bios should take care of the issue. Either way its good practice usually.

Now remember for the rest of the post my only goal was to update the firmware and bios of a Dell R900.

Downloading the Dell OpenManage Server Update Utility


First things first I decide to do is optain the newest Dell OpenManage Server Update Utility DVD. I search both Google and Dell and look for the main site but they refuse to give a product page link from their support site. The last time I used it was at version SUU 6.4 but just try proving that is the latest version. Dell says "For the latest version, go to http://support.dell.com and search on 'SUU' " but Dell seems to keep returning  links to 2008's version. There is this link here which will take you to the manual but god forbid there a be download link. Finally I find a useful post here on DellTechCenter which sorta works.

Whats really funny is the post even says that google analytics shows searches for "OpenManage Download" were top searches for the entire site yet there still isn't a clear product page with the versions. Instead the post has you search their FTP for the latest. DellTechCenter has you use naviagate to ftp://ftp.dell.com/sysman using FileZilla. Sort the Files there and download the highest version of omxxx_suu_xxx.iso.xxx. Note that they are really large files (1.8gig each) so this takes a while; as in hours. Also note that its much better to use a ftp client like FileZilla to download these files rather than the http site which may introduce errors into files this large ( read below for checksum)

Dell FTP for SUU
After the files have finished downloading you have to combine the files together together. On windows this is done by opening a command prompt to the folder of the files and then execute the following. First be sure to change the file names if you are

Tuesday, March 15, 2011

MBRAlign of Vmware on IBM N Series (Netapp)

We use a IBM N-Series array (read as: Netapp without the useful software yet comes with painful IBM support) and are experiencing horrific performance. As part of the blame game IBM pointed the finger at a few Vmware Virtual Machines that where misaligned then hung up. Even if the there are no misaligned Virtual Machines on a particular filer the speed doesn't improve nor does non Vmware connected servers. Nor does an aligned Virtual Machine run the tests any better then before we aligned it. But aligning is a good thing and as such heres some of the notes on the process.

First we need the MBRalign tools. You can download them from your vCenter client If you installed  IBM N series VSC on your vCenter. If you didn't start installing. This will add a plugin to your VCenter Client. Once thats installed, good luck, select a ESX host and there should be a "IBM N Series" Tab. From there select tools and download.
VCenter IBM N Series Tab
That download should be a "mbrtools.tar.gz" file that we need to copy to the ESXthat will be running the alignment and has access to the VM datastores. I use WinSCP to copy the file to the ESX host. You should also open the "mbrtools.tar.gz" file on your work station to view the readme and pdf how-to stored in it.

Note: Its normally necessary to SSH into a ESX server so I always create a local account to login remotely with and then su up to root. If you haven't done this it is really worth your time to do so. That same non root account is also useful to login with WinSCP to move files on and off the host.

Once the "mbrtools.tar.gz" file is on the ESX host SSH to that

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, 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.

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.


Thursday, November 18, 2010

Emulex 10 Gb CNA Crash - VMware and Windows Update 1

Following up a previous post of mine on our Emulex 10 Gb CNA problems and crashes. I figured I'd take a minute and update the list of working driver builds we've used  for VMware ESX hosts.

  • Version: be2net-2.102.486.0
    • VMware ESX Versions: 4.0 and 4.1
    • ISO: esx-4.0.0-GA-be2net-2.102.486.0.iso
    • Release: Beta
    • Verdict: STABLE
    • Obtained: Our Networking Admin got it emailed from Emlex Systems Engineer  
  • Version: be2net-2.102.474.1
    • VMware ESX Versions: 4.0 and 4.1
    • ISO: esx-4.0.0-GA-be2net-2.102.474.1.iso
    • Release: Beta
    • Verdict: STABLE
    • Obtained: Our Networking Admin got it emailed from Emlex Systems Engineer  
    • Obtained on: 9/20/2010

Thursday, November 4, 2010

Using Sysprep with CopyProfile in Windows 7 and Windows Server 2008

First rule of testing a sysprep unattened file:

Thou shall test your unattend xml file on a newly unconfigured OS install before blaming the file.

The Reason: Before becomeing a server admin I made my way by developing new and better ways to deploy computers on campus. I moved to the server team before Vista came out so my experitise was in mostly with Windows XP. So recently after 5hrs of trying to do the once simple task of copying the administrator profile to the default profile I can say that things have changed.  First let me setup what I'm working on, then share what can so you can avoid the problems I had.

The Goal: To use the <CopyProfile> option with sysprep to copy the Administrator profile to the default profile on a Windows 7.

The Problems: Things that can go wrong will.
  • If your using a Virtual Machine that some one else built, you don't know what they did or didn't do. In my case my brother built a tweaked Virtual Machine for Windows 7 stripped for speed. At some point he made the profiles/registry gods upset and sysprep no longer can listen to the <CopyProfile> option. See here for fix. 
  • You need to be able to read the local disk Incase the box will not boot or in this case gets stuck in a sysprep endless boot. I can't over state this. You can not see whats wrong with sysprep with out this. In my case I used a network PXE server with WinPE loaded with VMware Drivers. However note that PXE doesn't work with VMXNET3 and ESX 4.1 as of yet. See my other post.
  • Sysprep isn't your friend, its more of the coworker you have to deal with. Learn to get along with it as its not going anywhere. 
The Solution
The only truly supported way to copy a profile in Windows 7 to the default to do so by using Sysprep to do the Profile copy. If you search the web many people list ways but they shouldn't be used in real production environments and require manually editing the registry files. And honestly you don't should need these shortcuts as doing the copy via sysprep is easy enough if you follow this post.

First configure the Administrator Profile to the way you want. Make sure you opened most programs and everything works. I'm not going to go through the finer points of this and may make a post on it later and link to it here.

VMware VMXNET3 Driver with WinPE

Today working with View I found out that the VMWare VMXNET3 Nic Type won't allow you to boot to a WinPE even if the driver has been added to the WinPE. I did read that this would be fixed in ESX 4.1 Update 1 but I couldn't confirm that.

The very second that the WinPE starts to download this error is given with the VMXNET3 Nic.

This was picture was taken on from our ESX 4.1.0 environment.

Instead use the E1000 Nic Type and behold A working WinPE running on a VMware Virtual Machine. Incase you were wondering why I was trying to WinPE on a Virtual Machine. Its because I'm using it to trouble shoot sysprep configuration problems I've been having building Virtual Machines for VMware Veiw. The VM will run into an error in sysprep and go into a endless reboot loop. However by booting to the WinPE  i can mount the local drive and read the sysprep log.

I'll post more on the sysprep issues later.

Using the E1000 Nic Type WinPE loads perfectly.

Saturday, October 30, 2010

VMware View 4.5 - Thin Client with PCoIP using Windows 7 (Part 1)


Note: that this works with all View Client versions View 4.5, 4.6 and 5.0.


Series of Posts
For what must be the fourth time at work we're looking in to deploying a Thin Client environment. This time we're focusing on VMware View 4.5 and looks to have addressed many of the problems we had in the past. We've stood up a VMware View and a few other systems in the past but weren't satisfied with them.

Our big use case where View machines can be offered to students via VPN and connected to from home using the student's own hardware and everything works perfect. However one of the use cases management wants VMware View to fill is as a replacement for actual Student labs on campus. Where a lab machine is running VMware View and offering students their choice of VM's. This also needed to be accomplished with the following firm constraints.
  • VMware View 4.5
  • Reuse existing PC's in labs as the client hardware.
  • Use PCoIP has the protocol for enhanced multimedia experience.
  • Lock down the PC hardware.
  • Management of the hardware is required. (Example: SCCM and/or Forefront)
  • Easy of Client deployment.
The issue became what OS and how to configure it on the current lab hardware. VMware doesn't really supply a good guide on this for View 4.5. What’s even more surprising appears to be a lack of a good community supplied setup guide; at least that I've found after looking. Sorry if' I've just missed it.

And there appears to be no way of doing a bootable image (WinPE or Linux) that uses PCoIP.  Further research believes me to believe that short of running Windows embedded or a full blown copy of Windows is the only option for PCoIP on re-purposed hardware client.

After approaching this problem and lack of helpful walk through on line I hope this will be just that to others interested in a same or similar setup. I have worked out a method to reach all these constraints and am interested on what the on-line community thinks of it as I will be using Windows 7 as the client OS and PCoIP as the protocol. I'll be posting the solution and steps to creating it in next several posts starting with this one as the length to this guide proves necessary.

Special Thanks to Patrick Towles, Paul Ritter, and Matthew Campbell for their help on this subject..

Tuesday, October 19, 2010

Emulex 10 Gb CNA Crash - VMware and Windows

Update 1 - 04-08-2011 - VMware and Emulex now has a stable driver so theres no need in the beta driver.

We recently purchased Emulex 10 Gb CNA Cards for our new and existing VMware ESX Hosts and other large bandwidth servers. However we have seen nothing but problems with them crashing. After going round and round with VMWare, Cisco and Emulex we seem to have a stable build using a beta driver build we received from Emulex. This driver is only for the Ethernet controller on the card; in other words the be2net driver.

The problem seems to be with any version of the driver that has TCP Offload enabled. On the windows drivers we were able to configure the driver to disable this "Feature" which made the cards stable. On Vmware the drivers at current time only go up to VMware ESX/ESXi 4.x Driver CD for ServerEngines BladeEngine 10Gb Version "2.102.440.0" released on 2010/09/16. Problems you'll notice with this driver is if you change VLAN ID’s on a Network the ESX host will crash with a purple screen. Other problems will arise like hosts would lose the ability to talk to each other intermittently. However the switching the VLAN ID case was used to case the crash on demand for testing.

Our network guy pushed and we were able to get a beta release of the be2net driver. The build is version be2net-2.102.474.1 and from what we read in it the notes we got. This build allows you to enabled and disable vlan offloading with the default being disabled. Like the Windows driver we worked with on windows 2008 R2 that appears to be all that’s needed to make the driver stable.

Below is the screen shot of the ESX with the beta unsigned driver running an ESX Host that’s been stable for last 2 weeks and pasted every test we could think of to try.


We also tested a QLogic 10 Gb CNA since we considered switching to it however it had the same issue with crashing with TCP offload. We wonder if they are both using the same chip.

No fix of yet would allow us to enable this feature.

Update 1: Newer Beta Drivers Listed

Tuesday, October 12, 2010

How to Encrypt VMware VM running Windows 2008 R2 with Microsoft Bitlocker

A piece of software at work has a HIPAA requirement that the drive is to be encrypted. No problem right, we use Microsoft BitLocker on our windows severs and PC’s. So in keeping with that I worked out a way to do so with our VMware Virtual Machines but it should work with any type of Virtual Machines as well.

The Goal: To encrypt windows 2008 using the built in Microsoft BitLocker.

The Problem:  Since we are working with a Virtual Machine there isn’t a TPM (Trusted Platform Module) Chip. This is normally where Bit locker would store the encryption key.

The Solution: BitLocker can use a USB or floppy drive to store the key in the case the hardware doesn’t have a TMP chip on board. That fact alone doesn’t do a lot of good with a VM because the USB would would always have to be mounted to the VM. However we can use that feature to instead point it to a disk volume we create to store the encryption key.

A few details about my environment:
  • VMware ESX 4.1 Hosts
  • VM with Windows 2008 R2 already running and ready to encrypt.
  • Our domain as already been extended to store BitLocker keys (see here for more.)
  • Our GPO policy that Bit Locker requires TPM to backup to AD DS.
Firstly enable Bitlocker on Windows 2008 and 2008 R2 Server. Its a Server Feature you can enabled called “BitLocker Drive Encryption”.

Next we will need a volume to store the encryption key since our VM doesn’t have a TPM Chip. You should add a additional Hard Drive to the VM and format it NTFS and mount it. I made mine 100 MB and labeled it  “EncryptionKey”. Another method would be to shrink the OS Volume by 100MB and create the volume from the freed up space however this shouldn’t be done as resizing the drive and extending the volume is then prevented. It’s better to just create a the new Virtual hard drive.

After the drive is added, formated and labeled  open the Run prompt and launch "gpedit.msc", We need to set the Group Policy Object (GPO) settings to enable BitLocker to store the key on a drive instead of TPM and to make sure it takes a backup of the key and stores it in AD.


Local Group Policy being used to edit BItLocker Settings