Tocorrect the adapter type after the conversion or creation of a virtual machine, use the GUI or the command line.
GUI
Command line
To correct the adapter type after the conversion or creation of a virtual machine using the command line:
-
Power off the virtual machine that is using the virtual hard disk file (VMDK).
-
If the virtual machine is located on an ESX/ESXi host, use the service console to access the file. For more information on accessing the service console, see:
-
Locate the smallest VMDK file (about 340 bytes), which will typically be in a folder labeled /vmfs/volumes/volume id/virtual machine name on an ESX/ESXi host. If not accessing a host, locate the file on your local drive.
-
After the virtual machine is located, open the .vmdk file using a text editor or vi (nameofvm).vmdk command.
The file appears similar to:
# Disk DescriptorFile
version=1
CID=cid
parentCID=ffffffff
createType="create_type"
# Extent description
RW num_sectors TYPE "filename"
# The Disk Data Base
#DDB
ddb.virtualHWVersion = "version"
ddb.geometry.cylinders = "cylinders"
ddb.geometry.heads = "heads"
ddb.geometry.sectors = "sectors"
ddb.adapterType = "adapter_type"
-
Locate the line ddb.adapterType.
-
Specify one of these parameters:
lsilogic or
buslogic.
This table shows the adapter type for the guest operating system:
</>
Guest Operating System
|
Adapter Type
|
Windows 2003, 2008, Vista, Windows 7
|
lsilogic
|
Windows NT, 2000, XP
|
buslogic
|
Linux
|
lsilogic
|
|
Note: If the desired setup is for the virtual machine to use the PVSCSI controller, the
ddb.adapterType should be set to
lsilogic. If the
ddb.adapterType is set to PVSCSI, storage vMotion fails.
-
Save the changes to the .vmdk file.
-
Power on the virtual machine. If you are prompted to change the adapter type assigned to the virtual machine, allow the changes.
For information on changing the SCSI controller using the GUI option, see Change the virtual SCSI controller of a virtual machine (1002149).