Jump to content











Photo
- - - - -

Try Windows 8 Developer pre-Beta


  • Please log in to reply
8 replies to this topic

#1 steve6375

steve6375

    Platinum Member

  • Developer
  • 5,007 posts
  • Location:UK
  • Interests:computers (!), programming (masm,vb6,C,vbs), OSes, photography,TV,films,guitars
  •  
    United Kingdom

Posted 14 September 2011 - 11:11 PM

I have added Win 8 tutorial on how to create a dual boot system using Win8 on a VHD.

Have fun! :thumbsup:

#2 sambul61

sambul61

    Gold Member

  • Advanced user
  • 1,568 posts
  •  
    American Samoa

Posted 15 September 2011 - 03:52 AM

I tried to use FiraDisk and ImageDisk methods to install Win 8 Preview to a HD or VHD similar to Win7 approach you described on your site - it doesn't work. Do you know, what's the problem? Both drivers prompt "can't find install.win" message upon Setup startup.

#3 steve6375

steve6375

    Platinum Member

  • Developer
  • 5,007 posts
  • Location:UK
  • Interests:computers (!), programming (masm,vb6,C,vbs), OSes, photography,TV,films,guitars
  •  
    United Kingdom

Posted 15 September 2011 - 07:03 AM

It may be because the AutoUnattend.xml file has the wrong XML content. Try looking at Win8 \windows\panther\unattend for an xml fle and compare with AutoUnattend.xml...

#4 sambul61

sambul61

    Gold Member

  • Advanced user
  • 1,568 posts
  •  
    American Samoa

Posted 15 September 2011 - 01:11 PM

Did you mean after or during install? I don't see such folders in a mounted installation ISO, and didn't install it either - still waiting for a fix to Install from ISO issue. If someone already installed Win8 - could you post AutoUnattend.xml content? Here's the content of unattend.xml located in Windows\Panther inside Win8 install.wim. There is also UnattendGC folder inside Panther. So, how to adjust AutoUnattend.xml for FiraDisk? I tried manual workaround Shift+10 instead of using .xml, but it doesn't work either. May be ImDisk and FiraDisk need update to support Win8?



<?xml version='1.0' encoding='utf-8'?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">

<settings pass="specialize">
<!-- Set the TrustedImageIdentifier key so that the Trusted Image Defender feature is enabled. -->

<component name="Security-Malware-Windows-Defender" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<TrustedImageIdentifier>a3423819-c13b-4444-bd39-bd99da3403b4</TrustedImageIdentifier>

</component>

</settings>

<cpi:offlineImage cpi:source="wim://opkamd64/share/opk/bits/rtm/32bit/sources/install.wim#Windows Vista ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi"></cpi:offlineImage>
</unattend>

#5 cdob

cdob

    Silver Member

  • Expert
  • 903 posts

Posted 28 September 2011 - 07:38 PM

Win8 on a VHD

Can you or another compile CppVhdAPI?
http://code.msdn.mic...hdAPI-4412d182/

And I wonder about adding ISO files:
http://blogs.msdn.co...-vhd-files.aspx
http://msdn.microsof...y/dd323704.aspx

A CppISOAPI.exe could work at installation from a ISO file.

#6 steve6375

steve6375

    Platinum Member

  • Developer
  • 5,007 posts
  • Location:UK
  • Interests:computers (!), programming (masm,vb6,C,vbs), OSes, photography,TV,films,guitars
  •  
    United Kingdom

Posted 28 September 2011 - 08:02 PM

The autounattend.xml works because it runs loadiso.cmd. The problem is that Firadisk (and apparently ImDisk) don't seem to work correctly under WinPE v4 (6.2) for some reason.

#7 joakim

joakim

    Silver Member

  • Team Reboot
  • 868 posts
  • Location:Bergen
  •  
    Norway

Posted 28 September 2011 - 09:16 PM

Can you or another compile CppVhdAPI?
http://code.msdn.mic...hdAPI-4412d182/


Here it is. One statically linked and one not; http://www.mediafire...(CppVhdAPI).zip

To be run on 32-bit Windows 7.

#8 cdob

cdob

    Silver Member

  • Expert
  • 903 posts

Posted 29 September 2011 - 07:40 PM

The problem is that Firadisk (and apparently ImDisk) don't seem to work correctly under WinPE v4 (6.2) for some reason.

Why a third party driver, if a OS support a feature out of the box?

http://blogs.msdn.co...-vhd-files.aspx

