Wednesday, August 18, 2010

My vSphere 4 Virtual Hardware Upgrade Notes...

Borrowed and learned a lot from Scott Lowe's post at: http://blog.scottlowe.org/2009/06/01/vsphere-virtual-machine-upgrade-process/

After analyzing and summarizing Scott's post and the comments that follow, here's my procedure (main steps are directly taken from Scott's post):

  1. On the VM, open up Command Prompt, and type "netsh interface ip dump > c:\ipconfig.txt" to record the IP configuration of the guest operating system in c:\ipconfig.txt.
  2. Upgrade VMware Tools in the guest operating system if it has not already been done.
  3. After the guest operating system reboots and is back up again, first take a snapshot. For SQL Server/Exchange Server, the "Quiesce guest file system" option is recommended. Then shutdown the guest operating system. You can do this by right-clicking on the virtual machine and selecting Power > Shutdown Guest.
  4. Upgrade the virtual machine hardware by right-clicking the virtual machine and selecting Upgrade Virtual Hardware.
  5. In the virtual machine properties, add a new network adapter of the type VMXNET3 and attach it to the same port group/dvPort group as the first network adapter.
  6. Remove the first/original network adapter.
  7. Click OK to commit the changes you’ve made to the virtual machine.
  8. Power on the virtual machine. When the guest operating system is fully booted, log in and recreate the network configuration you recorded for the guest back in step 1. Per Dave O. in Scott's original post, "Since Windows will most likely see the new NIC as “Local Area Connection 2” (or something similar) you have to modify the above text file and change the NIC name to match the new NIC’s name. Or change the new NIC’s name on the host to match what’s in the file above. Either way works. " Open Command Prompt and type "netsh –f c:\ipconfig.txt" to re-import the network configuration to the new vmxnet 3 adapter.
  9. Power on the virtual machine. When the guest operating system is fully booted up, log in.
  10. Create a new system environment variable named DEVMGR_SHOW_NONPRESENT_DEVICES and set the value to 1.
  11. Launch Device Manager and from the View menu select Show Hidden Devices.
  12. Remove the drivers for the old network adapter and old SCSI adapter. Close Device Manager and you’re done!
Thanks a lot for Scott Lowe's post and Dave O.'s comment. Hopefully this combine version would give myself and fellow admins a reference point should this becomes necessary