Jump to content

WinPE is missing C drive


ragsboss

Recommended Posts

We are seeing a strange issue. When we boot a vm into winpe, we are seeing the C drive is missing. I went through whatever logs are available and did a lot of research on internet and found no clues.

When we do diskpart, and run 'list volume' we do see the volume listed and it does have the expected disk and that disk has expected partitions. The only issue is the listed volume has no assigned drive letter. In fact when we explicitly assign the letter the C drive does come up with all expected content - so I'm not sure this is to do with drivers or anything.

Does anyone have any clue or know how we can diagnose this further? I'm at real loss here and would really appreciate any leads whatsoever.

Thanks Rags

Link to comment
Share on other sites


I look like that your winpe (whatever its version) doesn't contain the mass storage driver for the virtual controller of your VM.

Depending what you're trying to do, you'd need to add the virtual controller driver to your winpe or change your virtual controller type in your VM.

Link to comment
Share on other sites

I look like that your winpe (whatever its version) doesn't contain the mass storage driver for the virtual controller of your VM.

Depending what you're trying to do, you'd need to add the virtual controller driver to your winpe or change your virtual controller type in your VM.

owww :wacko: , come on :).

So, the disk is visible and as soon as a letter is manually assigned to the volume on it, by sheer magic the missing mass storage controller materializes itself from thin air? :w00t:

@ragsboss

WHO are the "we"? <-this is just curiosity

WHICH PE is it? <- I mean is it a PE 3.x i.e. made form windows 7 or another earlier version?

WHICH VM is it? <- Some detail might help

HOW exactly was the PE built? <-WAIK or some builder, if the latter which one?

From WHICH device is the PE booted? <-like cirtual CD/iso, seconf hard disk like device, etc.

A possible workaround, NOT a solution, could be to autoexecute a program like the ones discussed here:

http://reboot.pro/10169/

If i were you I would check the PE Registry, namely checking first thing the Mounteddevices / Dosdevices and the Nodrives key, see:

http://diddy.boot-land.net/firadisk/files/mounteddevices.htm

http://www.wisdombay.com/hidedrive/index.php

What is the output of MOUNTVOL?

And the one from dd --list (see the linked thread on reboot.pro)?

jaclaz

Edited by jaclaz
Link to comment
Share on other sites

I look like that your winpe (whatever its version) doesn't contain the mass storage driver for the virtual controller of your VM.

If the mass storage driver is not installed, Diskpart can't see anything. If you do a LIST DISK, it will return "No fixed disks" message.

Link to comment
Share on other sites

  • 1 month later...

It's winpe version 2.1. Output of mountvol and registry is in the attachment. The vm is on VMware ESXi 5.

We have a custom build process to customize few aspects of winpe iso file like startnet.cmd. I just noted that call to wpeinit.exe was missing from our startnet.cmd but we ran it after-the-fact but that didn't seem to help. We'll probably try building a new iso with the call to wpeinit.exe... I'll keep you updated.

I'm sorry about the late reply. I didn't get any notifications of this and the problem didn't seem to happen for a long time but recurred again today. Whenever it happens the vm is cloned from a specific source, but we are unable to find any different in vm configuration between this special source vm and other working vm sources...post-358173-0-54853600-1346366598_thumb.

Link to comment
Share on other sites

Few more details. Addition of wpeinit.exe call didn't help. However we noticed one interesting thing. The winpe boot happens as part of clone vm high-level scenario. There are some specific source vms that get into this state somehow, such that winpe booting any vm cloned from them will result in missing C drive. We don't know the recipe to create such a buggy source vm - randomly some source vms start exhibiting this weird behavior. Additionally what we found is if the buggy source vm is powered off when clone is invoked, we do NOT see this issue. But when the buggy source vm is powered ON we see this issue.

I'm at a loss on how to find the root cause for this. Does anyone know exactly what process is responsible for assigning drive letters to volumes? Maybe we can find a way to instrument relevant parts of boot logic, if possible to know more about this...

Any help is appreciated.

Link to comment
Share on other sites

We don't know the recipe to create such a buggy source vm - randomly some source vms start exhibiting this weird behavior. Additionally what we found is if the buggy source vm is powered off when clone is invoked, we do NOT see this issue. But when the buggy source vm is powered ON we see this issue.

It is really "strange".

Stiil there must be *something* (very likely in the Registry) differing.

Can you try doing two "clones", one with the VM running and one with the VM shut down and then compare the two registries?

What you report seems like implying that when you make the clone on the powered on VM *something* is seen by the whatever is used to "clone" as *somehow* "busy" or "not accessible" and this "flag" (or whatever) is "transported" to the clone.