So how does this work in Windows 8? It’s quite simple – just “mount” the ISO file (you can select mount from the enhanced Explorer ribbon or double-click or right-click on the file), and a new drive letter appears, indicating that the contents are now readily accessible. Underneath the covers, Windows seamlessly creates a “virtual” CDROM or DVD drive for you on-the-fly so you can access your data. Let’s walk through the flow that will enable you to access such an ISO file.


Can we use ISO mounting at WinPE v4 too?

Windows 7 documentation:
http://msdn.microsof...y/dd323704.aspx

typedef struct _VIRTUAL_STORAGE_TYPE {
ULONG DeviceId;
GUID VendorId;
} VIRTUAL_STORAGE_TYPE, *PVIRTUAL_STORAGE_TYPE;

DeviceId
VIRTUAL_STORAGE_TYPE_DEVICE_ISO 1 Internal use only. Not supported. (.iso file)
VIRTUAL_STORAGE_TYPE_DEVICE_VHD 2 Virtual hard disk device type. (.vhd file)


Does Windows 8 use VIRTUAL_STORAGE_TYPE_DEVICE_ISO?

Here it is. One statically linked and one not;

To be run on 32-bit Windows 7.

Thanks, both version does run at 32-bit WinPE v3 and WinPE v4.
A VHD file is mountable.
WinPE v3: drive is online and get a drive letter by default.
WinPE v4: drive is offline by default. Can be set online by diskpart.

I wonder: What happens at a rude hack:
http://code.msdn.mic...thId=1739510665
BOOL OpenAndAttachVHD(PCWSTR pszVhdPath)

{

BOOL bRet = FALSE;

HANDLE hVhd = INVALID_HANDLE_VALUE;

DWORD ret;

OPEN_VIRTUAL_DISK_PARAMETERS oparams;

ATTACH_VIRTUAL_DISK_PARAMETERS iparams;

VIRTUAL_STORAGE_TYPE vst =

{

/* VIRTUAL_STORAGE_TYPE_DEVICE_VHD, */

VIRTUAL_STORAGE_TYPE_DEVICE_ISO,

VIRTUAL_STORAGE_TYPE_VENDOR_MICROSOFT

};

 

/* wprintf(L"OpenAndAttachVHD %s\n", pszVhdPath); */

wprintf(L"OpenAndAttachISO %s\n", pszVhdPath);

 

oparams.Version = OPEN_VIRTUAL_DISK_VERSION_1;

/* oparams.Version1.RWDepth = OPEN_VIRTUAL_DISK_RW_DEPTH_DEFAULT;

http://msdn.microsoft.com/en-us/library/dd323682%28v=VS.85%29.aspx */

oparams.Version1.RWDepth = 0;


#9 joakim

joakim

    Silver Member

  • Team Reboot
  • 868 posts
  • Location:Bergen
  •  
    Norway

Posted 13 November 2011 - 11:54 PM

I wonder: What happens at a rude hack:
http://code.msdn.mic...thId=1739510665

BOOL OpenAndAttachVHD(PCWSTR pszVhdPath)

{

BOOL bRet = FALSE;

HANDLE hVhd = INVALID_HANDLE_VALUE;

DWORD ret;

OPEN_VIRTUAL_DISK_PARAMETERS oparams;

ATTACH_VIRTUAL_DISK_PARAMETERS iparams;

VIRTUAL_STORAGE_TYPE vst =

{

/* VIRTUAL_STORAGE_TYPE_DEVICE_VHD, */

VIRTUAL_STORAGE_TYPE_DEVICE_ISO,

VIRTUAL_STORAGE_TYPE_VENDOR_MICROSOFT

};



/* wprintf(L"OpenAndAttachVHD %sn", pszVhdPath); */

wprintf(L"OpenAndAttachISO %sn", pszVhdPath);



oparams.Version = OPEN_VIRTUAL_DISK_VERSION_1;

/* oparams.Version1.RWDepth = OPEN_VIRTUAL_DISK_RW_DEPTH_DEFAULT;

http://msdn.microsoft.com/en-us/library/dd323682%28v=VS.85%29.aspx */

oparams.Version1.RWDepth = 0;


I just tried recompiling it with a few more necessary changes than you suggested. And I can both open and attach an iso successfully (based upon the returned error codes). However, I'm not sure where to go next as I cannot see anything mounted anywhere, and even if, it's read-only anyways. And detaching is not currently working. So it's not yet worth uploading. Btw, builds as early as 7955 supports iso mounting too.. ;) (at least by right clicking).

Is this application still wanted/needed? It will just be a stripped down commandline version of the vhd equivalent, supporting ro mounting, when apis figured out..




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users