Quantcast
Channel: Hyper-V forum
Viewing all 19461 articles
Browse latest View live

Licensing

$
0
0

We are moving some services around and looking to place a development/test environment in a new colo facility. It will be 100% Microsoft using Hyper-V. The only users that will have access to the servers have current MSDN subscriptions so I think we are okay not purchasing commercial licenses for the OS or SQL.

My question is, if I want to place a Win 10 VM on the Hyper-V host and have it used by a non-msdn licensed user would I be in compliance if I just purchase a Win 10 license for that VM? The Win 10 VM and user would not be using any of the servers other than as a hyper-visor. They would only need internet access.


Disk Merging

$
0
0
So, I forgot i had one file inside my disk before I merged it and now I can't delete it. Anyone know what to do?

Storage Migrate Shared vhdx

$
0
0
I am stumped with how to migrate some shared vhdx from one CSV to another.  I have a two node SQL cluster and have shared vhdx so that I can have a guest cluster.  I've loosely followed the directions in this article - http://www.systemcentercentral.com/steps-to-migrate-virtual-machines-from-one-cluster-to-another/.  I've got both SQL nodes off and I convert a disk to not shared.  When I try to storage migrate the vhdx or simply make a copy of the file, I get a message saying that the file is in use by some other process.  Does anyone have experience moving shared vhdx?  I'm on Hyper-V 2016.  I do have SCVMM management in play.

Hyper-V Cluster Resource Hosting Subsystem (RHS) Questions

$
0
0

I have responsibility for multiple large-ish Hyper-V failover clusters. I very occasionally see an issue where the 'ISALIVE:0' check will fail for a virtual machine (via the vmclusres.dll library) and the Resource Hosting Subsystem will terminate, bringing down multiple machines with it.

There are multiple pieces of contradictory information on the internet about what is actually happening here. Some sources suggest that fail-over clustering will attempt to isolate the resource which first failed the health check into its own process (suggesting this protects the other resources running under the same RHS).

This categorically does not happen on a fully patched Windows 2016 Hyper-V cluster. What appears to happen is that the failing RHS is terminated, killing any and all compute that is running under the same process. The logs make mention of the offending virtual machine resource being isolated, but I can actually see no evidence of this occurring (in the properties of that resource), but even if this does happen, the default config has still resulted in one resource effectively causing an outage.

I can sort of add credence to this summary of behavior but forcing the resource to run in their own separate monitors myself. If I do this on a lab I've stood up:

Get-ClusterResource -Name "*Virtual Machine blah*"

foreach ($resource in $cluster_resources) {$resource.SeparateMonitor}

... I can see they are all using the default setting, which is to not run in a separate monitor. Fine.

If i set them all to run in their own monitor:

foreach ($resource in $cluster_resources) {$resource.SeparateMonitor = 1}

...and count the RHS processes there is no difference. As you would kinda expect, if I now restart the machines I suddenly have lots of RHS processes popping up, one for each VM.

So this suggests that resource cannot magically flip between RHS parent processes while they are running\switched on, so the out-of-the-box configuration can indeed bring down a whole node when there is a problem with a single resource. Could anybody anywhere tell me if I am right here?

Also, trying to go back to the why behind the original problem. Does anyone know where I can get information about what the ISALIVE check for the vmclusres.dll library is actually doing? There is no information anywhere about what kind of check failed, if it is a VM state check, some kind of IC communication check etc The VM didn't dump inside the guest, it just 'failed' and caused an outage, which is kinda scary. I know from some research that the ISALIVE check is the five-minute check which is supposed to be the more in-depth check of the two that are run, but I can find no documentation saying what it is actually checking, therefore I have no way of working backward.

Thank you.

TIP - Control Windows 2012 r2 Hyper-V servers from Windows 2016 PowerShell

$
0
0

Microsoft support was not much help on this one, thought I might save someone some trouble.  They said they even tried it in their lab and couldn't figure it out, I must not have been deep enough into the support hierarchy


PROBLEM:  Can’t control Windows 2012 Hyper-V server through PowerShell, error returned is

    “The Hyper-V module used in this Windows PowerShell session cannot be used for remote management of the server”

