IT Consultant Everyday Notes

Just some problems/solutions storage

Tag Archives: VMWare

Azure: Migrated VM cannot start with 0x000000e

I recently migrated some VMs to Azure for one of my Customers. VMs were in Production and the Customer was not ready to switch IP address to DHCP before migration. Unfortunately neither ASR nor MVMC was an option and I stopped on Disk2VHD tool by Mark Russinovich following PowerShell Add-AzureVHD cmdlet for the VHD upload.

To speed up the process I connected an empty virtual disk to the migrated machine and save VHD on it. After the VHD was captured by the tool I mounted it and edited registry to enable DHCP on its network adapter.

That was a mistake (I found that hard way after several hours of uploading the VHD to Azure). The VM built from the VHD failed to start. Fortunately we can now see Boot Diagnostics, so I found the VM failed with

Status: 0x000000e

Info: The boot selection failed because a required device is inaccessible.


Internet brought nothing about VM migration to Azure with such error Sad smile

I finally found an article from Mark himself where he described exactly scenario I had (except migration to Azure). The main point – never open captured VHD on the same machine where the source disk is. That will break disk signature on VHD and it become unbootable.

Fortunately Mark described how to fix the signature.

1. Mount the VHD in Disk Manager (it should give its volumes letters since there is no signature conflict at that point)

2. Load DCD hive (located under hidden \Boot folder in root of one of the volumes) to regedit

3. Search for “Windows Boot Manager”

4. Open key 11000001 under the same elements

5. Double Click Element reg value in this key and look for Offset 0x38. We need first four bytes

6. Write down the bytes in reverse order (last byte first, third one after that, then second one and the first byte) . For example if you have four first bytes in 0x38 offset as 38 d5 5C C0 your disk signature will be c05cd538

7. Unload hive and close regedit

8. Start Diskpart tool and connect to the disk you are fixing

9. Invoke the DISKPART command:   uniqueid disk id=c05cd538   (change signature to yours). At this point you should see VHD going offline in Disk Manager due to signature conflict with the source drive. This is expected, do not bring it online

10. Unmount VHD

At this point the disk signature should be fixed and disk is expected to be bootable again.

SCCM 2012: Preparing XP gold image

1. Prepare VM (on VMWare Workstation 8.0)

– VM type: Windows XP

– HDD: SCSI (check .vmdk file to verify SCSI type is set to BusLogic)

– Network adapter E1000 ( enter ethernetN.virtualDev = "e1000"  in VM configuration (.vmx) file. N is the adapter index, if there is only one adapter it will be 0)

2. Prepare SCCM boot image.

– Extract SCSI drivers from wimndows.iso in VMWare Workstation installation folder

– Add the drivers to 32-bit image

3. Prepare Driver package

– Create n empty Driver Package

– Add SCSI drivers to the package

– Download drivers from Intel site (Prowin32.exe)

– Extract drivers to a temp folder and import them to the prepared Driver Package. Note: (some drivers are for Windows 8 and will give you an error).

4. Prepare Deployment Tool Package

– Extract \Support\Tools\  to a tem folder

-Create a package using the temp folder as a source (we do not need any Program)

5. Create a package containing Software Updates for XP and Deploy it to a collection containing the reference machine (otherwise “Install Updates” step won’t work

6. Prepare Task Sequence:

– Add a TS variable OSDDiskpartBiosCompatibilityMode=TRUE to workaround Uberbug issue


-Add Apply Driver Package Step to apply VMWare drivers for XP


Note: If you use a Hyper-V based machine you do not need any additional drivers (but still need Uberbug step and a package for Deployment tools)

Note. As soon as the image is captured remove the .wim file from the destination folder. SCCM cannot manage situation when the destination file is already exists and the TS will fail if you will decide to recapture the image.

Speed up graphics in Windows Servers running on VMWare platform

Found an article explaining procedure of speeding up graphics on VMWare-based VMs (in addition to VMWare Tools installation). The matter in face even with installed VMWare tools the machines are mot using WDDM driver. Bust they can be installed manually from C:\Program Files\Common Files\VMware\Drivers\wddm_video. The drivers can also be injected in WinPE images.