A. Mikkelsen VMware ESX scripts, commands, tools and other nice to know things that will make your virtualization days easier!!!!

Friday, November 19, 2010

Downgrading ESX virtual hardware 7 to 4

When you upgrade your vSphere environment you normally also upgrade the VM’s virtual hardware to version 7, to take advantage of the new features. This is pretty normal procedure for all VMware admins.

But in some very very rare cases you might need to move a VM upgraded to hardware version 7, to a host that doesn’t support VM’s running hardware version 7.
From a host running ESX 4.x to a host running ESX 3.x

So what to do.
There is two ways you can accomplice this task.

The first way is to use the free VMware Converter tool.
Some great guides have been created by others so I don’t want to do it all over again.
The only thing is that it can take some time to convert the VM, but it is a proven and stable method.
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1028019
Or
http://www.techhead.co.uk/vmware-esx-how-to-downgrade-a-vms-vm-versionhw-level-from-7-4-0-to-4-3-x
Or
http://blog.vmpros.nl/2010/04/09/vmware-how-to-downgrade-vm-hardware-level-7-to-4/

The other way is to do it manually, this way is a lot faster, but there is a risk that it will corrupt the VM, so make sure you have a working backup.
Use this guide on your own risk

  • Powered off the VM
  • Make sure the VM doesn’t have any snapshots before proceeding
  • From the ESX console or from a Putty session, edit the VMs VMX file, using your favorite editor
    vi /vmfs/volume/DS1/WIN2008-001/WIN2008-001.vmx
  • Change the virtual hardware version from:
    virtualHW.version = “7”

    To

    virtualHW.version = “4”
  • You don’t need to change config.version = “8”, since ESX 3.x already uses this version
  • Change the virtual controller, because virtual hardware version 4 doesn’t understand the version 7 virtual controller, from:
    scsi0.virtualDev = “lsisas1068”

    To

    scsi0.virtualDev = “lsilogic”
  • From the ESX console or from a Putty session, edit the VMs VMDK pointer file/files (if more than one virtual disk), using your favorite editor
    vi /vmfs/volume/DS1/WIN2008-001/WIN2008-001.vmdk
  • Change the virtual hardware version from:
    ddb.virtualHWVersion = "7"

    To

    ddb.virtualHWVersion = "4"
  • You should now be able to power on the VM as virtual hardware version 4.

Sunday, July 18, 2010

Monday, November 23, 2009

Upgrading Windows 2008 from virtual HW 4 to 7 may cause problems

Just found this very interesting article http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1013109 describing a problem with Windows 2008 and ESX 4 virtual hardware version 7.

In short the article states that you might have the disks go offline in a Windows 2008 VM if you

  • Upgrade virtual hardware from version 4 to 7
  • Installing a new VM with virtual hardware 7

There is two ways to get around this (taken from the VMware KB 103109)

————————

This can be resolved by changing the SAN Automount Policy on the system. See the Microsoft article http://support.microsoft.com/kb/973834 to change the SAN Policy to online.
The SAN policy is defined within the VDS environment of the system and is represented by the following values:
  • VDS_SP_UNKNOWN = 0x0
  • VDS_SP_ONLINE = 0x1
  • VDS_SP_OFFLINE_SHARED = 0x2
  • VDS_SP_OFFLINE = 0x3
For more information, see http://msdn.microsoft.com/en-us/library/bb525577(VS.85).aspx.
On Windows Server 2008 Enterprise and Windows Server 2008 Datacenter, the default SAN policy is VDS_SP_OFFLINE_SHARED. On all other Windows Server 2008 editions, the default SAN policy is VDS_SP_ONLINE.
To query current SAN policy from the command line, start DISKPART and issue a SAN command:
C:\>DISKPART.EXE
DISKPART> san
SAN Policy : Offline Shared

DISKPART> exit

Alternatively, you can set the disk to Online after the hardware version upgrade.
To set the disk to Online:
  1. Log in to your system as an Administrator.
  2. Click Computer Management > Storage > Disk Management.
  3. Right-click the disk and choose Online.

Friday, September 25, 2009

Quick guide for upgrading VirtualCenter database from MSSQL2000 to MSSQL2005

Filed under: ESX Migrate/Upgrade,Tools,Virtual Center,White Papers — Tags: , , , , — A. Mikkelsen @ 21:29 pm

Today when I needed to upgrade my VC database from MSSQL2000 to MSSQL 2005 i came upon these quick guides.

http://blog.core-it.com.au/?p=27

http://spininfo.homelinux.com/news/VirtualCenter/2008/01/06/Howto_Move_Migrate_Design_VC_DB_from_SQL2000_to_SQL2005__

Monday, June 8, 2009

Offline upgrade from ESX 3.x to vSphere (ESX 4.x)

Filed under: ESX Migrate/Upgrade,vSphere (ESX) — Tags: , , , , — A. Mikkelsen @ 9:28 am

If you want to perform an offline upgrade of an ESX 3.x host to the new vSphere  host there are a few ways.

Using a DVD:

/root/esxupgrade.sh storage1

Using the DVD ISO:

esxupgrade.sh -i /vmfs/volumes/storage1/esx4.iso /vmfs/volumes/storage1

storage1 – should be a VMDK local datastore attached to the host.
storage1 – should be at least 8.4GB in size.

Read the full guide here.

Monday, May 4, 2009

Upgrading to vSphere

Filed under: ESX Migrate/Upgrade,Virtual Center,vSphere (ESX) — Tags: , — A. Mikkelsen @ 14:36 pm

Read this post before upgrading.

Wednesday, May 21, 2008

Troubleshooting VMware snapshots

Eric Siebert has writen a very good and explaining guide on how to troubleshoot snapshots on ESX 3.x.

Virtualization administrators can use snapshots on VMware ESX to travel back in time and figure out what went wrong with their virtual machines (VMs). But what do you do when your snapshots start acting funny? In this tip, we’ll troubleshoot potential problems that may come up when using snapshots on ESX.

Read it here or read my local copy.

Thursday, May 15, 2008

Upgrading to ESX 3.5.x and VC 2.5.x – Read this guide

Filed under: ESX Migrate/Upgrade,Virtual Center,vSphere (ESX),White Papers — A. Mikkelsen @ 12:56 pm

Looking for a guide to upgrade your VMware ESX enviroment to ESX 3.5 and VC 2.5, then this guide from RTFM Education is a must read.

http://www.rtfm-ed.co.uk/?p=482

Thursday, February 14, 2008

The ultimate plugin to VC 2.5 – SVmotion

Filed under: ESX Migrate/Upgrade,ESXi,Tools,Virtual Center,vSphere (ESX) — A. Mikkelsen @ 13:47 pm

The people over at Lostcrations have created the first known third party plugin to VC 2.5.

It enables you to SVmotion your VM’s VMDK’s between different storage locations

Take a look at it
http://www.lostcreations.com/code/wiki/vmware/viplugins/svmotion

Thursday, February 7, 2008

Nice Windows GUI for SVmotion

Filed under: ESX Migrate/Upgrade,ESXi,Scripting,Tools,vSphere (ESX) — A. Mikkelsen @ 10:29 am

Just stumbled upon this nice tool to do SVmotion from a Windows server
http://communities.vmware.com/thread/122847?tstart=0

A. Mikkelsen

Older Posts »

Powered by WordPress