Sysinternals Homepage
Forum Home Forum Home > Sysinternals Utilities > Disk2vhd
  New Posts New Posts RSS Feed: how to boot vhd created by disk2vhd
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

how to boot vhd created by disk2vhd

 Post Reply Post Reply Page  <1234 5>
Author
Message Reverse Sort Order
paultait View Drop Down
Groupie
Groupie


Joined: 13 July 2005
Online Status: Offline
Posts: 43
Post Options Post Options   Quote paultait Quote  Post ReplyReply Direct Link To This Post Topic: how to boot vhd created by disk2vhd
    Posted: 29 December 2009 at 6:12am
Well I downloaded vmconerter and vmplayer and I'm now running the XP SP3 from my old PC (set disk size down to 112GB CPU is old single core) on my new WIN7 x64 Ultimate. Bit sad that disk2vhd was such a flop as sysinternals stuff normally "just works"  I'll keep monitoring this thread and try any suggestiions.
Back to Top
paultait View Drop Down
Groupie
Groupie


Joined: 13 July 2005
Online Status: Offline
Posts: 43
Post Options Post Options   Quote paultait Quote  Post ReplyReply Direct Link To This Post Posted: 28 December 2009 at 6:47am
BTW this is an x64 WIN7 Ultimate
Back to Top
paultait View Drop Down
Groupie
Groupie


Joined: 13 July 2005
Online Status: Offline
Posts: 43
Post Options Post Options   Quote paultait Quote  Post ReplyReply Direct Link To This Post Posted: 28 December 2009 at 12:45am
> Created a new VM in Win7 VPC, attached the VHD (output of VhdResizer).

Did you do this "create" using the Start menu entry. All Programs->Windows Virtual PC->Windows Virtual PC  This menu entry points at %SystemRoot%\system32\vmwindow.exe

this brings up a special explorer window with  a "Create virtual Machine" option

I then specify virtual machine name, memory and "Use an Existing virtual hard disk"

I press Create and immediately get
Cannot attach the virtual hard disk to the virtual machine. Check the values provided and try again

This question specifically relates the virtualising an current copy of XP and moving to WIN7

Thanks All
Back to Top
n2irock View Drop Down
Newbie
Newbie


Joined: 14 December 2009
Online Status: Offline
Posts: 3
Post Options Post Options   Quote n2irock Quote  Post ReplyReply Direct Link To This Post Posted: 23 December 2009 at 3:11pm
Well, just a quick update from my question and replies from redhawk...

I don't know what I did but lost some files in the xp partition; bummer but nothing important lost. I just installed windows 7 as a new OS and re-installed all my programs etc. After all I don't think it would have been a good, or practical, solution to go with a virtual drive, for me at least. I'm back up and running and everything is running smoothly.
Thanks for the help that I've received, happy holidays and a good new year to everybody!
Back to Top
kkwst2 View Drop Down
Newbie
Newbie


Joined: 19 December 2009
Online Status: Offline
Posts: 3
Post Options Post Options   Quote kkwst2 Quote  Post ReplyReply Direct Link To This Post Posted: 21 December 2009 at 4:48am
Well, for what it is worth, I got this tool to work great with a little effort...

I was migrating a Athlon 64-X based XP-SP2 system to a VPC on my Windows 7 (Ult-64) W3570 based box so I could re-purpose the XP box for Windows Home Server...anyway...

I was running into the problem that my HDD was 300 GB.  So these are the steps I had to go through:

