I am trying to create a VHD file fixed size of window 2003 R2 server. As Hyper V role and Azure CLI is not supported i am not able to create it. Though Disk2VD creates VHD file but it is dynamic. Can someone tell me how to create VHD file of window 2003 R2 server fixed size ? I am trying to migrate aws EC2 window 2003 to azure.
You can convert the VHD with Hyper-V Manager.
Launch the Edit Disk action within Hyper-V Manager then select the dynamic VHD. On the Action screen, shown here, select the Convert option to make the dynamic VHD a fixed VHD. You'll be prompted for a new name for the fixed VHD.
You can use Hyper-V Manager to make the conversion:
select the Edit Disk option within Hyper-V Manager
select the dynamic VHD
on the Action screen select the Convert option to make the dynamic VHD a fixed VHD
give a new name for the fixed VHD.
Alternately, from powershell you could use Convert-VHD cmdlet:
Convert-VHD -Path D:\HardDiskDyn.vhd -DestinationPath D:\HardDiskFixed.vhd -VHDType Fixed
For the command to work, you need to Import-Module ServerManager