Pages

Thursday, January 6, 2011

“The IP address x.x.x.x you have entered for this network adapter is already assigned to another adapter…” when assigning a NIC’s IP address.

While this informational message can be caused by various reasons, here’s the list that I could think of off the top of my head:

  1. You’ve just completed virtualizing a server to a virtual machine and new NICs were created replacing the old ones.
  2. You’ve physically removed NICs from a physical server and replaced it with new ones.
  3. You’ve just completed the installation of MSCS (Microsoft Clustering Services) within a VMware VI3 environment and you noticed the IP addresses are gone so you make an attempt to re-enter them only to get this message.

image

There’s probably more but those are the ones I can think of now. Earlier in the days when I was a cowboy and pretty much hacked away at everything, I used to just go into the registry and delete all the keys with the IP address that was assigned to the old NIC before I went ahead to re-enter it into the new ones. This worked but searching through the registry and constantly hitting the F3 key for Find Next is cumbersome and prone to human error. The easier way to fix this is to actually use the following KB: http://support.microsoft.com/kb/315539 to reveal the hidden/missing adapters and uninstall it. This provides a much cleaner method of cleaning this missing adapter out.

“Unable to obtain hardware information for the selected machine” with vCenter Converter 4.x

I’ve been meaning to get some screenshots of this problem because I’ve been asked about this error a few times and since I had some P2V work tonight with a client that had the setup I needed, I took the opportunity to mimic this error on their vSphere environment.  Now before I proceed, please be aware that the reason to this error message in this blog post is only ONE of the MANY possibilities so if this does not apply to your situation, I would suggest that the converter logs be exported and parsed to determine the root cause.

Problem

You need to v2v a virtual machine currently sitting on a VMware Server 1.0 or 2.0 so you proceed with logging into vCenter with the vCenter Converter installed, right click on your cluster, choose Import and then choose VMware Workstation or other VMware virtual machine for the Select source type field.  You browse to the network path for the vmx file, enter the credentials to connect to the share but once you click on View source details, you receive the following error:

Unable to obtain hardware information for the selected machine

image

image

Resolution

One of the reasons why you would get this error is if the virtual machine is powered on.  This conversion process requires the source to be powered off and if you would like to virtualize it live, you should install the converter agent on the virtual machine and live clone it.  Once you’ve shutdown the virtual machine, you should see something similar to the following:

image

For further troubleshooting, you can click on the Export diagnostic logs… link at the bottom left hand corner to extract a zip package with line by line information about the failure.

image

Wednesday, January 5, 2011

Quick note about reconfiguring an ESX 4.x server’s vmkernel ports to off of a Nexus 1000v

To follow up with a post I made yesterday about reconfiguring an ESX 4.x server’s service console to different vmnics:

Quick note about reconfiguring an ESX 4.x server’s service console to different vmnics

http://terenceluk.blogspot.com/2011/01/quick-note-about-reconfiguring-esx-4x.html

… I realized later that night that I haven’t moved the vmkernel ports over from the Nexus 1000v which meant all the virtual machines that required access to the iSCSI store was offline.  I also noticed that the document I had provided with all the commands I used only did not have the esxcfg commands to show how to remove a vmk (vmkernel) port from a Nexus 1000v or distributed switch.  With a bit more time and a clearer head, I managed to take some screenshots during the process so the following serves to show how it’s done in a step-by-step manner:

To identify which port the vmk (vmkernel) is configured on the Nexus 1000v, we should execute the command:

esxcfg-vswitch -l | more

Note: The “| more” should be used because whenever you have a distributed switch or Nexus 1000v, you’re bound to have so many ports printed that a single screen won’t be able to display.

image

Once you execute the command above, you will see the following output:

image

image

image

The port we would like to remove is the one shown above with the:

DVS Name: N1KV

DVPort ID: 164

Client: vmk0

In addition to use the esxcfg-vswitch command, we should also execute the esxcfg-vmknic command to review the properties of the vmkernel port.  This is important because we will need the IP when we reconfigure the vmkernel port on a regular vSwitch:

esxcfg-vmknic -l

image