CAUSE:  Unlike most PowerShell modules, the Hyper-V module that ships with Server 2016 is NOT backwards compatible.

SOLUTION: you have to load the downlevel version in your script with this command:

   Import-Module Hyper-V -RequiredVersion 1.1

NOTE:  The current version (if loaded) must be unloaded before calling the new module:  

  Remove-Module Hyper-V

You must remove whatever version is loaded when switching back and forth between version - even within a script

Trying to load a different version of the same module without unloading the module in memory results in a screen of red loading errors.

Note:  It appears a reboot may be required to access the downlevel version after installing the Hyper-V remote server admins tools through Roles & Features. I do not have the ability to test or confirm this at this time.

Use cmdlet to live migrate VM changing the vNetwork.

$
0
0

Good morning.

I have to live migrate VMs from “Hyper-v on Server 2012” to “Hyper-v Server 2012 R2”.
Well, at the same time I have to migrate all the storage (Config, Snapshots, Pagingfiles and VHDs).
Up to here everything is ok. 
At the same time without loose the VMs connectivity I have to change the vNetwork because the vNetworks on the new Hosts are different.

I will use Move-VM powershell cmdlet, example:

Move-VM $VM remoteServer –VirtualMachinePath $Path1 –SnapshotFilePath $Path1 –SmartPagingFilePath $Path1 –IncludeStorage –VHDs @(@{"SourceFilePath" = $OldVHDPath1; "DestinationFilePath" = $NewVHDPath1}, @{"SourceFilePath" = $OldVHDPath2;"DestinationFilePath" = $NewVHDPath2}) 

When I do it manually through the Hyper-v Console, it ask me to change it:


How can I change vSwitch at the same time that I Move the VM using a cmdlet without loosing connection?

Thanks in advance and have a nice week,
Angel Biurrun.

 

Licenses for Virtualization

$
0
0

Hello! I need a license for virtualizing print servers. Which license should I choose to server?

Do I need CALs for each computer on the networks?

Sorry, but I usually work with VMware and now, I would like to know what Microsoft's virtualization engine looks like. 

I plan to buy servers with 2 8-core processors and a storage of at least 6 TB.

Hyper-v encountered an error while loading virtual machine configuration from "path"

$
0
0

I have tried 4 times to both export and import this one specific vm. I have exported and imported 3 other vm successfully from the same server to this one. But this one will not import i have restarted both servers and still not working.

Tells me " Hyper-v encountered an error while loading virtual machine configuration from "Path" 

import of virtual machine failed


How to change the volume where is located the path to "planned virtual machines" folder

$
0
0

When we call ImportSystemDefinition method of the Msvm_VirtualSystemManagementService class, .vmcx and .vmrs are created in the planned virtual machines folder under C: drive. 

Do we have any way to change the volume where it is located ?

.vmcx and .vmrs are created under this path : 

"C:\ProgramData\Microsoft\Windows\Hyper-V\Planned Virtual Machines"

.vmrs is sometimes as large as some GBs, and the room in C: becomes tight with it.

I would like to change it to other volume like E: .


Start/Shutdown VMs In a Specific Order/Manner

$
0
0

So here's the problem I have, I have this 2019 Datacenter Hyper-V Host running a lot of vms.

VM1 is an AD DC, this VM I set it to start immediately upon boot, it's storage is local (C Drive).

VM2 is FreeNAS, Hyper-V passes through several physical drives to this guest and freenas does a great job of managing with ZFS, L2 ARC Cache and iSCSI, it's storage for boot is also C drive.

VM3 and Above rely on iSCSI disk which has been mapped to the host as the B drive

Now if the host for any reason needs to shutdown (this is actually a "mobile" server) so it gets turned off and moved to a different location almost every week plus any windows updates that may happen and force the host to restart the VMs must be turned off in a specific order, if the AD DC is shutdown before everything the vms sort of crash and glitch out in a saved state probably because of permissions, so obviously DC needs to be shutdown last, also VM3 and above relies on iSCSI from freenas so if the host decides to automatically Save the state of freenas of shut it down the VMs 3 and above will all lose connectivity to their boot drives and go critical/crash/worse.

