Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Disk2VHD Issue

31 Mar 2011   #1
mac5048

Windows 7 64 bit
 
 
Disk2VHD Issue

Hi so i am currently in the process of using Disk2VHD in order to virtualize an xp environment. Once the image is captured i then go to load the vhd file within virtual pc (create new, use existing VHD, etc.). when i do this i get "Cannot attach the virtual harddisk to the virtual machine. check the value provided and try again."

I know if a vhd is above 127 GB you will receive this error. Looking at the VHD in windows explorer the file size shows as 118 GB. At this size i would think it would work but i still get the same error.

One thing i noticed, when i open up a cmd prompt and enter diskpart then attach the VHD it shows the VHD as being 298 GB(same size as the harddrive). I then resize the VHD within diskpart but the smallest it allows me to make the VHD is 149 GB.

Seems like virtual PC is seeing the VHD to be the size of the original harddrive. How can i get this to play nicely in VPC?! Any and all help is appreciated, thanks!

-Matt


My System SpecsSystem Spec
.

06 Sep 2012   #2
venkir

Windows 7 Enterprise 64 bit
 
 
Did you resolve your issue?

I have the exact same problem, except my vhd physical size is 25Gigs and when I attach that is Disk Management, I get 65 Gigs of allocated space and the rest in un-allocated (127-65) space. I have a Win7 Enterprise 64 bit OS.

Thanks for any pointers.

-Venki
My System SpecsSystem Spec
06 Sep 2012   #3
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

venkir,
Since you have an Enterpriseversion, you will need to talk to your system administrator.
My System SpecsSystem Spec
.


06 Sep 2012   #4
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

mac,
Did you post in the sysinternals forum since you are talking about a sysinternals program?
My System SpecsSystem Spec
07 Sep 2012   #5
Kari

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

Quote   Quote: Originally Posted by mac5048 View Post
Seems like virtual PC is seeing the VHD to be the size of the original harddrive. How can i get this to play nicely in VPC?! Any and all help is appreciated, thanks!

-Matt
VHDs created with Disk2vhd are exact copies of the system, so they will report the size of the vhd as that of the original system drive.

You need to shrink the system drive under 127 GB before using Disk2vhd to create an image.

Kari
My System SpecsSystem Spec
07 Sep 2012   #6
venkir

Windows 7 Enterprise 64 bit
 
 
Still the same dam error

Guys:

I installed Windows XP mode and then Virtual PC (which was part of a patch). When XP mode was being installed it created a virtual machine that can come up and I can see the XP VM running. All is good so far. When I try to create a new virtual machine using an existing VHD from our Engg team, it fails with 'Cannot attach vhd to the vm, check values and try again" Ahhhhhhh, Why the heck are these error messages so useless?

I have been at it for three days. I have tried various things"
1. The physical size of the vhd is 25 Gigs
2. When I attach it in Disk Mangement, it shows up as a new drive and I can see the files, so there is nothing wrong with the VHD file, plus others in our company have used it
3. But the drive in Disk Management shows up at 127 Gigs with 70 Gigs of un-allocated space.
4. I have tried shutting down all anti-virus software, no luck.

HELP!!!
My System SpecsSystem Spec
07 Sep 2012   #7
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

Venkir.
You are NOT the thread starter.

Please do not tack your problems onto another thread.

Start your own thread, stating your own problem, with your own system specs.

Your cooperation is appreciated.

karl
My System SpecsSystem Spec
07 Sep 2012   #8
venkir

Windows 7 Enterprise 64 bit
 
 
Thanks for the reprimand, but I already started my own thread

I already started my own thread, but no one responded. It is here at

Windows Virtual PC: "Cannot attach the virtual hard disk ..." error

Thanks, venkir
My System SpecsSystem Spec
Reply

 Disk2VHD Issue




Thread Tools





Similar help and support threads
Thread Forum
Win 7 transfer to Win8.1 Laptop: SysPrep Generalize vs Disk2VHD? Both?
Win 7 transfer migrate to Win8.1 Laptop: SysPrep Generalize v/s Disk2VHD or both? With regard to licensing/ activation: I will figure out what to do and will obtain that from my contacts at Microsoft. If you have any suggestions on that given these are 'unique' transfers, please do suggest...
Virtualization
Windows 7 Pro 32bit disk2vhd image not working with virtual box/pc
Hello everyone, I'm trying to make a copy of a workstation (Win7 Pro 32bit) and run it on virtual box or virtual pc. The image has been created with disk2vhd and the image strangly works with hyper-v, but when I use virtual box or virtual pc I get a bsod. Does someone know how I can make this...
Virtualization
net start command line issue - 64bit issue?
I am trying (in vain) to issue a net start command "net start - "C:\Program Files (x86)\uTorrent\utorrent.exe", on the command line. The error message is "the filename, directory name or volume label syntax is incorrect". I believe the 3 details are correct, as i am looking at the utorrent.exe file...
General Discussion
HP Multi Print/Scan Issue Re Install Issue?
I have an HP M1522 NF multi function peripheral attached to a PC running Windows 7. I needed to re install the drivers and software the other day but now it will only install the printer drivers and not the scanner drivers or any of the accompaying software?
Hardware & Devices
Windows Sysinternals - Disk2vhd v1.0
Stumbled across this today... Disk2vhd Disk2vhd is a utility that creates VHD (Virtual Hard Disk - Microsoft’s Virtual Machine disk format) versions of physical disks for use in Microsoft Virtual PC or Microsoft Hyper-V virtual machines (VMs). The difference between Disk2vhd and other...
Virtualization

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 15:53.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App