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

Migrate Azure VMs To Separate Subscription

Azure VM Migrate

Defining Azure governance so that your subscriptions, management groups is correctly built out and deployed is critical.  Even with the best planning sometimes it is still necessary to move resources to a new subscription.  While Learn documents how this can be done, it does not work for all scenarios.

Bullet point #5 illustrates an issue where subscriptions may belong to different tenants… Read the rest “Migrate Azure VMs To Separate Subscription”

0

Create Azure Az VM Using Existing UnManaged VHD

The days change, but sometimes the issues stay the same.  This is a redux of an existing post where there was an issue back in 2016 when I was not able to easily re-create a VM in a different Availability Set.  As you can see in Create Azure RM VM Using Existing VHD – 250 Hello (rmilne.ca)  PowerShell was used to re-create the VM as it allowed all of the resources to be specified.

The original VM was… Read the rest “Create Azure Az VM Using Existing UnManaged VHD”

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”

2

Create Azure RM VM Using Existing VHD

TailspinToys Canada have been busy upgrading their on-premises, Azure and Office 365 infrastructure.  Previously Azure resources were moved from classic (Azure Service Manager) to the new Azure Resource Manager (Azure RM).   The VMs, storage accounts and VHDs were migrated.   One of the migration blockers was that multiple availability sets were previously present in one of the cloud services.  Th… Read the rest “Create Azure RM VM Using Existing VHD”

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”