Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do I recreate a virtual machine which has disappeared under Server 2008?

Posted on 2011-03-06
9
Medium Priority
?
779 Views
Last Modified: 2013-11-06
How do I recreate a virtual machine which has disappeared under Server 2008?
0
Comment
Question by:iancaire
  • 2
  • 2
  • 2
  • +3
9 Comments
 
LVL 9

Expert Comment

by:MinoDC
ID: 35046045
disappeared or deleted in Hyper-V console?
0
 
LVL 42

Expert Comment

by:kevinhsieh
ID: 35046920
Can you try to restart the host? That has worked for me sometimes. It could be a problem with the parent either losing access to to VM configuration files, or a problem with a HYper-V management service. A reboot should solve both of those problems.
0
 

Author Comment

by:iancaire
ID: 35048278
Some event blew away the configuration information in Hyper-V.  I have since read that this has happened many times on other sites (sometimes after a server reboot - very painful).  I created a new virtual machine and used the existing VHD file from the original virtual for the newly created virtual.  The second virtual file system had to re re-attached as a drive as well.

MinoDC.  The virtual machine simply disappeared.  There wasn't a server crash or any strange occurrences.

kevinhsieh.  Reboot didn't help.  The virtual machine table in Hyper-V was empty.
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
LVL 42

Expert Comment

by:kevinhsieh
ID: 35050354
Well, in case the reboot doesn't help I always just recreate the VM, which is what you did. Do you have the Hyper-V patches applied? They are not available under Windows Update, and I don't know if Microsoft is going to deliver SP3 for Windows 2008. You can do a google search foy Hyper-V patches to find a technet page with all of them.
0
 
LVL 1

Accepted Solution

by:
Cris_Iconomu earned 2000 total points
ID: 35067992
This hapens usually if your antivirus or other program has a hold on your vm config xml files when you shutdown the server.

1. Find where your VM xml files are located.
2. Open each of them in notepad and find the one for the missing virtual machine
3. Open Server Manager, go to Services and stop the Hyper-V Virtual Machine Management service
4. Go back to the open xml in notepad and scroll down until you find the </configuration> text. this should be the last in your xml file but if you look carefully you may see it twice like below:
....
  </settings>
</configuration>1</count>
      <limit type="integer">100000</limit>
      <reservation type="integer">0</reservation>
      <weight type="integer">100</weight>
    </processors>
    <stopped_at_host_shutdown type="bool">False</stopped_at_host_shutdown>
  </settings>
</configuration>
5. Delete everyting after the first one, save the file and start the Hyper-v virtual machine management service
6. Check if your virtual machine is shown again and start it

Hope this helps, it happened to me lots of times, even after putting all the right excplusions in the antivirus programs
0
 

Author Comment

by:iancaire
ID: 35068045
Kevin & Cris,
Thank you for your suggestions, I have the system working again but I will certainly search for the Technet patches and look at the xml.  I guess what you are saying about exclusions in the anti-virus means excluding xml files or at least the folder.
0
 
LVL 1

Expert Comment

by:Cris_Iconomu
ID: 35068081
Hi iancaire,

There's more than the folder where the xml files that needs to be excluded from live scanning.
Include :
vmms.exe and vmwp.exe and the VHD folder(s)
Check on MS website, they have a kb article that explains it all.
The problem when you re-create the VMs just by using the VHDs is that you will have some settings left hanging from the missing VMs. Not that they will cause any trouble, but you don't need this to happen every time you restart the server :)

Good luck,
Cris
0
 
LVL 15

Expert Comment

by:plimpias
ID: 35073472
MS had multple issues with Vms disappearing. Make sure you are on the latest service pack on your host machine.
0
 
LVL 8

Expert Comment

by:Bill
ID: 35095914
All you really need is the VHD file(s), which is hopefully still stored on the disk or available to restore from a backup.

You can create a new VM in a few seconds and point it to the VHD file.
You'll have to reassign:  memory, number of processors, and redo the NIC configuration but all of that is easy.
The only thing that can be confusing is if you have a lot of VM snapshots.  But you can inspect the AVHD files within the Hyper-V manager to determine the dependencies.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been plagued with this issue more than once, shut down my Hyper-V VM using the Hyper-V manager native to server 2008 because of disk space issues. This VM in question holds our office Sharepoint Server, the Sharepoint Databases are backed up …
Hopefully if you are reading this article you have NOT attempted to use an old Hyper-V snapshot on a Domain Controller.  If you have, you're probably beyond frustrated as you have searched Google relentlessly only to find out that doing a snapshot o…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question