Jump to content











Photo
- - - - -

VHD_W7_Compact - Make Mini 7 -

win7 vhd usb mini7

  • Please log in to reply
86 replies to this topic

#76 wimb

wimb

    Gold Member

  • Developer
  • 2281 posts
  •  
    Netherlands

Posted 10 June 2016 - 09:30 PM

Hi agni,

 

Direct install of Win 7 Professional in VHD is according to Microsoft not allowed.

It might be that integrating Firadisk driver in install.wim can help to solve this problem ....

 

But it is much easier to install first Win 7 Professional on harddisk partition and then Install Firadisk driver

and then use VHD_W7_Compact.exe to make Portable /Mini or Full Copy VHD.

Nice thing is that the native VHD driver of Microsoft is also working in that case and the limitation is gone.



#77 agni

agni

    Frequent Member

  • Tutorial Writer
  • 254 posts
  • Location:Bengaluru (Bangalore)
  •  
    India

Posted 11 June 2016 - 02:13 AM

Thanks Wimb,

 

I assume that after installing Windows 7 Professional to a harddisk partition, I need to boot from it and then install Firadisk in the live running Windows. and then use VHD_W7_Compact.exe from an offline PE or Windows.

 

I was looking for a way of installing Firadisk to an offline (sleeping windows ) either on a harddisk partition or mounted vhd.

I am looking also researching integration of Firadisk into install.wim.

 

I am referring to the below topics and I'll post my findings and results.

http://reboot.pro/to...-disk/?p=123736

http://reboot.pro/to...ot-os-from-vhd/

http://reboot.pro/to...o-install-nt6x/

 

Regarding your last statement 

 

 

Nice thing is that the native VHD driver of Microsoft is also working in that case and the limitation is gone.

 

How does this work in Win7 professional after using VHD_W7_Compact.exe to create a portable VHD? How does your tool remove the limitation ?



#78 wimb

wimb

    Gold Member

  • Developer
  • 2281 posts
  •  
    Netherlands

Posted 11 June 2016 - 04:45 AM

How does this work in Win7 professional after using VHD_W7_Compact.exe to create a portable VHD? How does your tool remove the limitation ?

 

The MS VHD driver is not allowed by Setup of Win7 Professional for Install in VHD,

but when Professional is by other means "installed" in VHD, then the native VHD driver is working normally.

 

My tool just makes an entry in BootManager menu for booting the VHD and then the native VHD driver is used and everything works !

 

For direct Install in VHD you might be interested also in the tool Fix_7hdc of cdob.

http://www.911cd.net...showtopic=24245

 

Or have a look at the Tutorial #43 of steve6375

http://www.rmprepusb...ials/firawiniso



#79 agni

agni

    Frequent Member

  • Tutorial Writer
  • 254 posts
  • Location:Bengaluru (Bangalore)
  •  
    India

Posted 12 June 2016 - 07:19 AM

I figured out how to directly install unsupported versions of Windows 7 to a fixed size VHD using Firadisk.

 

I used WinNTSetup to create the VHD and install Windows 7 SP1 Home Premium(64 bit ). I had disable Native Checks by right clicking on the VHD button.

I used the below reg file in the Registry Tweak section of WinNTSetup. I got this after installing Firadisk on a working Windows 7 Ultimate which i installed and booted using native Microsoft VHD Driver.

I am not sure if the entries are hardware specific. I got this idea from this post by Karyonix - http://reboot.pro/to...-disk/?p=123736

I realised that the first set of reg entries are automatically created when firadisk is integrated using dism. So I just had to merge the below entries into the vhd.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\FiraDisk]

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\FiraDisk\0000]
"ConfigFlags"=dword:00000000
"Legacy"=dword:00000000
"DeviceReported"=dword:00000001
"Service"="FiraDisk"
"HardwareID"=hex(7):72,00,6f,00,6f,00,74,00,5c,00,66,00,69,00,72,00,61,00,64,\
  00,69,00,73,00,6b,00,00,00,00,00
"CompatibleIDs"=hex(7):44,00,45,00,54,00,45,00,43,00,54,00,45,00,44,00,49,00,\
  6e,00,74,00,65,00,72,00,6e,00,61,00,6c,00,5c,00,46,00,69,00,72,00,61,00,44,\
  00,69,00,73,00,6b,00,00,00,44,00,45,00,54,00,45,00,43,00,54,00,45,00,44,00,\
  5c,00,46,00,69,00,72,00,61,00,44,00,69,00,73,00,6b,00,00,00,00,00
"ContainerID"="{00000000-0000-0000-FFFF-FFFFFFFFFFFF}"
"Capabilities"=dword:00000000
"ClassGUID"="{4d36e97b-e325-11ce-bfc1-08002be10318}"
"Driver"="{4d36e97b-e325-11ce-bfc1-08002be10318}\\0001"
"Class"="SCSIAdapter"
"Mfg"="@oem15.inf,%mfakaryonix%;Karyonix"
"DeviceDesc"="@oem15.inf,%firadiskdevice%;FiraDisk Virtual Disk Enumerator"
"ParentIdPrefix"="1&2b2f4947&0"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\FiraDisk\0000\LogConf]

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\FiraDisk\0000\Control]
"ActiveService"="FiraDisk"