So I know you can have delayed timers for VMs which works well for the sake of booting but how can i make sure my vms shutdown properly and yes this whole thing used to be part of a much larger network and it may not make sense at first but there's a good reason for having AD and everything running off a single server for the time being at least.



The speed of processor X in group Y is being limited by system firmware. Is Hyper-V performance slowing?

$
0
0
Good afternoon.
I observe this warning in the logs of the server with the Hyper-V role.

Will a decrease in processor speed in the host OS affect the performance of virtual VM processors?

VM status - locked

Windows 10 Client cannot manage hyper-v 2012r2 using power shell

$
0
0

Hello All,

So I have recently upgraded my workstation to Win10 and now none of my power shells that I use to manage my hyper-v 2012r2 cluster work.

For example if I run just the simplest command

Get-VM -ComputerName <hyper-v hostname>

Get-VM : The Hyper-V module used in this Windows PowerShell session cannot be used for remote management of the server '<hyper-v hostname>'. Load a compatible version of the Hyper-V module, or use Powershell remoting to connect directly to the remote server. For more information, see http://go.microsoft.com/fwlink/p/?LinkID=532650.
At line:1 char:1
+ Get-VM -ComputerName <hyper-v hostname>
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Get-VM], VirtualizationException

    + FullyQualifiedErrorId : InvalidOperation,Microsoft.HyperV.PowerShell.Commands.GetVM

Anyone else seen this and know how to load the older hyper-v modules?

Thanks

Chris

When disabling hyper-v winhvr.sys causes a SYSTEM_THREAD_EXCEPTION_NOT_HANDLED

$
0
0

Hello,

I am in kind of a bind where I need to run Virtualbox (v6.0.0) for one of my classes and I also need docker for my work. I downloaded Virtualbox first and everything was going great then I downloaded Docker a few days later without thinking. Obviously, after docker was installed Virtualbox stopped working.

Virtualbox error: 

(VERR_NEM_MISSING_KERNEL_API).

VT-x is not available (VERR_VMX_NO_VMX).

After some digging around I realized hyper-v was the issue so, I decided to just disable hyper-v so that I can work in Virtualbox then switch it back when I need docker. Easy enough. I go through the UI to disable hyper-v and restart my computer then I get the BSOD.

BSOD error: SYSTEM_THREAD_EXCEPTION_NOT_HANDLED

After downloading "WhoCrashed" and checking out the error I come to find that it's a driver issue, not surprising. However, what was surprising is that it's a hyper-v driver causing the error. I was trying to disable hyper-v why would one of their drivers give me an error?

Any help would be appreciated! I'm running a X1 Carbon Lenovo 6th Gen. 

CTRL ALT DELETE does not work from Hyper-V Console

$
0
0
I  have a Windows 2008 R2 SP1 VHD that was created and running on a Windows 2008 R2 Standard machine for some time with no issues.  Last night I shut down the guest os and copied the vhd to a new Windows 2008 R2 Enterprise server.  Now everything seems fine except for CTRL ALT DELETE using the Hyper-V console.  I am able to rdp in.  Other guests on the same server are working as expected.  I have read many of the other posts and none really seem to fit our issue.  Any suggestions?

Hyper-V on Windows 10 networking logic - can anyone explain?

$
0
0

Hi,

I realize this is Windows Server and not Windows 10, but since this is the only relevant Hyper-V forum I decided to post it here, hope all is good and hopefully Windows 10 Hyper-V logic is similar to Windows Server Hyper-V logic.

I set up my laptop with a fresh installation of Windows 10 and enabled Hyper-V feature so it's all pretty much default settings so far. It still uses it's default virtual switch and I haven't made any relevant network changes which would influence my upcoming questions.

My machine got an extra network adapter called 'vEthernet Default Switch', so far so good. It has its default IP properties (unchanged by me) set at: 192.168.211.81/28 (255.255.255.240).