(I know that the above is VERY "vague" :blushing: , it is just to convey the "general idea")

Have you tried running "blindly" either mountstorage PE or showdrive in one of the affected clones to see of the issue is solved?

Could it be that somehow the disk gets "offline" (but this should not be possible in a PE 2.1) if I recall correctly:

http://reboot.pro/8200/

http://reboot.pro/8200/page__st__25#entry73620

Another possibility is that - still somehow - the thingy gets the NoAutoMount key set:

http://www.911cd.net/forums//index.php?showtopic=24551

however the related keys should be the ones mentioned:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MountMgr\

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\partmgr\Parameters

jaclaz

Link to comment
Share on other sites

  • 2 weeks later...

Our QA guy is awesome. We haven't yet found the solution but he uncovered the recipe to consistently create the repro scenario. Whenever the source vm has "VMWare Tools" installed and is on while cloning from it, the cloned vm will have this issue when booted into WinPE.

I can't understand how that can affect the C drive, but it is. http://www.vmware.com/pdf/vmware-tools-cli.pdf has some details about what vmware tools is made up of. It looks like it has a bunch of device drivers, an auto start service or such. I'm suspecting the hypervisor does some things differently on powering on a vm with vmware tools vs. without vmware tools. This difference is perhaps causing the issue. When we boot the cloned vm using winpe, the vmware tools are obviously not present in winpe but hypervisor blindly thinks vmware tools ought to be present whenever the vm is turned on.

Does this give any concrete clue to someone?

We are using LSI Logic Parallel SCSI adapter for the vm which means the vmware tools' scsi driver shouldn't be used - not sure this is relevant...

Link to comment
Share on other sites

All the credit to our QA guy (Dan) - we found the root cause for this!

Even natively in vmware, we cannot successfully clone a powered on win2008R2 VM with guest tools installed.

Dan found this link which describes the exact problem we hit when cloning natively, which also somehow seems to affect us in winpe boots where the OS volume is missing it's drive letter:

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

We tried the workaround suggested in this link, which is basically this:

To workaround this issue on previous versions of ESX/ESXi 4.1 and ESXi 5.0:

Power down the source virtual machine.

Backup the .vmx file of the source virtual machine.

Change the value of the disk.EnableUUID parameter to False. For more information, see Tips for editing a .vmx file (1714).

Save the changes made to the .vmx file.

Clone the virtual machine again.

After doing this, the problem is gone!

VMware fixed this problem in esx5 update1: https://www.vmware.com/support/vsphere5/doc/vsp_esxi50_u1_rel_notes.html#resolvedissues

In there you can see this is resolved:

Customization of a virtual machine hot clone running Windows 2008 R2 guest operating system fails and the clone reboots continuously

The customization of the hot clone of a Windows 2008 R2 guest operating system fails with the auto check not found error message, and the virtual machine reboots continuously.

This issue is resolved in this release.

I'd like to take this opportunity to sincerely thank all those who replied - in the process we learned some new stuff and discovered this great forum with good folks in it!

Link to comment
Share on other sites

  • 6 months later...

All the credit to our QA guy (Dan) - we found the root cause for this!

Even natively in vmware, we cannot successfully clone a powered on win2008R2 VM with guest tools installed.

Dan found this link which describes the exact problem we hit when cloning natively, which also somehow seems to affect us in winpe boots where the OS volume is missing it's drive letter:

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

We tried the workaround suggested in this link, which is basically this:

To workaround this issue on previous versions of ESX/ESXi 4.1 and ESXi 5.0:

Power down the source virtual machine.

Backup the .vmx file of the source virtual machine.

Change the value of the disk.EnableUUID parameter to False. For more information, see Tips for editing a .vmx file (1714).

Save the changes made to the .vmx file.

Clone the virtual machine again.

After doing this, the problem is gone!

VMware fixed this problem in esx5 update1: https://www.vmware.com/support/vsphere5/doc/vsp_esxi50_u1_rel_notes.html#resolvedissues

In there you can see this is resolved:

Customization of a virtual machine hot clone running Windows 2008 R2 guest operating system fails and the clone reboots continuously

The customization of the hot clone of a Windows 2008 R2 guest operating system fails with the auto check not found error message, and the virtual machine reboots continuously.

This issue is resolved in this release.

I'd like to take this opportunity to sincerely thank all those who replied - in the process we learned some new stuff and discovered this great forum with good folks in it!

Thanks Rags! Just came across this old post (don't ask why!)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...