VMware Cloud Community
usmanjamil
Contributor
Contributor

Issue with SCSI Controller Type MisMatch on a new virtual machine

Hello

I've created a virtual machine with Windows 2008 Server as Os on it. I'm using its VHD to act as template (by creating copies) for my new Windows 2008 virtual machines. I'm doing it using ESXi 5.0 Vim API in my application.

The problem I'm facing is that if I select LSA Logic Parallel as SCSI Controller type while creating the template virtual machine, then all virtual machines created using the template Virtual Machine VHD necessarily have to use LSA Logic Parallel as SCSI Controller type, otherwise the virtual machine created will give a blue screen at boot time and reboot. Same is the case if template VHD has LSA SAS type SCSI controller and the Virtual machine created on LSA Logic Parallel, the newly created VM will not boot.

Since I'm doing it all programmatically and not using VSphere client, so the solution I can think of is to somehow detect the type of SCSI controller added on template VHD (that I'm copying to create virtual machines) and use same type of SCSI Constroller while creating new virtual machine.

Is there any method in Vim API to check the scsi controller type on a VHD file. Please note that I may not have the template virtual machine, instead only its hard disk.

Regards

Usman

0 Kudos
0 Replies