Now every new Hyper-V virtual image I create (Linux, Windows, whatever) works fine and seems to use vEthernet Default Switch as some sort of bridge, at least I think it does and things get a bit unclear to me from this point on:

- My Hyper-V images automatically get an IP somewhere in the 192.168.211.80/28 range and use 192.168.211.81 (vEthernet Default Switch) as its gateway and DNS server. This works fine and there's no question here
- Where is the logic in this Hyper-V DHCP "server" (if we can speak of one) and is there anyplace I can modify these settings?
- If I want to use a static IP for my Hyper-V image instead of randomly assigned IP's within this subnet (because the Hyper-V can change it's IP when rebooted) should I simply set it to anything within this range?
- If I do so, will it cause conflicts with Hyper-V's internal DHCP mechanism?
- Can I simply modify vEthernet Default Switch properties (for example change the octet value and/or enlarge the subnet) without breaking functionality?

It would be great if anyone could give some insight into Hyper-V's (on Windows 10) logic for me. I wouldn't be surprised if most settings are controlled on PowerShell level instead of GUI and hopefully someone can clarify this.

Thanks!



Storage Migrate Shared vhdx

$
0
0
I am stumped with how to migrate some shared vhdx from one CSV to another.  I have a two node SQL cluster and have shared vhdx so that I can have a guest cluster.  I've loosely followed the directions in this article - http://www.systemcentercentral.com/steps-to-migrate-virtual-machines-from-one-cluster-to-another/.  I've got both SQL nodes off and I convert a disk to not shared.  When I try to storage migrate the vhdx or simply make a copy of the file, I get a message saying that the file is in use by some other process.  Does anyone have experience moving shared vhdx?  I'm on Hyper-V 2016.  I do have SCVMM management in play.

Virtual Machine failed to start error in Hyper-V

$
0
0

I am having trouble starting the virtual machine using Hyper-V. It keeps prompting this error:

The application encountered an error while attempting to change the state of 'virtual machine'

'Virtual Machine' failed to start.

(Virtual machine ID D77B673-E1AB-4739-A539-7CF6BDE89ACE)

I have searched for solutions but none of those worked. I am running on Windows 10 Pro, I have configured all the necessary settings on Hyper-V such as the hard drives and private networks. Any ideas on how to solve this error?

[EDIT]

ERROR LOG

-<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">

- <System>
  <Provider Name="Microsoft-Windows-Hyper-V-VMMS" Guid="{6066F867-7CA1-4418-85FD-36E3F9C0600C}" />
  <EventID>15130</EventID>
  <Version>0</Version>
  <Level>2</Level>
  <Task>0</Task>
  <Opcode>0</Opcode>
  <Keywords>0x8000000000000000</Keywords>
  <TimeCreated SystemTime="2017-11-06T07:12:19.343453100Z" />
  <EventRecordID>492</EventRecordID>
  <Correlation />
  <Execution ProcessID="2500" ThreadID="6280" />
  <Channel>Microsoft-Windows-Hyper-V-VMMS-Admin</Channel>
  <Computer>JAMES</Computer>
  <Security UserID="S-1-5-18" />
  </System>
- <UserData>
- <VmlEventLog xmlns="http://www.microsoft.com/Windows/Virtualization/Events">
  <VmName>20411B-LON-DC1</VmName>
  <VmId>D77B6273-E1AB-4739-A539-7CF6BDE89ACE</VmId>
  </VmlEventLog>
  </UserData>
  </Event>

A virtual disk support provider for the specified file was not found. (0xC03A0014).

$
0
0
Hello All,

I was getting below errors after rebooting Hyper V 2012 server, Now everything is fine but looking for RCA  & precaution for future issues & I got few article but these are for windows 2008 server .

https://support.microsoft.com/en-ie/help/2628135/a-system-center-virtual-machine-manager-2008-p2v-fails-with-a-device-a

https://support.microsoft.com/en-in/help/2013544/error-message-when-you-manage-a-vhd-file-in-windows-server-2008-a-virt

Note : ---The affected hyper-v host is Windows 2012 and no backup running.

