I am creating a VM using Hyper-V on Windows Server 2008.
I am creating a new VHD on which to install the guest OS. Can that VHD be a dynamic disk, or does it have to be a fixed disk with pre-configured a size (e.g. 40Gb) before attempting install of the guest OS?
The guest OS will also be Windows Server 2008.
Yes, it is possible to install an OS to a dynamic VHD. We do it all the time (with Windows Server 2008).
I'm not aware of anything that would prevent you from installing the OS on a dynamic VHD.
Having said that I'm more familiar with ESX than Hyper-V :-)
Yes, Hyper-V supports installing a guest OS on a dynamic VHD.
I just did it.
During the install process, I also had to setup a partition and format that partition. I chose the maximum size of the disk as my partition size, and I formatted the disk before selecting that partition as the target for the Windows Server 2008 installation.
I checked the available disk space on the physical drive during install, and it appears that the full size is not allocated immediately, but the expanding works as expected.
For example, my maximum size if 40Gb, and the size during install was down around 10Gb, and increasing as the install copied more files.
My goal is to have the smallest possible system drive for my VM, and yet, always have it expand as necessary if I have to install some programs there.'