Showing posts with label scsi. Show all posts
Showing posts with label scsi. Show all posts

Sunday, January 8, 2017

vmware convert virtual ide to virtual scsi disk image


https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1016192


  • Virtual machine contains an IDE virtual disk as the primary operating system bootable disk after conversion from physical source.
  • Virtual machine has an IDE virtual disk but the additional secondary virtual disks are SCSI with an LSI or Bus Logic controller.
  • Virtual machine fails to start with only a black screen after conversion with possible underscore. The primary disk is an IDE virtual disk but LSI or Bus Logic was selected during conversion.
  • After conversion using P2V, the virtual machine fails to start.
  • Virtual machines created after P2V fails to start between 95% and 99%.
  • After powering off a virtual machine, you are unable to increase the size of its hard disk(s) when the disk is not SCSI based.
  • Increasing the size of hard disk when the disk that is not SCSI based fails with the error:

    Failed to extend disk : The file specified is not a virtual disk


Solution:


When converting a physical machine to a virtual machine using VMware Converter or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE disk as the primary operating system disk.

You must convert the IDE disk to SCSI to get the best performance. If the primary disk is an IDE virtual disk, the newly converted virtual machine may fail to start because the guest operating system does not support the driver. This issue may occur because, in ESX 4.x the default disk type for Windows XP 32-bit virtual machine creation is IDE. This default value can be manually changed during the virtual machine creation wizard by selecting the custom option. Windows XP 64 bit will still use SCSI by default.
Note: For newer versions of Windows and Linux operating system guests, the typical SCSI adapter types are the LSI Logic controllers. When using LSI Logic SCSI controllers in the Windows XP virtual machine, ensure to download and install the appropriate LSI driver before proceeding. For more information on downloading and installing LSI Logic SCSI drivers, see Storage Drivers for ESX 3.5.x and Microsoft Windows XP When Using the VMware LSI Logic Storage Adapter (1007035).

In situations where you are manually changing an IDE disk to a SCSI disk that holds a Windows Operating system volume, you may need to repair the master boot record of the disk. For more information, see Repairing boot sector problems in Windows NT-based operating systems (1006556).

To convert the IDE disk to SCSI:

  1. Download the driver (LSI20320-R controller) from the Avago.
    Note: The preceding link was correct as of April 22, 2015. If you find the link is broken, provide a feedback and a VMware employee will update the link.
  2. Power off the virtual machine.
  3. From the Edit Settings menu for this virtual machine:

    • Go to Add > Hard Disk > Create New Virtual Disk.
    • Change the Capacity to 1 GB and click Next. 
    • Ensure that the Virtual Device Node is set to SCSI.
    • Complete the wizard and select the New SCSI Controller.
    • If the current type is not LSI Logic Parallel Select Change Type, change the type to LSI Logic Parallel.
    • Click OK.
    • Choose the same controller as in Step 4 as the adapter type. The SCSI ID should read SCSI 0:0.
  4. Power on the virtual machine.
  5. Follow the Found New Hardware wizard or in the Windows device manager inside the Windows guest and select the unknown device.
  6. Right-click Update Driver and select the LSILogic SCSI controller driver downloaded earlier. This installs the drivers for the LSILogic SCSI controller inside the guest operating system.
  7. Power off the virtual machine.
  8. Locate the datastore path where the virtual machine resides.

    For example:

    # cd /vmfs/volumes/datastore_name/vm_name/

  9. From the ESX Service Console, open the primary disk (.vmdk) using the vi editor. For more information, see Editing files on an ESX host using vi or nano (1020302).


  10. Look for the line:

    ddb.adapterType = "ide"

  11. To change the adapter type to LSI Logic change the line to:

    ddb.adapterType = "lsilogic"
    To change the adapter type to Bus Logic change the line to:

    ddb.adapterType = "buslogic"

    In some instances the entry appears as ddb.adapterType = "legacyESX". In this case change the line to:

    ddb.adapterType = "lsilogic"

  12. Save the file.
  13. From VMware Infrastructure/vSphere Client:

    1. Click Edit Settings for the virtual machine.
    2. Select the IDE virtual disk.
    3. Choose to Remove the Disk from the virtual machine.
    4. Click OK.

      Caution: Do not choose delete from disk.
  14. From the Edit Settings menu for this virtual machine:

    1. Go to Add > Hard Disk > Use Existing Virtual Disk.
    2. Navigate to the location of the disk and select to add it into the virtual machine.
    3. Choose the same controller as in Step 9 as the adapter type. The SCSI ID should read SCSI 0:0.
  15. If a CDROM device exists in the virtual machine it may need to have the IDE channel adjusted from IDE 0:1 to IDE 0:0. If this option is greyed out, remove the CD-ROM from the virtual machine and add it back. This sets it to IDE 0:0.



