Solved

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

Posted on 2011-03-06
9
762 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
 
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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 1

Accepted Solution

by:
Cris_Iconomu earned 500 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:TSGITDept
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

As the most of you know, Hyper-V does not support usb redirection. But with some relative easy steps we can redirect our usb disk to a Hyper-V virtual machine. First on your Hyper-V Server host open Server Manager and select Disk Management …
Every once-in-a-while, when you try to add a XenServer host to the System Center Virtual Machine Manager console, it will generate a certificate error, and the XenServer host will not be added to Virtual Machine Manager: If you are experiencing t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now