Windows Virtual PC provides you with a way to make certain types of changes to virtual hard disks. This topic explains the changes you can make by using the Modify Virtual Hard Disk Wizard and provides instructions.

You can make the following types of changes to a virtual hard disk:

Note

If the Undo Disks feature is configured for a virtual machine, you also can modify a virtual hard disk by applying the changes stored in an undo disk file. For more information, see Use Undo Disks.

To prepare a dynamic disk for compacting
  1. From the guest operating system, run Disk Defragmenter.

    Important

    Do not use the Precompactor tool on a differencing disk. This tool is intended for use only on dynamic disks.

  2. Insert the Precompactor tool into the DVD drive of the virtual machine:

    1. From the virtual machine window, click the Tools menu, and then click Settings.

    2. In the left pane, click DVD Drive.

    3. In the right pane, choose Open an ISO image. Type %systemdrive% in the text box and click Browse.

    4. Navigate to Program Files (86)\Windows Virtual PC\Integration Components\Precompact.iso, click Open, and then click OK.

  3. Switch back to the guest operating system. If Auto run does not start the tool automatically, navigate to the DVD drive.

  4. The dynamic disk is now ready to be compacted.

To compact a virtual hard disk
  1. Open the settings for the virtual machine. Do one of the following:

    • In the Virtual Machines folder, right-click the name of the virtual machine, and then click Settings.

    • From the virtual machine window, click the Tools menu, and then click Settings.

  2. In the left pane of the Windows Virtual PC Settings page, click the name of the disk setting where the virtual hard disk is attached, such as Hard Disk 1, Hard Disk 2, or Hard Disk 3.

  3. Click Modify. The Modify Virtual Hard Disk Wizard opens.

  4. Click Compact virtual hard disk. The Compact virtual hard disk page opens and lists the properties of the disk. Click Compact.

    Note

    Elevated privileges are required to compact a differencing disk. Depending on how User Account Control settings are configured, you may be prompted to decide whether to allow Windows Virtual PC to compact the disk.

  5. The wizard compacts the disk and reports the results. Click Close.

  6. Click OK to close the Windows Virtual PC Settings page.

To convert a virtual hard disk
  1. Open the settings for the virtual machine. Do one of the following:

    • In the Virtual Machines folder, right-click the name of the virtual machine, and then click Settings.

    • From the virtual machine window, click the Tools menu, and then click Settings.

  2. In the left pane of the Windows Virtual PC Settings page, click the name of the disk setting where the virtual hard disk is attached, such as Hard Disk 1, Hard Disk 2 or Hard Disk 3.

  3. Click Modify. The Modify Virtual Hard Disk Wizard opens.

  4. Click Convert to <new> disk type. The Convert virtual hard disk type page opens and lists the properties of the disk. Click Convert.

  5. The wizard converts the disk and reports the results. Click Close.

  6. Click OK to close the Windows Virtual PC Settings page.

To merge a differencing disk
  1. Open the settings for the virtual machine. Do one of the following:

    • In the Virtual Machines folder, right-click the name of the virtual machine, and then click Settings.

    • From the virtual machine window, click the Tools menu, and then click Settings.

  2. In the left pane of the Windows Virtual PC Settings page, click the name of the disk setting where the differencing virtual hard disk is attached, such as Hard Disk 1, Hard Disk 2, or Hard Disk 3.

  3. Click Modify. The Merge the differencing disk with parent disk data page opens.

  4. Choose one of the following:

    • To create a new virtual hard disk, click New file. Use this option if you want to leave the parent disk intact.

    • To modify the parent disk by updating it with the changes stored in the differencing disk, click Parent file.

  5. Click Merge. When the merge is finished, the parent disk or the new disk is attached to the virtual machine at the hard disk setting where the differencing disk was attached before you merged the disk.

  6. Click OK to close the settings for the virtual machine.

See Also