As far as AV scans, I have not seen / experienced that Symantec locking the vm configuration and vm disks folders.
          Symantec have KB to exclude the hyper-v settings ‘vm configuration and vm disk folders’ with OS Windows 2008 R2 for vm      live migration
2 Hyper V on Standalone

==========================================================

Below are the events.



Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
Source:        Microsoft-Windows-Hyper-V-VMMS
Date:          6/1/2018 6:25:59 AM
Event ID:      32026
Task Category: None
Level:         Error
Keywords:      
User:          SYSTEM
Computer:      LANDserver.contoso.waycorp.com
Description:
Hyper-V failed to generate delta for virtual machine 'NMii': A virtual disk support provider for the specified file was not found. (0xC03A0014). (Virtual Machine ID 9DE486A1-1679-47BB-BCAF-B8E7853A4211)
 
Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
Source:        Microsoft-Windows-Hyper-V-VMMS
Date:          6/1/2018 6:57:52 AM
Event ID:      12620
Task Category: None
Level:         Error
Keywords:      
User:            Tech
Computer:      LANDserver.contoso.waycorp.com
Description:
'W2008STD_64_TEMPL': Cannot get information for attachment 'E:\VM Machine\W2008STD_64_TEMPL\Virtual Hard Disks\W2K8STDR2-64.vhd'. (Virtual machine ID 3D6E5677-DA69-470F-9F8F-00B21EABA002)


=======================

Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
Source:        Microsoft-Windows-Hyper-V-VMMS
Date:          6/1/2018 7:01:30 AM
Event ID:      32086
Task Category: None
Level:         Error
Keywords:      
User:          SYSTEM
Computer:      LANDserver.contoso.waycorp.com
Description:
Hyper-V suspended replication for virtual machine 'NMii' due to a non-recoverable failure. (Virtual Machine ID 9DE486A1-1679-47BB-BCAF-B8E7853A4211). Resume replication after correcting the failure.
 
==========================
Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
Source:        Microsoft-Windows-Hyper-V-VMMS
Date:          6/1/2018 7:01:36 AM
Event ID:      32026
Task Category: None
Level:         Error
Keywords:      
User:          SYSTEM
Computer:      LANDserver.contoso.waycorp.com
Description:
Hyper-V failed to generate delta for virtual machine 'NMii': A virtual disk support provider for the specified file was not found. (0xC03A0014). (Virtual Machine ID 9DE486A1-1679-47BB-BCAF-B8E7853A4211)
 
=========================


Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
Source:        Microsoft-Windows-Hyper-V-VMMS
Date:          6/1/2018 7:02:49 AM
Event ID:      15266
Task Category: None
Level:         Error
Keywords:      
User:          SYSTEM
Computer:      LANDserver.contoso.waycorp.com
Description:
Failed to create the virtual hard disk.
Event Xml:
 ================================


Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
Source:        Microsoft-Windows-Hyper-V-VMMS
Date:          6/1/2018 7:18:15 AM
Event ID:      14140
Task Category: None
Level:         Error
Keywords:      
User:          SYSTEM
Computer:      LANDserver.contoso.waycorp.com
Description:
'W2008STD_64_TEMPL' failed to add device 'Virtual Hard Disk'. (Virtual machine ID 3D6E5677-DA69-470F-9F8F-00B21EABA002)
 =======================


Log Name:      Microsoft-Windows-Hyper-V-Worker-Admin
Source:        Microsoft-Windows-Hyper-V-Worker
Date:          6/1/2018 7:26:18 AM
Event ID:      12010
Task Category: None
Level:         Error
Keywords:      
User:          NT VIRTUAL MACHINE\C9225EDB-AFE2-47BA-BEF4-DDD78A803003
Computer:      LANDserver.contoso.waycorp.com
Description:
'LANDC01' Microsoft Emulated IDE Controller (Instance ID 83F8638B-8DCA-4152-9EDA-2CA8B33039B4): Failed to Power on with Error 'A device attached to the system is not functioning.' (0x8007001F). (Virtual machine ID C9225EDB-AFE2-47BA-BEF4-DDD78A803003)
Event Xml:
 
