Welcome to TechNet Blogs Sign in | Join | Help

Tip: How do I Shut Down a Virtual Machine?

There are times when you may want to shut down a Windows® operating system on a Virtual Machine (VM) created using Windows Virtual PC (WVPC). In Windows® XP Mode, by default, the VM gets hibernated upon closing the VM’s window. There are various ways to shut down Windows on the VM:

Use Windows functionality (Recommended)

1. On the VM Windows’s toolbar, click Ctrl+Alt+Del menu item.  Alternatively, you can also press the Ctrl+Alt+End key combination on your keyboard.

Fig. 1

Figure 1:  Using Ctrl+Alt+Del for the VM as a toolbar menu item

2.  This opens the Windows Security window inside the VM. Click on the Shut Down button.

Fig 2

Figure 2:  Shutting down the VM using the familiar Windows Security dialog options 

3. On the new window, choose the Shut Down option from the drop down.

Fig 3

Figure 3:  Shutting down the VM

Use Windows Virtual PC functionality

1. On the VM Windows’s toolbar, click Tools menu item, and click Settings in the drop down menu.

Fig 4

Figure 4:  Using the Windows Virtual PC Settings option to shutdown a VM

2. This opens the VM’s settings window. On the left navigation pane, click on “Close” option.

Fig 5

Figure 5:  Using the ‘Close’ option in Windows Virtual PC Settings

3. Choose the “Prompt for action” option, and then click “OK”.  Whenever you close the VM’s window, you will be prompted to choose which action to take. You can choose to shut down the virtual machine.

Fig 6

Figure 6.  Setting to automatically shutdown a VM every time the VM window is closed

4. Alternatively, If you want to shut down the VM each time you close the VM’s window, then choose the Shut Down option from the drop down menu under the “Automatically close with following action:" option. If you select this option, the VM will shut down each time you close the VM’s window.

Note: This is not a recommended option as it would result in the VM having to boot up from a shutdown stage whenever you launch the VM, or any virtual application for this VM. This significantly increases start up time for the VM or the virtual application.

Rahul Razdan

Program Manager

Microsoft Virtualization Team

Published Thursday, October 29, 2009 1:04 PM by Prasad Saripalli

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Tip: How do I Shut Down a Virtual Machine?

Interesting blog, but how could you get your XP mode to automatically boot up every time You login to Windows 7?

Thursday, October 29, 2009 10:48 PM by David

# re: Tip: How do I Shut Down a Virtual Machine?

@David: Would you please provide more details (trying to launch a virtual application automatically on every boot up of Windows 7 or trying to launch the full VM etc.)?  You can use the email link on the blog (right top corner).  Thanks.

Prasad Saripalli (MSFT)

Friday, October 30, 2009 3:31 AM by Prasad Saripalli

# re: Tip: How do I Shut Down a Virtual Machine?

Moving the "Commit changes to disk" option to the settings window is causing me immense inconvenience. Please bring it back to the shutdown/save/discard undo disk info box as a checkbox.

Friday, October 30, 2009 10:44 PM by 7flavor

# re: Tip: How do I Shut Down a Virtual Machine?

My XPMode freezes after a few minutes if I'm trying to install an application from a USB, or trying to copy a folder from a USB.

When it does this, it refuses to shut down, and so becomes totally useless.

I have installed it several times in both 32-bit and 64-bit versions of 7 Pro N.

Can anybody tell me what is going on, and whether I have wasted my money buying a new PC with HAV?

Friday, December 04, 2009 3:31 PM by Derek McLean

# re: Tip: How do I Shut Down a Virtual Machine?

This is absolutely useless if your XP mode won't shutdown. What is needed is to include info how to FORCEFULLY shut it down.

Monday, February 08, 2010 10:29 PM by kapitbahay

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker