none
incorrect function

    Question

  •  

    Hi all,

    I have windows 2003 OS VHD.  I created windows 2008 clustering with
    VM highly available.  When I create VM which link this VHD ON THE SHARED
    storage, I GOT AN ERROR "incorrect function" when I tried to start this VM. 
    But, if I link this VHD to the local disk, I can start VM without any
    problem.  What am I missing?  (BW, I used StarWind simulated iSCSI storage)

    Here is the detailed error:

     

    Log Name:      Microsoft-Windows-Hyper-V-Worker-Admin
    Source:        Microsoft-Windows-Hyper-V-Worker
    Date:          10/20/2008 12:22:12 PM
    Event ID:      12140
    Task Category: None
    Level:         Error
    Keywords:     
    User:          NETWORK SERVICE
    Computer:      HY1.company.local
    Description:
    'VM': Failed to open attachment 'H:\VM.vhd'. Error: 'Incorrect function.' (0x80070001). (Virtual

    machine 0B2277DC-D207-4EC6-96A0-7930B54A0F55)
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Hyper-V-Worker" Guid="{51ddfa29-d5c8-4803-be4b-

    2ecb715570fe}" />
        <EventID>12140</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2008-10-20T16:22:12.282Z" />
        <EventRecordID>315</EventRecordID>
        <Correlation />
        <Execution ProcessID="5492" ThreadID="1708" />
        <Channel>Microsoft-Windows-Hyper-V-Worker-Admin</Channel>
        <Computer>HY1.company.local</Computer>
        <Security UserID="S-1-5-20" />
      </System>
      <UserData>
        <VmlEventLog xmlns:auto-ns2="http://schemas.microsoft.com/win/2004/08/events"

    xmlns="http://www.microsoft.com/Windows/Virtualization/Events">
          <VmName>VM</VmName>
          <VmId>0B2277DC-D207-4EC6-96A0-7930B54A0F55</VmId>
          <String>H:\VM.vhd</String>
          <ErrorCodeString>%%2147942401</ErrorCodeString>
          <ErrorCode>0x80070001</ErrorCode>
          <Param1>Hyper-V Virtual Machine Management service</Param1>
          <Param2>
          </Param2>
        </VmlEventLog>
      </UserData>
    </Event>


    Log Name:      Microsoft-Windows-Hyper-V-Worker-Admin
    Source:        Microsoft-Windows-Hyper-V-Worker
    Date:          10/20/2008 12:22:12 PM
    Event ID:      12010
    Task Category: None
    Level:         Error
    Keywords:     
    User:          NETWORK SERVICE
    Computer:      HY1.company.local
    Description:
    'VM' Microsoft Emulated IDE Controller (Instance ID {83F8638B-8DCA-4152-9EDA-2CA8B33039B4}):

    Failed to power on with Error 'Incorrect function.' (0x80070001). (Virtual machine 0B2277DC-D207

    -4EC6-96A0-7930B54A0F55)
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Hyper-V-Worker" Guid="{51ddfa29-d5c8-4803-be4b-

    2ecb715570fe}" />
        <EventID>12010</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2008-10-20T16:22:12.282Z" />
        <EventRecordID>317</EventRecordID>
        <Correlation />
        <Execution ProcessID="5492" ThreadID="1708" />
        <Channel>Microsoft-Windows-Hyper-V-Worker-Admin</Channel>
        <Computer>HY1.company.local</Computer>
        <Security UserID="S-1-5-20" />
      </System>
      <UserData>
        <VmlEventLog xmlns:auto-ns2="http://schemas.microsoft.com/win/2004/08/events"

    xmlns="http://www.microsoft.com/Windows/Virtualization/Events">
          <VmName>VM</VmName>
          <VmId>0B2277DC-D207-4EC6-96A0-7930B54A0F55</VmId>
          <DeviceName>Microsoft Emulated IDE Controller</DeviceName>
          <ErrorCodeString>%%2147942401</ErrorCodeString>
          <ErrorCode>0x80070001</ErrorCode>
          <DeviceInstanceId>{83F8638B-8DCA-4152-9EDA-2CA8B33039B4}</DeviceInstanceId>
          <Param1>
          </Param1>
        </VmlEventLog>
      </UserData>
    </Event>


    Thank you!

    Wednesday, October 22, 2008 6:54 PM

Answers

  • Hello,

     

    Do you mean that you tried to create a new VHD file on the SAN storage and add it to an existing virtual machine?

     

    If possible, would you please try creating a new LUN and assigning it to the Hyper-V server, and then creating a new virtual machine and a secondary VHD file? Do not add this virtual machine into the Failover Cluster and put only the secondary VHD file in the new LUN to see if the problem remains?

     

    If yes, well, it seems to be the StarWind iSCSI software issue or the storage issue. I am sorry to say that we have little knowledge on the StarWind iSCSI software and we may not be the best resource on this issue. You may need to contact StarWind for detailed information on this or, you can try downloading the latest version and check if you have configured all the settings correctly.

     

    Just for your reference, here are some requirements if you want to use SAN as the storage device in Windows Server 2008:

     

    1. The storage, including drivers, firmware, and software used for the storage, are compatible with Windows Server 2008.

    2. The storage must support Persistent Reservations as specified in the SCSI Primary Commands-3.

    3. The miniport driver used for the storage must work with the Microsoft Storport storage driver.

     

    Best regards,

    Chang Yin
    • Marked as answer by Chang Yin Friday, October 31, 2008 1:55 AM
    Monday, October 27, 2008 12:09 PM