===============================
Log Name:      Microsoft-Windows-Hyper-V-Worker-Admin
Source:        Microsoft-Windows-Hyper-V-Worker
Date:          6/1/2018 7:26:18 AM
Event ID:      12140
Task Category: None
Level:         Error
Keywords:      
User:          NT VIRTUAL MACHINE\C9225EDB-AFE2-47BA-BEF4-DDD78A803003
Computer:      LANDserver.contoso.waycorp.com
Description:
'LANDC01': Failed to open attachment 'E:\VM Machine\LANDC01\Virtual Hard Disks\LANDC01 C-Drive.vhdx'. Error: 'A device attached to the system is not functioning.' (0x8007001F). (Virtual machine ID C9225EDB-AFE2-47BA-BEF4-DDD78A803003)


====================================


Log Name:      Microsoft-Windows-Hyper-V-VMMS-Storage
Source:        Microsoft-Windows-Hyper-V-VMMS
Date:          6/1/2018 7:18:15 AM
Event ID:      27000
Task Category: None
Level:         Error
Keywords:      
User:         Tech
Computer:      LANDserver.contoso.waycorp.com
Description:
Failed to open attachment 'E:\VM Machine\W2008STD_64_TEMPL\Virtual Hard Disks\W2K8STDR2-64.vhd'. Error: 'A virtual disk support provider for the specified file was not found.'.

==================================



Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
Source:        Microsoft-Windows-Hyper-V-VMMS
Date:          6/1/2018 7:18:15 AM
Event ID:      12620
Task Category: None
Level:         Error
Keywords:      
User:         Tech
Computer:      LANDserver.contoso.waycorp.com
Description:
'W2008STD_64_TEMPL': Cannot get information for attachment 'E:\VM Machine\W2008STD_64_TEMPL\Virtual Hard Disks\W2K8STDR2-64.vhd'. (Virtual machine ID 3D6E5677-DA69-470F-9F8F-00B21EABA002)
 
===========================


Log Name:      Microsoft-Windows-Hyper-V-Worker-Admin
Source:        Microsoft-Windows-Hyper-V-Worker
Date:          6/1/2018 7:13:18 AM
Event ID:      12140
Task Category: None
Level:         Error
Keywords:      
User:          NT VIRTUAL MACHINE\51567C34-DE69-4B3D-8731-A2CDF4679E69
Computer:      LANDserver.contoso.waycorp.com
Description:
'LANPRD01 - Paulson Software': Failed to open attachment 'H:\VM Machine\LANPRD01\Virtual Hard Disks\LANPRD01 C-Drive.vhdx'. Error: 'A device attached to the system is not functioning.' (0x8007001F). (Virtual machine ID 51567C34-DE69-4B3D-8731-A2CDF4679E69)
Event Xml:
 
======================



Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
Source:        Microsoft-Windows-Hyper-V-VMMS
Date:          6/1/2018 6:59:16 AM
Event ID:      15268
Task Category: None
Level:         Error
Keywords:      
User:          SYSTEM
Computer:      LANDserver.contoso.waycorp.com
Description:
Failed to get the disk information.
Event Xml:
 
=====

Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
Source:        Microsoft-Windows-Hyper-V-VMMS
Date:          6/1/2018 6:59:29 AM
Event ID:      32026
Task Category: None
Level:         Error
Keywords:      
User:          SYSTEM
Computer:      LANDserver.contoso.waycorp.com
Description:
Hyper-V failed to generate delta for virtual machine 'NMii': A virtual disk support provider for the specified file was not found. (0xC03A0014). (Virtual Machine ID 9DE486A1-1679-47BB-BCAF-B8E7853A4211)
 


 






Failed while adding virtual ethernet switch connections server 2016

$
0
0

Hi,

    I am trying to add a virtual switch in Hyper V and getting an error message "failed while adding virtual Ethernet switch connections". I had created 1 virtual switch for one of my VM earlier and now when trying to create a new on another port it is throwing this error. Can anyone suggest a work around for this issue..

Thank you...

Viewing all 19461 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>