Welcome to MSDN Blogs Sign in | Join | Help

JoeN's Blog

XNA Shaman
User Error and "Disk Read Error" from Virtual PC

As I mentioned earlier this month I used VPC for the TechEd demo. Everything worked well but I had a strange problem that I couldn't quite work out. Today I took advantage of working at Microsoft and went and met some QA people from the VPC team and got an answer.

Here was my problem. My Virtual Hard Disk (.vhd) file for my Tech Ed demo worked fine off the external USB drive but whenever I copied the file and attempted to run a new Virtual Machine off the copied vhd file I would get a “Disk Read Error”.

After a little head scratching we (I'm using we in a very liberal sense) found the problem. When I received the USB drive it was preformated FAT32 and ready to go. I created the .vhd, loaded it up and was ready to rock and roll. Over time the .vhd file grew larger than the 4Gb FAT32 limit and VPC quite conveniently created a separate file with the extra information in it (the extension was v01). Now I actually had two files for my VPC:

  • TechEd.vhd
  • TechEd.v01

When I went to copy the files to another drive I didn't copy the .v01 file so VPC failed to load it with a very cryptic “Disk Read Error”.

Here's what I learned:

  • Keep your .vhd files on an NTFS drive
  • Keep your .vmc files in the same directory as your vhd file (this just makes it easier to move stuff around)

But here's the best part. Paul helped me take my split .vhd files and create a single vhd file. Here's what he did:

  1. He created a new .vhd file and then used Norton's ghost to create an image file of my “split“ vhd file.
  2. He then created a new .vhd file and restored the image we just created to it.

Because we did all this on a NTFS drive we had no more split files!

The more I use VPC the more I'm impressed with it. Lots of different presenters at TechEd used it for their demos, if you haven't used it you should definitely give it a go? 

Posted: Tuesday, June 08, 2004 9:10 PM by JoeN
Filed under:

Comments

Mike Dimmick said:

I'm surprised that VPC's Virtual Disk Wizard (right-click the VPC status area icon) can't splice the files back together. I can't check it here because I haven't got a FAT32 drive, and VPC only offers choices relevant to the virtual disk you select.

I'm quite impressed with differencing disks, though. This is where you can create a new virtual hard disk that's based on an existing one; VPC then only stores the changes between the disks in the new file. If you want to delete or change the original disk, you can then select Edit Disk from the Virtual Disk Wizard and merge the changes into a new file.
# June 9, 2004 5:33 AM

TrackBack said:

Point of Origin » Follow up part deux to VPC Presentation
# June 9, 2004 10:01 AM

Dave Donaldson's Blog said:

# December 11, 2004 7:29 PM

Chill On My Couch said:

# December 28, 2004 3:33 PM

Chill On My Couch said:

# December 30, 2004 4:53 PM

Peter's Gekko said:

Virtual PC and FAT32
# January 10, 2005 12:23 PM
Anonymous comments are disabled
Page view tracker