Copy files to another HDD to get under 100 GB.
Run Perfect Disk defrag to get all the data at the beginning of the drive.  Not sure if this step was required...
Run Paragon Partition Manager from a boot recovery CD to resize the original partition to 111 GB. (can't have any other partitions on the HDD for it to work - all other space must be free and unpartitioned).
Run disk2VHD to create a VHD (only c drive checked, checked fix up HAL for Virtual PC) directly to an attached USB hard drive.  Had to disable Virus scanner and most other tray programs to prevent it from BSOD halfway through.
Moved USB drive to Win7 computer.
Installed and ran VhdResizer from vmToolkit to reduce the size of the VM from 300 GB to 112 GB (assume I could have done this on the original PC but I didn't).
Created a new VM in Win7 VPC, attached the VHD (output of VhdResizer).
Ran fine, had to reactivate XP, which I was afraid would fail but it seemed to work fine.
Installed integration features.
Upgraded to SP3 (needed for the AutoPublish feature)
Installed update to enable RemoteApp on VM located here (http://www.microsoft.com/downloads/details.aspx?FamilyID=2f376f53-83cf-4e5b-9515-2cb70662a81b&displaylang=en).
Now I can run my old programs directly from Win7.

Thanks for the app...worked great for me with a little elbow grease.  Hope this helps someone...




Edited by kkwst2 - 21 December 2009 at 5:10am
Back to Top
ollie-jackson View Drop Down
Newbie
Newbie


Joined: 20 December 2009
Location: London
Online Status: Offline
Posts: 1
Post Options Post Options   Quote ollie-jackson Quote  Post ReplyReply Direct Link To This Post Posted: 20 December 2009 at 5:32pm
I've trawled through this thread and can't find a definitive andwer to my question - what virtual host(s) is disk2vhd compatible with? I'm trying to create VHDs for use with 2008 Hyper-V server R2 with little success. The VM pops up a message about incompatible VHD without the guest OS even attemping to start. I get a system crash if I attach the VHD to a known good VM. I know these tools are "as is" but a little more info would keep people from going bald:-) 
Back to Top
redhawk View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 14 September 2005
Location: United Kingdom
Online Status: Offline
Posts: 1220
Post Options Post Options   Quote redhawk Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2009 at 10:54pm
What I'm saying is the disk arrangement is important i.e. 2 drives or 1 drive 2 partitions because the bootloader will have trouble locating the Operating System.
You can keep the existing layout however you would need to use bcdedit to make XP bootable from Vista's bootloader.
Personally I think splitting the 2 Operating Systems to 2 VHD image files would make things a lot less complicated.
If you save XP partition to a single VHD then you will need to use the Recovery Console with the following commands to make the drive bootable: fixmbr and fixboot

Richard S.

Edited by redhawk - 15 December 2009 at 12:35am
Back to Top
n2irock View Drop Down
Newbie
Newbie


Joined: 14 December 2009
Online Status: Offline
Posts: 3
Post Options Post Options   Quote n2irock Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2009 at 5:21pm
Richard,
Thanks for the quick reply.
Physically I've one HD with C (boot/primary) and an extended partition with 2 partitions within (XP & Vista).

So, what you are saying is that a vhd image can't have multiple partitions? In that case I could migrate the XP partition into C and create an image off C only (changing boot.ini to 0 0 0 1) and that should work (given that I need or not need to fix the hal issue)?

Or

Create an image off Vista with boot loaders for XP (I have bcdedit) and leave XP where it is and it should load XP in VP?

Sorry for the acronyms
Back to Top
redhawk View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 14 September 2005
Location: United Kingdom
Online Status: Offline
Posts: 1220
Post Options Post Options   Quote redhawk Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2009 at 4:47pm
If your machine has 2 hard drives then you must create 2 separate VHD files otherwise you'll have a hard disk image with 2 partitions.
It should still be possible to dual boot XP / Vista with only 1 virtual hard drive Vista's bootloader is capable of starting XP you just need bcdedit.exe to set it up.

Richard S.
Back to Top
n2irock View Drop Down
Newbie
Newbie


Joined: 14 December 2009
Online Status: Offline
Posts: 3
Post Options Post Options   Quote n2irock Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2009 at 3:56pm
Originally posted by theben

Hi all,
 
i found the solution:
 
Start VM with the XP cdrom in the player.
boot from cd-rom and press R this will load the recovery console
login with local administrator password of the VM
goto system32 directory, cd system32
type:  expand d:\i386\halacpi.dl_  and press enter
type:  copy halacpi.dll hal.dll  and press enter, type Y to overwrite
reboot the VM
boot in normal mode and update all drivers, this is a automated proces, but check it
reboot again in normal mode
install VM additions
 
and see, you got your old VM back in business, but now virtual !!
 
Tongue
 
 
 
Asking this.... Will the above solution fix my problem?

First I have a dual boot machine : vista and xp. while booting in vista the drives are listed as c: (Vista), D: (no name but with boot records for XP), E: (XP).
When booting into XP the drives are: C:(no name but with boot records for XP), D:(XP), E:(Vista)

Created a vhd with d2v while booted into Vista (d2v fails in creating vhd in XP) of
c:(vista)
d: boot records for xp (also used as storage disk)
e:XP

Loaded into VP2007 on vista, get it to boot to the boot selection menu (select vista or xp). After selecting either one of the OS, it fails, saying something in the meaning of mis configurations.

I'm thinking that I may need to change (fix) the MBR and or boot.ini as the disk drive paths may be different? I don't care if I lose vista on vhd or not as I'm only interested in keeping xp with all loaded programs I use for my home business as I don't want to re-install everything with possibilities of not being compatible with Windows 7. I purchased windows 7 yesterday and before upgrading it over vista I want to make sure I can get this to work.

Any help will be greatly appreciated.
THX!


Edited by n2irock - 14 December 2009 at 3:59pm
Back to Top
 Post Reply Post Reply Page  <1234 5>

Forum Jump Forum Permissions View Drop Down