supporting scsi system disks on vmware for windows xp


Windows xp default drivers never supported scsi disks by default.  You had to add drivers to support adaptec and the like.  Seldom were systems built up in early configurations w/o some ide support, and especially the chipsets always had ide.

However if you are building up an install from scratch on vmware esxi, you may find that the ide drives are not supported.

Here is a vmware hardware support page showing how to install drivers the old fashioned way by inserting a floppy and F6 and the like during the initial phases of the install of the OS.

Haven't' found a note on how to get to a system which needs them and if it is even possible to add them after the fact on a vmware image of xp that runs on a vmware host program, such as vmware workstation or player, or on esxi 4 or esxi5 which have IDE.

https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1000863

copying the verbiage here from vmware for safekeeping on this note.


  • When installing Windows XP in a virtual machine on VMware ESX, Windows setup fails to detect hard disks in the virtual machine
  • You see the error:

    Setup did not find any hard disk drives installed in your computer.
 



To resolve this issue, supply the correct drive during setup to proceed with installation.
 
When installing Windows XP in a virtual machine setup is unable to find the hard drives because no compatible disk controller driver is shipped on the Windows XP setup disc. You must supply the correct drive during setup to proceed with installation.
 
To ensure you supply the correct drive:
  1. When creating the new virtual machine, select the BusLogic option for the Virtual SCSI Controller mode.
  2. Attach the VMware SCSI driver floppy image and connect the virtual floppy drive to the virtual machine.

    • If you are using an ESX host and the Virtual Infrastructure client:

      1. Right-click the virtual machine from the Inventory pane.
      2. Click Edit settings.
      3. Click the virtual floppy drive and select Connected.
      4. Select Use floppy image.
      5. Browse to the location /vmimages.
      6. Select the file vmscsi-1.2.x.x.flp.

        Note
        : If the file is missing, download the floppy image from: http://download3.vmware.com/software/vmscsi-1.2.0.4.flp.
    • If you are using VMware Lab Manager the file is available from the media library.

      To insert the floppy disk into the virtual machine:
      1. From the virtual machine console window, move the pointer over the virtual machine name and click Insert Floppy.
      2. From the Media Library menu, select (LMStorage1) vmscsi-1.2.0.4.flp.
      3. Click Use.
  3. Attach or insert the Windows XP installation media and connect it to the virtual machine.
  4. Power on the virtual machine and open a console view of the virtual machine.
  5. Click the console to assign keyboard control to the virtual machine.
  6. When the blue Windows setup screen appears, press F6 when prompted.
  7. When prompted for additional drivers, press S .
  8. Press Enter to select the VMware SCSI Controller driver, and then Enter again to continue setup.
  9. Complete Windows XP setup normally from this point.

    Note: When setup has completed the first phase of installation and restarts the virtual machine, you may need to disconnect or unassign the virtual floppy drive or the virtual machine may attempt to boot from the floppy image.

    For detailed instructions, see the PDF document attached to this article. For more information on installing Windows XP, see the VMware Guest Operating System Installation Guide .


Driver image stored locally with above file name on vmware download under winxp scsi driver