0

Quick Tip–Verify Which Hyper-V VMs Have ISO Mounted

Use PowerShell to Easily Show All Mounted ISO

It’s very common that we mount ISO files when needed, then forget to remove them after the fact.

This is generally a non issue until you want to move the mounted ISO file as Hyper-V may have a lock on the file.  Yes we could open up the properties of each VM in the console, but nope.  Not doing that.

Rather than search VMs one by one to see which is the offending VM, just run the below command in Po… Read the rest “Quick Tip–Verify Which Hyper-V VMs Have ISO Mounted”

0

Quick Tip–Verify VHDs Mounted In Hyper-V VMs

Using PowerShell to List All Virtual Hard Disks

If you want to easily view all of the VHD or VHDX files that have been configured on Hyper-V VMs, the below PowerShell command makes this easy.

Since I may use a temporary VHDX as a mechanism to copy files into VMs, it sometimes get left mounted and this makes it easy to see which VM has that particular disk file attached.  Creating a temporary VHDX makes it easier to copy large source files to VMs… Read the rest “Quick Tip–Verify VHDs Mounted In Hyper-V VMs”

0

Hyper-V VM Import–Know Before You Go

Importing VMs from one host to another can run into issues due differences in the configuration of the hosts.  A common issue is that a virtual switch does not exist on the new Hyper-V host.  While it is possible to attempt the import, and then deal with the fallout afterwards,  wouldn't it be great to know about such issues before actually starting the import?

That is where the Compare-VM cmdlet co… Read the rest “Hyper-V VM Import–Know Before You Go”

0

Quick Tip–Adding Same ISO DVD Image To All Hyper-V Lab VMs

When building out a lab, you might need to attach the same ISO to multiple VMs.  In this case I was installing multiple Exchange 2016 severs, and wanted to easily add the same ISO file to each of the VMs.

This was on my Windows 10 laptop which makes quick work of the task since we can use PowerShell.

The VMs to target all have the same naming convention.  The VMs for the Exchange 2016 lab start with… Read the rest “Quick Tip–Adding Same ISO DVD Image To All Hyper-V Lab VMs”

0

TechNet Gallery Resources

There are numerous outstanding scripts, tools and resources located in the TechNet Gallery.  In addition to MVPs and community members adding scripts, Microsoft also adds official contributions.  For example, this is where you are downloading the Exchange 2013 Server Role Requirements Calculator and Exchange 2010 Server Role Requirements Calculator.

Since adding PowerShell scripts to this blog is no… Read the rest “TechNet Gallery Resources”

2

Windows 10 Hyper-V Error 0x80070780 – File Cannot Be Accessed By The System

Last week after showing a client some of new features in Windows 10, they went off and upgraded a laptop to the preview from Windows 8.1.  Initially all seemed to go well.  That is until they tried to start up VMs on their SSD drive.   At that point Mr Sad & Grumpy came to visit.

They were getting errors such as:

  • VMName failed to start
  • Microsoft emulated IDE controller failed
Read the rest “Windows 10 Hyper-V Error 0x80070780 – File Cannot Be Accessed By The System”
0

Windows 10 Preview – VMs Missing In Hyper-V Manager

After updating my Windows 8.1 machine to the Windows 10 preview, some of my VMs were no longer visible in the Hyper-V Manager.  Prior to powering on some VMs, all of them were visible.  After powering on, some VMs disappeared in the Hyper-V Manager console. 

In the screen shot below, there should be 10 VMs displayed which have the prefix of “HA”.

Honest Guv, There Really Are More VMs.....

Restarting the Virtual Machine manage… Read the rest “Windows 10 Preview – VMs Missing In Hyper-V Manager”

0

Importing Server 2012 R2 Hyper-V VM Into Server 2012

A virtual machine from Windows Server 2012 R2 cannot be directly imported into Windows Server 2012. This is discussed in this previous post along with the import error 32784 . 

There will be times when we want to take a 2012 R2 VM and import it into 2012, this happened to me recently when setting up one of the workshops that I deliver to customers.  While the setup guide said to deploy 2012 … Read the rest “Importing Server 2012 R2 Hyper-V VM Into Server 2012”

0

Hyper-V Did Not Find Virtual Machines to Import – Error 32784

When importing a VM into Windows Server 2012 that was exported from Windows 2012 R2 you will be unable to import the VM.  If you import the VM using PowerShell’s Import-VM cmdlet the error message is not very descriptive – “The operation cannot be performed because the object is not in a valid state”.  You will also find EventID 15040 in the VMMS event log. 

The operation cannot be performed because the object is not in a valid state

The full error message for … Read the rest “Hyper-V Did Not Find Virtual Machines to Import – Error 32784”

2

Hyper-V Could Not Initialize – Could Not Create or Access Saved State File

As part of my relaxing holiday, I spent a fair bit of time upgrading the hardware in my lab and installing Windows Server 2012 R2 onto all of my Hyper-V hosts.  I then went through and pruned out some old test VMs and made sure the ones I had left were still relevant.

After I did the upgrade to 2012 R2 and powered on some machines that had been dormant for a few months, actually quite a few months … Read the rest “Hyper-V Could Not Initialize – Could Not Create or Access Saved State File”