Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Wim Conversion to VHD on Windows Server 2008r2


  • Please log in to reply
7 replies to this topic

#1
bookie32

bookie32

    Senior Member

  • Member
  • PipPipPipPip
  • 524 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Hi guys :thumbup

OK! here is the case....lol
I have been looking at converting wim's to vhd's in order to run them in Hyper-V...

I heard there was a nice script for this and downloaded it...here

I then saw at the script had been rewritten to work on Powershell 3.0 and upgraded to that on my Windows Server 2008r2..

I didn't get any errors installing Powershell 3.0 and thought everything was OK..... :ph34r:

I like user interfaces...lol and this guy wrote about the script containing a gui

I ran the user interface command from Powershell 3.0:


.\Convert-WindowsImage.ps1 -ShowUI



I received the following error which seems to point to a problem with netframework:


Windows(R) Image to Virtual Hard Disk Converter for Windows(R) 8
Copyright (C) Microsoft Corporation.  All rights reserved.
Version 6.2.8424.1.amd64fre.fbl_core1_hyp_dev(mikekol).120517-1616 Release Preview

WARN   : Transcription is already running.  No Convert-WindowsImage-specific transcript will be created.
ERROR  : Could not load file or assembly 'System.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7
f11d50a3a' or one of its dependencies. The system cannot find the file specified.
INFO   : Log folder is C:\Users\ADMINI~1\AppData\Local\Temp\Convert-WindowsImage\c45aa02b-3d48-4059-9c71-ac1660
3ae632
INFO   : Done.


Does anyone have any idea how to fix this?
Or have a better suggestion about conversion from wim to vhd?

bookie32


How to remove advertisement from MSFN

#2
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,992 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

Have you installed the Win8 ADK, .Net Framework 4.5 and Powershell 3.0?
Posted Image

#3
bookie32

bookie32

    Senior Member

  • Member
  • PipPipPipPip
  • 524 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Hi MagicAndre1981 :thumbup
No.....I didn't see anything written about that, but will get to that now.
Powershell 3.0 installed without problem....which is a bit strange...
I will have a look at what you have mentioned and post a little later...

Thanks for coming by!

bookie32

#4
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,281 posts
  • OS:none specified
  • Country: Country Flag

Powershell 3.0 installed without problem....which is a bit strange...
I will have a look at what you have mentioned and post a little later...

Maybe, BEFORE that, it would be smart to actually READ that page.
Title contains:

WIM2VHD for Windows 8!


About half down the page I can read:
Windows Server 8 	Sì 
Windows Server 2008 R2 	No <-hmmm
Windows Server 2008 	No 
Windows Server 2003 	No 
Windows 8 		Sì 
Windows 7 		No 
Windows Vista 		No 
Windows XP 		No 
Windows 2000 		No

Maybe this:
http://archive.msdn....?ReleaseId=2603
will work allright :unsure: .

jaclaz

Edited by jaclaz, 07 September 2012 - 09:49 AM.


#5
bookie32

bookie32

    Senior Member

  • Member
  • PipPipPipPip
  • 524 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Hi jaclas!

I did read that, but it wont be the first time Microsoft has botched information concerning what you can and can't do....

I will run the old script and see how that works....

Thanks for you patience....lol

Well, it is nice to know that I get told now that I need windows 8.... :lol:


Windows(R) Image to Virtual Hard Disk Converter for Windows(R) 8
Copyright (C) Microsoft Corporation.  All rights reserved.
Version 6.2.8424.1.amd64fre.fbl_core1_hyp_dev(mikekol).120517-1616 Release Preview

WARN   : Transcription is already running.  No Convert-WindowsImage-specific transcript will be created.
ERROR  : Convert-WindowsImage requires Windows 8 Consumer Preview or higher.  Please use WIM2VHD.WSF (http://co
de.msdn.microsoft.com/wim2vhd) if you need to create VHDs from Windows 7.
INFO   : Log folder is C:\Users\ADMINI~1\AppData\Local\Temp\Convert-WindowsImage\6d1e4277-b0e9-4c86-b304-3cc3b8
e3e5f9
INFO   : Done.


That told me didn't it :w00t:
bookie32

Edited by bookie32, 07 September 2012 - 10:02 AM.


#6
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,281 posts
  • OS:none specified
  • Country: Country Flag

Well, it is nice to know that I get told now that I need windows 8.... :lol:

I may add that my "dinosaur's era" windows 2K and XP installs are as outdated as your newish Windows 7/Server 2008 R2 ones..... ;) :whistle:

jaclaz

#7
bookie32

bookie32

    Senior Member

  • Member
  • PipPipPipPip
  • 524 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Hi again!

Well, I could use the script and convert my wim to a vhd.....BUT


Maybe this:
http://archive.msdn....?ReleaseId=2603
will work allright :unsure: .

jaclaz


Is it necessary to sysprep the wim before converting to vhd.....because I am getting a BSOD with 0x0000007b which suggest driver problems...?

If I don't need to sysprep the wim file - then maybe I need to inject ms drivers into the wim before converting to vhd?

I am just guessing here and would appreciate some feed back.....

Thanks!

bookie32

#8
bookie32

bookie32

    Senior Member

  • Member
  • PipPipPipPip
  • 524 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Hi again!
Just a little update... the wim image I was converting wasn't sysprepped, so I added the motherboard drivers for the computer the image came from and then it was OK :thumbup

Thanks!

bookie32




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN