Monthly Archives: October 2007

Updated VS2008 Beta 2 VPC’s released

Microsoft has re-released the expiring Visual Studio 2008 VPC’s that I blogged about before. Get them while they’re hot!

VS2008 Beta 2 VPC’s expiring!

Looks like someone at Microsoft made a small error: the Visual Studio 2008 Beta 2 and TFS 2008 Beta 2 VPC’s are expiring on November 1, 2007. That’s much earlier than expected!

The good news is that Microsoft will release updated versions of these VPC’s some time this week. I sure hope all the speakers at TechEd have their VPC’s updated, since I think many are going to be using a VPC with VS2008 Beta 2 to demo their stuff 😉

Attending TechEd Developers 2007 in Barcelona

Just a quick note here that I’ll be attending Microsoft TechEd Developers 2007 in Barcelona next week. I’m currently figuring out which sessions to attend, which isn’t easy. There are nearly 300 of them and unfortunately I cannot attend them all… My main focus will be SharePoint, but I plan to attend some sessions on Visual Studio 2008, LINQ and Silverlight too. And I want to see Joe Duffy IRL, since I like his blog and his book very much.

I plan to blog daily about my experiences at TechEd. However, I’ll also be doing some blogging on my company’s intranet site, so I might not make it every day.

I’m also thinking about bringing my Nikon D80 and shoot some photos of the event. I’m currently evaluating several WordPress plugins that enable the use of photo galleries on this blog. To restrict bandwidth usage for this site I’m thinking about hosting the images on my Flickr Pro account and link to them from here. Flickr Photo Album seems like the perfect plugin for the job. Anybody got some experience with other plugins?



Splitting a Virtual PC VHD

Two weeks ago me and some colleagues attended the U2U course Developing Microsoft SharePoint 2007 Solutions Part 2: Advanced, led by the legendary Jan “SmartPart” Tielens. I can recommend this course to everyone interested in SharePoint development. It’s filled with interesting topics and it was put together by the also legendary Patrick Tisseghem. During the course we had to practice the stuff we had learned by going through several hands-on labs. For this U2U provided us with a Virtual PC virtual hard disk image (VHD), that contained a complete SharePoint 2007 developer environment (Windows Server 2003, WSS 3.0, MOSS 2007, Visual Studio 2005, SQL Server 2005, Office 2007 etc.).

A couple of days ago, back at our office, me and my colleague Harmjan had some spare time and wanted to practice some of the hands-on labs from that course. Unfortunately the hard drive of my Harmjan’s laptop didn’t have enough free space to contain the U2U course VHD, which is about 11GB in size. He did however bring his brandnew iPod, which still had plenty of free disk space. So he asked me to copy the VHD to his iPod, so he could run it from there.

To my surprise the file copy operation failed! As it turned out Harmjan’s iPod was formatted with the FAT32 file system. One of the main limitations of this file system is, that the maximum size of a file you can put on it is 4GB (well, it’s 232-1 actually…). That meant the U2U VHD would never fit. Ofcourse I could have reformatted the iPod to NTFS, but since an iPod’s firmware doesn’t support this file system it would mean the iPod couldn’t be used as an iPod anymore.

So there had to be an alternative approach. I remembered I had once encountered a situation where a VHD was splitted into several smaller chunks. I searched for this behaviour in the Virtual PC help file and found this:

In some situations, Virtual PC might automatically split a virtual hard disk file into smaller files because of file-size limitations imposed by the host operating system. For example, if the virtual hard disk is stored on a FAT32 volume of the host operating system, it is split into multiple 4GB files.

So this was it! We just had to find a way to split the U2U VHD into several smaller chunks (each less than 4GB). But how to do it? As far as I know Virtual PC has no option to split an existing VHD into smaller chunks. The Virtual Disk wizard only supports this process in the opposite direction, i.e. merging several VHD chunks into one big VHD. I searched the internet, but didn’t find a solution. I did encounter several posts of people who had asked this question before. One of these posts was located on Ben Armstrong’s Virtual PC Guy blog. Unfortunately, from the comments on that post I concluded even he didn’t seem to have an answer. I still sent him an e-mail, asking how to do it, though.

While waiting for a reply from Ben I got bold and downloaded a copy of the official VHD specs from Microsoft. Maybe I could hack together a little tool that would do the job. The only information I could find about splitted VHD’s was this:

Versions prior to Microsoft Virtual Server 2005 supported splitting of disk images, if the disk image grew larger than the maximum supported file size on the host file system.

Some file systems, such as the FAT32 file system, have a 4-GB limit on file size. If the hard disk image expands more than 4 GB, Microsoft Virtual PC 2004 and previous versions will split the hard disk image into another file. The split files do not have any headers or footers, just raw data. The last split file has the footer stored at the end of the file. The first file in the split disk image has an extension of .vhd. The following split files use the .v01, .v02, … filename extension. The split files will be in the same directory as the main hard disk image. The maximum number of split files that can be present is 64.The size of the split file cannot be altered.

There it was! As it turns out a split VHD is nothing more than a normal VHD, chopped up into smaller chunks. No extra headers or footers, just a raw file splitting operation. I couldn’t believe it was this simple.

So I quickly downloaded a copy of the popular HJSplit file splitting utility and split the U2U VHD into several chunks, using a maximum chunk size of 3.5GB (I could have used a larger chunk size, but I wanted to be on the safe side). I then renamed the chunks, so they matched the pattern required by Virtual PC (i.e. U2U.vhd, U2U.v01, U2U.v02, U2U.v03, …). I copied the chunks to the iPod and created a new Virtual PC instance (.vmc), that used the newly, splitted, VHD. And guess what… It worked! I experimented with several other chunk sizes and it doesn’t really seem to matter what chunk size you choose.

I immediately notified Ben Armstrong of my findings and in his reply he said he too was surprised this approach had worked. By now he has already spoken to his colleagues at the Microsoft virtualization team and they confirmed that splitting VHD’s this way is safe and he said he planned to blog about this sometime in the near future.

Well, this concludes my first real blog post. It got a little longer than I had expected, but I hope you found it a good read.



Hello world!

I’ve been at this point several times before. I must have installed WordPress at least ten times over the years. I also tried other software, like Community Server, SubText, created a blog at and even at one point started writing my own blogging code in PHP. But until now I never really got into blogging myself.

Let’s see if I can manage to keep this blog filled with interesting posts…