Once WinNTSetup was done ( I choose not update bootcode as I will be using Grub4Dos to boot ), the VHD was still mounted as Z:.

 

I used the below command to install Firadisk into the VHD mounted as Z:

dism /Image:Z:\ /Add-Driver /driver:firadisk.inf /ForceUnsigned

Then I used Bootice to load the BCD from the VHD mounted as Z: and checked the Test Mode option. This is required as it is 64 bit and we need to load the unsigned firadisk driver. 

 

The above two steps can be done with WinNTSetup using some command line options,but i haven't tried yet.

 

Then I used the below Grub4Dos Menu.lst to boot from the vhd. This I copied from menu.lst created by vhd-w7-compact when I used it for Windows 7 Ultimate.

title TEST WIN7 HP Firadisk FILEDISK
find --set-root --ignore-floppies /Win7HP.vhd
map --heads=2 --sectors-per-track=18 --mem (md)0x800+4 (99)
map /Win7HP.vhd (hd0)
map --hook
write (99) [FiraDisk]\nStartOptions=disk,vmem=find:/Win7HP.vhd,boot;\n\0
rootnoverify (hd0,0)
chainloader /bootmgr
map --status
pause Press any key . . .

That's it , I was able to boot from this VHD and the installation completed. I am now posting this message from my Windows 7 SP1 Home Premium running from a fixed size VHD using firadisk and grub4dos.

 

I'll now try to use this VHD to make a portable Win 7 using VHD_W7_Compact and run it from RAM.



#80 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13441 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 12 June 2016 - 10:28 AM

At first sight I am not convinced of the .reg file (of it being "portable" I mean).

Particularly the oem15.inf reference seems to me "volatile" :unsure:

The .reg in the original post by Karyonix has 7 elements in HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\FiraDisk\0000:

 

 

  1. Capabilities
  2. Class
  3. ClassGUID
  4. CompatibleIDs
  5. ContainerID
  6. HardwareID
  7. Service
           

The one you posted has 14:

 

  1. Capabilities
  2. Class
  3. ClassGUID
  4. CompatibleIDs
  5. ContainerID
  6. HardwareID
  7. Service
  8. ConfigFlags
  9. DeviceDesc
  10. DeviceReported
  11. Driver
  12. Legacy
  13. Mfg
  14. ParentIdPrefix

Maybe some of these are not "really-really" needed.

 

:duff:

Wonko



#81 wimb

wimb

    Gold Member

  • Developer
  • 2281 posts
  •  
    Netherlands

Posted 13 June 2016 - 06:42 PM

I figured out how to directly install unsupported versions of Windows 7 to a fixed size VHD using Firadisk.

 

...

 

I realised that the first set of reg entries are automatically created when firadisk is integrated using dism. So I just had to merge the below entries into the vhd.

 

 

Nice to hear about your succes to use Firadisk driver in direct Install of Win7 Professional into VHD created by WinNTSetup.

 

The Enum keys are generated by the Operating System, which enumerates the hardware found.

I think you should not add such Enum keys.

 

May be you can do a test without adding the Enum keys.

 

:cheers:



#82 agni

agni

    Frequent Member

  • Tutorial Writer
  • 254 posts
  • Location:Bengaluru (Bangalore)
  •  
    India

Posted 24 June 2016 - 10:30 AM

@Wonko and @Wimb. Thanks for your inputs. I will try this weekend. My school just started and I have been a little busy.



#83 agni

agni

    Frequent Member

  • Tutorial Writer
  • 254 posts
  • Location:Bengaluru (Bangalore)
  •  
    India

Posted 28 December 2016 - 02:42 PM

I digged a little deeper and I realised that using the Product Policy Viewer by Erwan - http://reboot.pro/to...tpolicy-viewer/

, Unsupported versions of Windows 7 like (professional,homepremium etc) can be booted using native VHD driver. The advantage of this over integrating Firadisk is that the Native VHD driver supports dynamic VHD boot . Firadisk only supports Fixed Size VHDs.

 

  1. Create and Install Windows 7 Professional ( or any other unsupported  Win 7 version ) to dynamic VHD using WinntSetup. 
  2. Reboot from the VHD and the Sysprep and Window 7 Setup will continue.After the setup is complete and when you try to login, you get an error "License error: Booting from a vhd is not supported on this system"
  3. Reboot into your main OS and mount the VHD. Using Erwan's Product Policy Tool to set Kernel-NativeVHDBoot to 1. Also Load the System Registry hive from the VHD and disable sppsvc service.
  4. Reboot into your VHD and you should be able to start using it.


#84 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13441 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 28 December 2016 - 03:39 PM

As a side note the whole point about "dynamic VHD's" is that they make no sense whatsoever in actual use, particularly in something like mini Windows 7 like W7 Compact is.

In other VM's terminology, they are called also "sparse" or "growable".

 

The feature is very convenient for experimenting or for initial testing, you can have a "virtual" (say) 50 Gb image occupying only (still say) 2 Gb, but once you have your "final build" that fits inside 2 Gb, it is of no use to have a "potentially larger" image.