Write down the IP listed above (172.20.5.187) and issue the following command to remove the vmkernel port from the Nexus 1000v:

esxcfg-vmknic -d -s N1KV -v 164

image

The format of this command is actually:

esxcfg-vmknic -d -s <DVS Name> -v <DVPort ID>

image

As shown in the screenshot above, executing the command to remove the port doesn’t actually output anything so to check and see if the port’s removed from the Nexus 1000v, simply execute:

esxcfg-vmknic -l

or

esxcfg-vswitch -l | more

… and you will find that the port is no longer be there.  From here on, I chose to use the GUI to recreate the VMkernel port but it is possible to use the esxcfg-vmknic command for this as well.  Once you’ve recreated the vmkernel port on your regular vSwitch, simply do a rescan of your storage and you should now see the iSCSI datastores again.

image

Hope this helps anyone out there scrambling to find the commands to remove a vmkernel port from a distributed or Nexus 1000v switch.

Tuesday, January 4, 2011

Quick note about reconfiguring an ESX 4.x server’s service console to different vmnics

So I had quite the “kick off” on my first day back at work for the year 2011. To cut a long story short, I was asked to figure out why 3 of our UCS blades were knocked offline from vCenter and the rest of the network even though accessing them from UCSM’s KVM console showed that they were up. Aside from spending over an hour reviewing logs and finally realizing that someone managed to delete the the service profiles for the UCS blades (I’ll write a post about the troubleshooting process and resolution at a later time), I found myself at the point where I had to shuffle around the 2 vmnics (this UCS has a menlo card) from a Nexus 1000v switch back to a regular vSwitch all through the CLI. I’d have to say I’m not much of an expert with the commands and while I do know the basics, I can never remember the switches. What I ended up using the following Cisco document that includes all the commands I ended up using to:

  1. Remove a vmnic from a Nexus 1000v.
  2. Delete a vswif interface mapped to a port on the Nexus 1000v.
  3. Create a regular vSwitch.
  4. Recreate a vswif interface on a regular vSwitch.
  5. Add the vswif to a Service Console port on the regular vSwitch.

http://www.cisco.com/en/US/prod/collateral/switches/ps9441/ps9902/white_paper_c11-558242.html

I’ve also pasted the section I used at the bottom in case I ever need to reference this again and the link is no longer available.

Update:  The information provided below doesn’t show you how to remove a vmkernel port from a Nexus 1000v or distributed switch so I have followed up with another blog post to show how to do this: http://terenceluk.blogspot.com/2011/01/quick-note-about-reconfiguring-esx-4x_05.html

----------------------------------------------------------------------------------------------------------------------------------------------------

VMware ESX and ESXi Commands to Troubleshoot Cisco Nexus 1000V Series Switches in the Cisco Unified Computing System

In VMware ESX with a service console OS, these commands are in the /usr/sbin directory. Press ALT-F1 to display the service console login prompt, and press ALT-F11 to leave the prompt. To get to a misconfigured Cisco UCS blade for recovery, click the KVM item under the server view. This procedure assumes that the KVM IP addresses have been set up and assigned.

In VMware ESXi, the esxcfg-vswitch functions are all present as in VMware ESX. Since VMware ESXi does have a service console OS, use ALT-F2 and ALT-F11 key presses to go to and from the VMware ESXi command line. All the commands listed here for esxcfg-vswif will now be replaced with esxcfg-vmknic, and you can update specific details as required.

To List Information About the Current Configuration

esxcfg-vswif -l To list information about the current vswif interface

esxcfg-vswitch -l To list information about the current vSwitches and DVSs

To Manage the Existence of a vSwitch

esxcfg-vswitch -a vSwitch0 To add a vSwitch named vSwitch0 to the server

esxcfg-vswitch -d vSwitch0 To delete a vSwitch named vSwitch0 from the server

To Manage the Port Groups on a vSwitch

esxcfg-vswitch -A "Service Console" vSwitch0 To add a port group named Service Console to vSwitch0

esxcfg-vswitch -D "Service Console" vSwitch0 To remove a port group named Service Console from vSwitch0

To Assign VLAN Membership to a Port Group on a vSwitch

