Virtual PC Shutdown Options
Virtual PC 2007 has several shutdown options to choose from. If you install Virtual Machine Additions then you get some additional options. I highly recommend installing Virtual Machine Additions on every Virtual PC. Sometimes it is helpful to choose the option to automatically close the Virtual PC without prompting the user to choose an option, such as in a classroom environment or if you have configured a Virtual PC for your kids. The automatic close options depend on whether the undo drive is enabled or not. The manual method of closing a Virtual PC has relatively simple options. However, the automatic close option has several caveats. Microsoft explains the various options for shutting down the Virtual PC as described below.
1. Prompt for close options
When Show messages with these options at close is selected, the virtual machine will always display a prompt with the available close options every time the virtual machine is closed. One of the options must be selected in order to close the virtual machine. The available options are described below.
Save state
Includes the Save state option in the list of available close options. If the option is not selected, you are unable to save the virtual machine state when you close it.
Shut down
Includes the Shut down option from the list of available close options. If the option is not selected, you are unable to use the operating system shut down option. This option is available only if Virtual Machine Additions is installed.
Turn off
Includes the Turn off option in the list of available close options. If the option is not selected, all turn off options are unavailable when you close the virtual machine. If undo disks is enabled but this option is not selected, none of the turn off options for undo disks will be available.
You must always have at least one option selected.
2. Automatic close options
When Automatically close without a message and is selected, the virtual machine performs the selected option automatically without any prompts every time the virtual machine is closed. The available automatic close options are described below.
a) Automatic close options when undo drives is not enabled
Save state
Closes the virtual machine window and saves the information necessary to resume using the virtual machine at a later time in a .vsv file. Resources that were in use when the virtual machine was saved, such as the virtual hard disk, cannot be used by another virtual machine. Other resources, such as serial or parallel port devices, are released. No operations are performed by the virtual machine. As a result, when the virtual machine resumes, it will operate in the same state as when it was closed. This may cause problems, for example, if a virtual machine with a Dynamic Host Configuration Protocol (DHCP) lease is closed using save state, its DHCP lease may expire while the virtual machine is not running. When the virtual machine resumes, an error message may be displayed if another computer is assigned the DHCP IP address that the virtual machine had when it was closed.
Shut down
Closes the virtual machine window and cleanly shuts down the operating system installed on the virtual machine. This option is available only if the operating system installed on the virtual machine supports the shut down options and Virtual Machine Additions is installed on that virtual machine. Any resources used while the virtual machine was running are released and may be used by another virtual machine. When you restart the virtual machine at a later time, it must go through the boot process.
Turn off
Equivalent to cutting power to a physical computer and does not give the operating system any chance to save data. When you restart the virtual machine at a later time, it must go through the boot process.
Warning
This option may damage data stored on the virtual hard disk.
b) Automatic close options when undo drives is enabled
By default all of the automatic close options, except Turn off and delete changes, keeps the undo drives. However, if you use automatic shutdown you cannot commit undo drive changes. To commit undo drive changes, you must select to prompt on close and then select Commit changes to the virtual hard disk.If undo drives is enabled, and Turn off and delete changes is not selected, the user is prompted on close to save changes or delete, as well as whether to commit changes to the hard disk. If you want to enforce that changes to the virtual hard disk are always committed at close, undo drives should not be enabled on that virtual machine. If you do not want changes to be committed and do want the changes to be deleted, you should use differencing drives. For more information about differencing drives, see Creating virtual hard disks.
Save state
Closes the virtual machine window and saves the information necessary to resume using the virtual machine at a later time in a .vsv file. Resources that were in use when the virtual machine was saved, such as the virtual hard disk, cannot be used by another virtual machine. Other resources, such as serial or parallel port devices, are released. All changes on the undo disk are saved. No operations are performed by the virtual machine and no time passes. As a result, when the virtual machine resumes, it will operate in the same state as when it was closed. This may cause problems, for example, if a virtual machine with a Dynamic Host Configuration Protocol (DHCP) lease is closed using save state, its DHCP lease may expire while the virtual machine is not running. When the virtual machine resumes, an error message may be displayed if another computer is assigned the DHCP IP address that the virtual machine had when it was closed.
Shut down
Shuts down the operating system installed on the virtual machine and closes the virtual machine window. This option is available only if the operating system installed on the virtual machine supports shutdown and Virtual Machine Additions is installed on that virtual machine. When you restart the virtual machine at a later time, it must go through the boot process. Any resources used while the virtual machine was running are released and may be used by another virtual machine. The state of the virtual machine is not saved. All changes on the undo disk are saved.
Turn off
Equivalent to cutting power to a physical computer and does not give the operating system any chance to save data. All changes on the undo disk are saved. When you restart the virtual machine at a later time, it must go through the boot process.
Warning
This option may damage data stored on the virtual hard disk.
Turn off and delete changes
Equivalent to cutting power to a physical computer and does not give the operating system any chance to save data. Deletes the undo drive, erasing any changes written to the undo disk since the virtual machine was started. This option is available only if undo drives is enabled on the virtual machine. When you restart the virtual machine at a later time, it must go through the boot process.
In addition, a new check box is displayed in the Close dialog box:
Commit changes to the virtual hard disk
When this box is selected, changes from the undo disk are incorporated into the original virtual hard disk on close. This option is available unless you have selected Turn off virtual machine and undo changes.
Notes
The Shut down option is available only if Virtual Machine Additions is installed.
When you close a virtual machine, any shared folders are automatically unshared. Permanent shared folders are automatically shared again the next time you start or restore the virtual machine, but temporary shared folders are not shared again.