Choose, you either:

1) *need* to fill it with (say) 2 Gb of additional bloat

or:

2) you are OK with the 2 Gb size

 

If #2 you are better off with a fixed size 2 Gb Vhd, if #1 you are better off with a 4 Gb size fixed VHD.

 

:duff:

Wonko 



#85 agni

agni

    Frequent Member

  • Tutorial Writer
  • 254 posts
  • Location:Bengaluru (Bangalore)
  •  
    India

Posted 02 January 2017 - 03:56 AM

At first sight I am not convinced of the .reg file (of it being "portable" I mean).

Particularly the oem15.inf reference seems to me "volatile" :unsure:

The .reg in the original post by Karyonix has 7 elements in HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\FiraDisk\0000:

 

 

  1. Capabilities
  2. Class
  3. ClassGUID
  4. CompatibleIDs
  5. ContainerID
  6. HardwareID
  7. Service
           

The one you posted has 14:

 

  1. Capabilities
  2. Class
  3. ClassGUID
  4. CompatibleIDs
  5. ContainerID
  6. HardwareID
  7. Service
  8. ConfigFlags
  9. DeviceDesc
  10. DeviceReported
  11. Driver
  12. Legacy
  13. Mfg
  14. ParentIdPrefix

Maybe some of these are not "really-really" needed.

 

:duff:

Wonko

 

I finally got round to testing this. I used the below reg file and I was able to integrate firadisk and boot from a fixed size vhd

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\FiraDisk]

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\FiraDisk\0000]
"ConfigFlags"=dword:00000000
"Service"="FiraDisk"
"HardwareID"=hex(7):72,00,6f,00,6f,00,74,00,5c,00,66,00,69,00,72,00,61,00,64,\
  00,69,00,73,00,6b,00,00,00,00,00
"CompatibleIDs"=hex(7):44,00,45,00,54,00,45,00,43,00,54,00,45,00,44,00,49,00,\
  6e,00,74,00,65,00,72,00,6e,00,61,00,6c,00,5c,00,46,00,69,00,72,00,61,00,44,\
  00,69,00,73,00,6b,00,00,00,44,00,45,00,54,00,45,00,43,00,54,00,45,00,44,00,\
  5c,00,46,00,69,00,72,00,61,00,44,00,69,00,73,00,6b,00,00,00,00,00
"ContainerID"="{00000000-0000-0000-FFFF-FFFFFFFFFFFF}"
"Capabilities"=dword:00000000
"ClassGUID"="{4d36e97b-e325-11ce-bfc1-08002be10318}"
"Class"="SCSIAdapter"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\FiraDisk\0000\LogConf]

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\FiraDisk\0000\Control]
"ActiveService"="FiraDisk"




#86 agni

agni

    Frequent Member

  • Tutorial Writer
  • 254 posts
  • Location:Bengaluru (Bangalore)
  •  
    India

Posted 04 January 2017 - 01:23 PM

I have figured out how to boot a 32 bit WIndows 7 into RAMDISK on a computer with 8GB of RAM.

Since the 32 bit Win 7 OS cannot access more than 4GB of RAM,it was not possible to boot a 3900MB (one of the dropdown options in VHD_W7_Compact) VHD file into RAMDISK.

 

I was initially looking at patching the kernel using https://github.com/wj32/PatchPae2, but I have found another alternative.

 

Using erwan.l's tool ProductPolicy Viewer , I was able to modify Kernel-WindowsMaxMemAllowedx86 and Kernel-MaxPhysicalPage to 16384 (from 4096 ) on Win 7 32 bit Home Premium. The max amount of RAM that can be used by Win 7 32bit using PAE is only limited by licensing policy.

 

I then used VHD_W7_Compact to create 3900MB vhd and boot it from RAM. It works very well and the OS is able to access the remaining part of 8GB RAM.

 

The motivation to use 32 bit instead of 64 bit Win7, is that the 32 bit Win7 has a smaller footprint. So in the same VHD size, I can have more apps and boot into RAM.

 

The other advantage of this could be that we no longer need to disable Software Protection service as this would be a RAMDISK and any changes reverted by sppsvc service to the product policy would not be persisted. ( I am yet to test and confirm this, but should work in theory).

 

FYI the regtweaks in VHD_W7_Compact disables the sppsvc service if the POST_W7_FIX is selected.

 

Ramdisk32bit.png

 

ResourceMonitor.png

 

 



#87 gbrao

gbrao

    Frequent Member

  • Advanced user
  • 343 posts
  •  
    India

Posted A week ago

@wimb,

 

I've been using Portable Win7 made with VHD_W7C_80 for a long time. I like to boot from memory.

If I create a Portable Win7 now from a fully updated Win7 will it be secure from the WannaCry malware?

 

I have 32- and 64-bit Portable WIn7 (boot from memory) on both my systems, btw. Even though I have a SSD on one of my systems I still prefer to boot from memory. Thanks.







Also tagged with one or more of these keywords: win7, vhd, usb, mini7

2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users