locked
HORM in Windows Embedded Standard 2011 CTP RRS feed

  • Question

  • Is HORM available as part of EWF with the CTP?
    Whilst EWF is searchable in the documentation HORM insn't.
    We have a Win 7 RTM system that we want to migrate to the CTP as a trial.

    David JOnes
    VPAC
    Friday, September 4, 2009 5:10 AM

Answers

  • HORM is available on CTP build. Please use the following steps

    Packages needed

    1. "Enhanced Write Filter" ("FeaturePack" => "Embedded Enabling Features" => "Enhanced Write Filter")
    2. "Embedded Windows 7 Boot Environment" ("FeaturePack" => "Boot Environments" => "Embedded Windows 7 Boot Environment")
       This package contains the HORM aware boot binaries necessary to make HORM work. Do not use the native boot binaries in the peer package ("FeaturePack" => "Boot Environments" => "Windows 7 Boot Environment")
    3. Useful utilities such as shutdown.exe, regedit, diskpart etc
    3a."Power Management" ("FeaturePack" => "Management" => "Power Management")
    3b. "System Management" ("FeaturePack" => "Management" => "System Management")

    Preferrably resolve all optional dependencies as well. Build and install the image containing these packages. Follow these steps to configure HORM post install

    (4) Enable hibernation
    > powercfg.exe /h ON

    (5) Disable false bootstat warnings
    > bcdedit.exe /set {current} bootstatuspolicy ignoreallfailures

    (6). Enable EWF on all partitions
    > ewfmgr.exe /all /enable

    (7) Restart to have the command take effect
    > shutdown.exe /r /t 0

    (8). Activate HORM
    > ewfmgr.exe C: /activatehorm

    (9). Capture the HORM state by hibernating the machine once
    > shutdown.exe  /h

    (10) Resume the machine and start using HORM. At this point each restart should result in a resume from the state captured in the previous step

    (11) If you wish to deactivate HORM
    >  ewfmgr.exe C: -deactivatehorm

    (12) If you wish to disable ewf (disable HORM first)
    > ewfmgr.exe  /all /disable
    followed by a restart

    If you are using HORM for the first time , keep the disk configuration simple (just one partition). Please feel free to ask any questions related to EWF and HORM here

    Thanks
    Srikanth


    Srikanth Kamath [MSFT]
    Friday, September 4, 2009 6:17 PM