esxcfg-vswitch -p "Service Console" -v 102 vSwitch0 To set a port group named Service Console to user VLAN 102 on vSwitch0

To View the Available NICs That VMware ESX Can See

esxcfg-nics -l To see a list of VMNICs

To Manage Uplinks from the DVS or Cisco Nexus 1000V Series Switch

First run the list commands (esxcfg-vswif -l and esxcfg-vswitch -l ) to get the port numbers for the existing uplinks (vmnic0, vmnic1, etc.); this will be port#.

esxcfg-vswitch -Q vmnic0 -V [port#] myN1kDVS To remove the vmnic0 uplink from the DVS named myN1kDVS

esxcfg-vswitch -P vmnic0 -V [port#] myN1kDVS To add the vmnic0 uplink to the DVS named myN1kDVS

To add the VMNICs back into a DVS, the recommended approach is to use VMware vCenter and not the command line.

To Manage Uplinks to a vSwitch

esxcfg-vswitch -L vmnic0 vSwitch0 To add vmnic0 as an uplink to vSwitch0

esxcfg-vswitch -U vmnic0 vSwitch0 To remove vmnic0 as an uplink to vSwitch0

To remove a VMNIC from a vSwitch, the recommended approach is to use VMware vCenter and not the command line while migrating from a vSwitch to a Cisco Nexus 1000V Series DVS.

To Delete a vswif Interface from a VMware ESX Server Port Group

esxcfg-vswif -d vswif0 -p "Service Console" vSwitch0 To delete a vswif interface from the port group on vSwitch0

Esxcfg-vswif -d vswif0 -p "Service Console" -P xxx -V myN1kDVS To delete a vswif interface from the port group on the Cisco Nexus 1000V Series Switch

This deletion is a common task if an error situation arises and you lose connectivity to the VMware ESX server when migrating to the Cisco Nexus 1000V Series. You will have to add the port group to vSwitch0 and then add the vswif interface on it.

To Add a vswif Interface to the VMware ESX Server

esxcfg-vswif -a vswif0 -p "Service Console" -i 10.1.1.10 -n 255.255.255.0 To add vswif0 with IP 10.1.1.10/24 to port group Service Console

esxcfg-vswif -a vswif0 -p "Service Console" -i 10.1.1.10 -n 255.255.255.0 -P [port#]-V myN1kDVS To add vswif0 with IP 10.1.1.10/24 to port group Service Console to port = port# on DVS myN1kDVS. The port# value is usually just the last unused entry in the list of available port numbers when the DVS configuration is listed with esxcfg-vswitch -l.

To Manage a Default Gateway for the VMware ESX Server

On the VMware vCenter GUI, you can change the gateway directly, but on the command-line interface (CLI), you must edit the /etc/sysconfig/network file and update the vswif interface's default gateway. The file will look similar to this:

NETWORKING=yes

HOSTNAME=ESXServerBlade4.cisco.com

GATEWAY=10.1.1.1

After saving the file, you must reboot the VMware ESX server to implement the change.

Troubleshooting Commands

To Ping Test a VMware VMkernel Interface

esxcfg-route -l To get the routes on the VMware VMkernel network

vmkping X.X.X.X To ping an IP address on the VMware VMkernel network

To Test for the VEM Installation on a VMware ESX Host

vmkload_mod -l grep vem To verify that the appropriate VEM is loaded (the command should return the modules)

Thursday, December 30, 2010

Problems booting Cisco UCS Server Configuration Utility ISO to update firmware on UCS C Series servers

I’ve been tackling a RAID issue on one of the new Cisco UCS C210 M2 servers we’re adding to our production environment and since I’ve ran out of options, I thought maybe I should try updating the firmware.  What I noticed was that no matter which firmware ISO I downloaded from the Cisco download site:

  1. Server Standalone Host Utilities - standalone-host-utilities.1.2.2d.zip (there’s an ISO within this zip file)
  2. Server Configuration Utility – ucs-cxxx-scu-1.0.1.iso

… I would not be able to get it to boot over the console KVM through CIMC as I would never see the option of booting from the virtual CD/DVD device:

image 

What was interesting was that I tried to mount a Windows Server 2008 ISO and the screen does show the virtual CD/DVD device as being an option:

image

A ESXi 4.1 ISO also doesn’t have this problem and since I wasn’t in the office that day, burning a CD or DVD wasn’t an option so I began trying everything I could think of:

Didn’t work:  Unblocking the file before I tried mounting it.

image

Didn’t work:  Tried to mount the Windows Server 2008 ISO so that the virtual CD/DVD device would show up then map the firmware update ISO to try and boot from it.

Didn’t work:  Disabled all other bootable devices.

------------------------------------------------------------------------------------------------------------------------------------------------------

As I began running out of options and annoyed at the hours I’ve spent troubleshooting this (these servers take forever to reboot), I sat back and thought about what I’ve changed in the BIOS on this server that I haven’t done on the previous servers I’ve updated and after a few minutes of thinking, I realized I’ve disabled the Legacy USB Support in the BIOS because it’s a known issue that ESXi 4.x will have problems booting up if it was enabled. 

image

I went ahead and re-enabled it:

image

Tried booting from the firmware ISO and long behold:

image

image 

As it finally booted into the firmware update Linux kernel, I said to myself: “Who would have thought this legacy USB support would only affect these Cisco firmware update ISOs.”

One of the many reasons why the “Test E-Mail AutoConfiguration” for AutoDiscover fails with “(0x800C8203)”

While troubleshooting a Tanjay issue a week ago, we noticed that AutoDiscover wasn’t working properly when we used Outlook 2007’s Test E-Mail AutoConfiguration feature (simply press and hold the CTRL key and left-click on your Outlook 2007 icon):

image

… as it would continually fail with:

Autodiscover to https://autodiscover.internalDomainName.com/autodiscover/autodiscover.xml FAILED (0x800C8203)

image

Before I continue, let me state that the domain names for the company were:

External: domain.com

Internal: inside.domain.com

What was strange was that if I run the test with the default E-Mail Address as: username@inside.domain.com, the autodiscover test would fail but if I removed the “inside” from the email address, it would pass.  After troubleshooting for an hour and running low on options, I went ahead and logged onto the Exchange 2007 server, navigated to the users window, opened up the user account I was testing with to check the email address and this is what I saw:

image

I know it’s not easy to see since I had to blank out a lot of the fields but what I saw was that the SMTP address listed in the SMTP section only had the public domain name listed and not the inside.domain.com.  This was more or less of a hunch that I had after running out of options so I went ahead and created a username@inside.domain.com email address.

image

Once I created the email address and tried running the Test E-Mail AutoConfiguration feature, the results came back as completed without errors.

image

I did a fair bit of research while troubleshooting this issue and did not find any posts that had this solution to fix the issue so I hope this will help anyone out there that may come across this issue.

Publishing OCS 2007 R2 MOC through Citrix XenApp 6

We have a client that recently upgraded their old Citrix server to the latest XenApp 6 and have published Microsoft OCS 2007 Office Communicator to get an idea how well XenApp 6 can publish this application.  I don’t have a lot of details as to what works and what doesn’t as I wasn’t able to do any thorough testing with the client because we were troubleshooting something else but I’d have to say it was pretty cool to see the published MOC launch.

image

image

image

 image

What I was able to test were:

  1. PSTN call to my cell phone – Audio quality wasn’t great but I’m not sure if it was because I was speaking through my laptop’s microphone or something else.
  2. Desktop Share – I spent 3 hours using MOC published through Citrix to troubleshoot an issue with the client and other than losing control of the session (not sure if it’s Citrix related), the performance was pretty good.

One of the strange things I noticed was that if I hover over the window’s item in the taskbar, I would see “?????” beside the other person’s name.

I also took the time to ask the client if Citrix actually says MOC is supported and he said:

“Sales pitch says it is but the local client has to be version 12 or higher for the multimedia/sound to work.  There’s also a bug in the client with sound because it only uses the Windows’ local default sound devices and therefore isn’t all that useful when you have multiple devices such as a headset or speaker phone.”

Pretty cool stuff nonetheless.