Starting a saved virtual machine–with a missing virtual hard disk

Reblogged from Ben Armstrong’s Virtualization Blog .

I came across a person with this problem on our forums recently:
If you have a virtual machine that is in a saved state, but one of the virtual machines disks is now missing for some reason, you cannot start the virtual machine and you cannot remove the missing virtual disk.
If you try to start the virtual machine you will get an error message that states that the disk in question is missing:

State1

If you try to remove the virtual disk in question – you will find that we do not let you change the setting as the virtual machine is in a saved state:

State2

To get out of this situation you need to:
1. Open Hyper-V Manager
2. Select the virtual machine in question
3. Right click on the virtual machine and select Delete Saved State…
4. Select Delete on the confirmation dialog
5. Open the virtual machine settings
6. Remove the missing virtual disk
7. Start the virtual machine

The same objective could be achieved using Powershell as indicated in the screenshot below:

PS C:\> Remove-VMSavedState -VMName fds4 -ComputerName HVHost02

State3

Note – deleting a virtual machine saved state is similar to pulling the power cord out from a running computer – so there is a minor chance for data corruption / etc…

Advertisement
This entry was posted in Hyper-v, Hyper-v 2012 R2, Hyper-v Manager, PowerShell, PowerShell 3.0, Powershell 4.0 and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s