All replies

  • HORM is available on CTP build. Please use the following steps

    Packages needed

    1. "Enhanced Write Filter" ("FeaturePack" => "Embedded Enabling Features" => "Enhanced Write Filter")
    2. "Embedded Windows 7 Boot Environment" ("FeaturePack" => "Boot Environments" => "Embedded Windows 7 Boot Environment")
       This package contains the HORM aware boot binaries necessary to make HORM work. Do not use the native boot binaries in the peer package ("FeaturePack" => "Boot Environments" => "Windows 7 Boot Environment")
    3. Useful utilities such as shutdown.exe, regedit, diskpart etc
    3a."Power Management" ("FeaturePack" => "Management" => "Power Management")
    3b. "System Management" ("FeaturePack" => "Management" => "System Management")

    Preferrably resolve all optional dependencies as well. Build and install the image containing these packages. Follow these steps to configure HORM post install

    (4) Enable hibernation
    > powercfg.exe /h ON

    (5) Disable false bootstat warnings
    > bcdedit.exe /set {current} bootstatuspolicy ignoreallfailures

    (6). Enable EWF on all partitions
    > ewfmgr.exe /all /enable

    (7) Restart to have the command take effect
    > shutdown.exe /r /t 0

    (8). Activate HORM
    > ewfmgr.exe C: /activatehorm

    (9). Capture the HORM state by hibernating the machine once
    > shutdown.exe  /h

    (10) Resume the machine and start using HORM. At this point each restart should result in a resume from the state captured in the previous step

    (11) If you wish to deactivate HORM
    >  ewfmgr.exe C: -deactivatehorm

    (12) If you wish to disable ewf (disable HORM first)
    > ewfmgr.exe  /all /disable
    followed by a restart

    If you are using HORM for the first time , keep the disk configuration simple (just one partition). Please feel free to ask any questions related to EWF and HORM here

    Thanks
    Srikanth


    Srikanth Kamath [MSFT]
    Friday, September 4, 2009 6:17 PM
  • Thanks for that detail, I'll give a buzz.

    I've used ith XPE extensively and want to now try it with WES 2011.

    I note from the documentation once instatled, on comparing WES2001 to XPE:
                                                               WES 2011                                                                  XPE

    Embedded Enabling Features

    • Parity with Windows XP Embedded
    • File -Based Write Filter (FBWF)
    • Enhanced Write Filter (EWF)
    • EWF/HORM (Hibernate Once/Resume Many Environment)
    • USB Boot
    • CD/DVD Boot
    • Custom shell support
    Monday, September 7, 2009 3:53 AM
  • Correction:
    "FeaturePack" => "Boot Environments" => "Windows 7 Boot Environment"
    is actually
    "FeaturePack"=> "System Services" => "Windows Boot Environment"  .. disable this.

    Resolve dependencies does this anyway.

    Wednesday, September 9, 2009 12:01 AM
  • Having problems getting hibernation to work with the VPC image.

    Without VM Additons , get a generic display adapter.
    When run powercfg.exe /h ON
    I get:
    Hibernation failed with the following error: The request is not supported.

    The following items are preventing hibernation on this system.
            The system firmware does not support hibernation.

    With VM addtions I get:

    C:\Users\davidj>powercfg.exe /h ON
    Hibernation failed with the following error: The request is not supported.

    The following items are preventing hibernation on this system.
            The system firmware does not support hibernation.
            There are one or more legacy drivers installed:
                    1-driver-vmsrvc
                    vpc-s3

    I know that Hibernation, and in particular HORM, requires the correct driver with PM before hibernation will work.

    Are there any updates to VM drivers for this for Win 7 / WES2011?

    PS I can't get the sound card to work as well.

    Thx

    Wednesday, September 9, 2009 6:54 AM
  • Having problems getting hibernation to work with the VPC image.

    As far as I know - Virtual PC does not support hibernate / resume (based off hiberfil.sys). Neither does Hyper-V.  Both support a different notion of hibernation called " save / restore " which provides user experience similar to hibernate / resume but is not based off hiberfil.sys at all.

    You'll need a physical machine that supports hibernation to try HORM. This should be true for XPE as well.

    Thanks
    Srikanth
    Srikanth Kamath [MSFT]
    Wednesday, September 9, 2009 3:52 PM
  • I have used hibernation with VPC and XP previously.
    Even had horm running on XPE.

    The trick was to not install the VM Additions.

    I tried various combinations with this but no success.
    I had set the image to be Vista as in comments for for Win 7   VPC VMs.
    (I'll try getting Hibernation working on a Win 7 VPC VM as a next step.
    And I'll try doing it all on a later machine that has hw virtualisation).




    Thursday, September 10, 2009 12:58 AM
  • VMWARE + HORM = Success!

    I have now created a VMWare VM with WES 200 CTP.
    Whilst it showed a number of unrecognised devices in the WES install at start,
    the sound card was the only failure to load once it VMWare installed it tools.

    AND WITH THE VMWARE WES2011 CTP VM, HORM works fine!

    PS I disabled the sound card.  i'll get around to trying it with and without the sc.
    Thursday, September 10, 2009 12:59 AM
  • I migrated teh image to my Win 7 RTM Laptop
    Still can't run powercfg /h ON sucessfully  .. so I'll give up on HORM under VPC

    I did though solve the solve sound card problem as follows:
    - Inserted a USB sound (card) device to the host laptop (Win7)
    - Auto installed its driver there.
    - Attached it to the VPC.
    - Partially installed but had some problems.
    - I then chose to reinstall its driver and pointed to a share on my laptop at \windows\win32
    - Wala IJW
    - Sound now works on my VM when I attach the USB sound device to it.

    I was able to also attach the laptop's fingerprint device and use it to loginto the image.

    Thursday, September 10, 2009 8:02 AM
  • You are right. Hibernation is available with VPC for XP guests. But it appears to have been dropped for Win 7 guests. I am in touch with the VPC team and will post the official stand on this when available. I updated my previous post to reflect this.

    Thanks
    Srikanth

    Srikanth Kamath [MSFT]
    Thursday, September 10, 2009 5:32 PM
  • Thanks.
    I'll also try a Win7 VPC VM and try out Hibernation.
    Friday, September 11, 2009 4:45 AM
  • I followed your steps up to step 8 where i get the error "HORM is not supported on this image" what am I missing?
    Friday, September 25, 2009 5:56 AM
  • It sounds like HORM.dat is missing from your image.  During installation it should be copied to "Boot" folder of the BCD volume along with other boot files.  BCD volume is the active partition (contains bootmgr). If you did not choose "Create separate system partition" option during IBW install, your operating system partition itself will be the BCD volume. Copying HORM.dat manually to the "Boot" folder of the BCD volume should fix your problem.

    1. Disable EWF.
    2. Locate the active (BCD) partition (Using DiskMgmt.msc or diskpart.exe).
    3. Copy HORM.dat from the EWF package to the Boot folder of the BCD volume.
    4. Restart.
    5. Enable EWF .
    6. Enable HORM.

    Let me know if this helps

    Thanks
    Srikanth


    Srikanth Kamath [MSFT]
    Friday, September 25, 2009 5:41 PM
  • Steve - Were you able to fix this problem ? We would like to get to the bottom of this and understand what caused this ? Can you share your setup logs , also is this a dual boot scenario ?

    Community -  Has anyone else seen this problem ?

    Thanks
    Srikanth
    Srikanth Kamath [MSFT]
    Tuesday, September 29, 2009 3:58 PM
  • This is fixed in the RTM version - Both boot environments are listed under Feature Pack => Boot Environments.
    Srikanth Kamath [MSFT] - This posting is provided "As Is" with no warranties, and confers no rights.
    Friday, August 20, 2010 5:22 PM
  • Hi,

    How do I capture the HORM state without the command window?

    The problem is that the command window is open when this state is captured, therefore the command window is on display when I restart my system.

    I tried a Batch file to perform the shutdown.exe /h command, which works but I cannot access it when my application is running. So I still end up with the Windows desktop and my application minimized.

    Do I need to hard code the command within my application?

     

    Thanks.

     

    Monday, September 27, 2010 5:08 PM
  • Yes , you could trigger hibernation using SetSuspendState API or use Windows UI (if available).
    Srikanth Kamath [MSFT] - This posting is provided "As Is" with no warranties, and confers no rights.
    Monday, September 27, 2010 5:23 PM
  • Thanks, but seems rather complicated. So another solution I think may work would be to delay the command in the batch file by self pinging for 10 seconds during which I would start my own application before it runs the command.

     

    start "" "C:\Program Files\Application.exe" 
     
    ping 192.168.0.10 -6 
     
    C:/Windows/system32/shutdown.exe /h

    This works.

    Monday, September 27, 2010 5:41 PM
  • but i chose "FeaturePack" => "Boot Environments" => "Windows Boot Environment"

    horm was also running well

    Tuesday, September 2, 2014 10:04 AM