VM Poor Performance
Hyper-V 'VM name' failed to initialize
When I attempt to start any of my three VMs I get a "failed to initialize error"
Looking in the event viewer for hyper-v, I'm noticing an error: "The WMI namespace 'root\virtualization\v2' is not registered in the CIM repository." with no additional details.
I've rebuilt the WIM repository, reinstalled Hyper-V, and attempted to recompile the mof/mlf files using this guide: https://technet.microsoft.com/en-us/library/dd581765(v=ws.10).aspx (I modified the commands for virtualization.v2.mof and .mlf)
I've also noticed that the nvspwmi service appears to be missing
How to convert VMWare image to Hyper-V images?
Hi,
Now that Hyper-V seems to be working for us, we have several vmware image that I would like to convert over. Is this possible?
Regards,
Peter
Memory allocation
Hello!
My host PC (RAM = 16 Gb) hosts two VMs, each has been allocated 6Gb of Ram. After starting VM1 host's Task Manager shows there's ~8Gb available:
Nevertheless, when I'm trying to run VM2 I get this error:
Would anybody please point me to the document stating how much memory should be available on the host after all VMs have been started?
Thank you in advance,
Michael
All Hyper V VM s are using 100% CPU
All
We have a windows server 2012 as a hyper v host and 2 VM S SBS 2011 and windows 7 VM
Since this Tuesday the CPU usage is a constant 100% on both VMs and since backups were failing due to high cpu usage rebooted the SBS 2011 server. But even after a reboot/shutdown SBS is at a constant 100% usage
We disabled all non MS services, disabled Exchange, SQL and memory hungry services but the CPU usage is at a 100%.The time it goes down is when we stop all MS /NON MSservices except bare minimal services which needs to run the SBS properly
Even with this the moment we open up a MMC console , open up an application on the server the cpu goes to 10% and remains for a long time and then goes down again
But with all SBS services running it never happens and stays at a 100% even after acouple of hours
Hyper V integration services are up-to-date
Any advice is greatly appreciated.
Thanks
Dhanushka
How to check the RAID or HDD config in Hyper v 2012 core
I have hyper v 2012 / hyperv 2008 core running in rack server. I wanted to verify whether the server is in RAID or not. How do i check that?
Sathishkumar M
How to fail over from replica server where the replication has been removed?
We had 2 physical servers and both running Windows 2012 R2 Server Standard.
We implemented the cross replication method between this 2 servers with NO SAN/NAS at all in between purely just disk on servers which the capacity can handle both servers.
Our servers as follow (as example):
- Physical01 server has VM01 and VM03
- Physical02 server has VM02 and VM04
This method of replication has been running for almost a year and it's been running ok.
This morning we had this situation where there is an electricty outage and set the shutdown/restart. We found that none of the VMs can't be restarted - something to do with VM state issue. After doing troubleshooting we end up kill of the replications instead.
End up running as follow:
- Physical01 server has VM03
- Physical02 server has VM01 (no replication has been setup as yet), VM02 and VM04
Due to all servers except VM01 are not considering a lot of update we managed to use original ones and delete the replication ones, now we are having a dilemma where VM01 (file server) are running on Physical02 as a replica at the moment and there is a data/file
has been changed SO what is the best way to handle this issue?
(1) We are thinking to Enable Replication on VM01 on Physical02 and delete VM01 on the Physical01 and run the replication. It means the data will replicate again to Physical01. Once the data has been replicated ... we could do remove the REPLICATION again and then shutdown the VM01 and move data from \Replica Targets\ to \Virtual Machines and then change the path for Virtual Hard Disk in VM for Harddrive
... OR ...
(2) We do the latest VM backup of VM01 in Physical02 and restore under Physical01
What do you think? The first approach is good but NOT cleaner as such due the folder structure are messier. We had folders called \VirtualMachines (for virtual machines) and \ReplicaTargets (for VM replicata). Second approach not sure how long this will be because it's involved backup and restore.
Waiting for your input.
Isadewa
Cannot configure Hyper-V Replica - cleanup required
Enable-VMReplication -VMName $VM -Computer $SourceHV - ReplicaServerName $DestHVBroker -ReplicaServerPort 80 -AuthenticationType Kerberos
returns:
Enable-VMReplication : Replication has already been enabled on virtual machine '[vmname]'. Please use the Set-VMReplication cmdlet to modify replication settings.
Set-VMReplication -VMName $VM -Computer $SourceHV -CompressionEnabled $true
returns:
Set-VMReplication : Replication has not been enabled on virtual machine '[vmname]'. Please use the Enable-VMReplication cmdlet to enable replication.....
How do I fix or clean up this situation?
Install issue on Win10 Tech Preview Build 10074 on Lenovo Yoga2
I have a Lenovo Yoga2 Pro running build 10074. I can't enable Hyper-V and need it for some Visual Studio Phone development. It allows me to add that feature, and "configures" windows, reboots, says it is finishing, gets to 95% and fails. Then it backs out the changes, reboots and I am back where I started.
I do have Hyper-V working on my desktop also running 10074 and it works fine with Visual Studio 2013. I also have virtualization enabled on the Yoga2, and had this working on an earlier build. The upgrade to 10074 did fail and I was forced to use the recovery disk to do a "clean" install of 10074.
Any pointers would be greatly appreciated.
DPC_Watchdog_Violation - Transferring files through Hyper-V switch on Host Server (NOT Teamed)
I've recently replaced a PERC H310 RAID controller with a PERC H710p RAID controller on a Dell PowerEdge R820 running Windows Server 2012 R2 and started experiencing this problem. Everything I've investigated so far doesn't point to this being the issue, but wanted to mention it in case someone encountered something similar.
We were having terrible disk performance until the RAID card was swapped out, and as a precaution I moved all existing VMs off of this Hyper-V host server. Once everything was back up and running, I began a live migration back to the affected host server and it blue screened. Tried again and same result. I then tried copying the VM images manually through a UNC share and hit the same problem. It doesn't always happen at the same time during the copy. I've had blue screens happen 4-5 GB into a transfer, and 200 GB into a transfer.
I've updated the RAID controller driver and firmware to the latest available from Dell, and have installed the latest BIOS and chipset driver. The server has Broadcom 5720 series NICs, updated with the latest drivers and firmware provided by Dell. All Windows/Microsoft updates have been applied.
After all these firmware/driver updates the blue screens still kept occurring during network transfers. All the minidumps show a 0x133 DPC_watchdog_violation error, where the DPC time allotment is 500 ticks and the blue screens happening at 501 ticks. Running the minidumps through Windows Debugger pointed to tcpip.sys, netio.sys, and vmswitch.sys initially. Since tcpip.sys and netio.sys aren't typically the issue, I looked around for anything related to vmswitch.sys being the problem.
I disabled the Hyper-V vSwitch in the OS and did a transfer 100% successfully, with the traffic running through the same NIC the vSwitch was configured to use. Once I re-enabled the vSwitch and transferred more files......the blue screen came back.
In researching, I found reports of this issue when a Hyper-V host was using NIC Teaming. We don't have any of the NICs on this server teamed, but I figured it wouldn't hurt to apply the latest hotfix that addressed the issue.3031598 - even after applying it I was getting more bluescreens. I couldn't find a way to use the updated vmswitch.sys that came with the hotfix (6.3.9600.17714); I tried deleting and recreating the vSwitch, but the old driver (6.3.9600.16384) is what gets applied and searching the OS for an updated driver doesn't turn up anything. I also can't find any info online about manually updating the driver after applying a hotfix.
I'm fairly certain vmswitch.sys is the issue, but I don't know where to go from here. Are there any NIC or vSwitch settings I can adjust to help with this? Has anyone encountered a similar issue? Can anyone lend a hand in diagnosing this issue? I found some good resources on debugging and troubleshooting this issue further (2 URLs below), but this has gone from "this is a good learning experience" to "this needs to get done" in the few weeks I've been troubleshooting.
http://blogs.msdn.com/b/ntdebugging/archive/2009/12/11/test.aspx
All the minidump's from every time this has happened can be viewed here: http://1drv.ms/1R6CfAO.
Here are all the suspects from those minidumps:
Probably caused by : vmswitch.sys ( vmswitch!VmsPlcApplyPolicy+26d )Probably caused by : vmswitch.sys ( vmswitch!VmsPlcApplyPolicy+1da )
Probably caused by : NETIO.SYS ( NETIO!ProcessCallout+772 )
Probably caused by : tcpip.sys ( tcpip!TcpTcbReceive+d9 )
Probably caused by : vmswitch.sys ( vmswitch!VmsRouterForwardPackets+27a )
Probably caused by : NETIO.SYS ( NETIO!NetioAllocateAndReferenceCopyNetBufferListEx+4c )
Probably caused by : tcpip.sys ( tcpip!TcpValidateReceive+14 )
Probably caused by : klim6.sys ( klim6+3013 )
Probably caused by : vmswitch.sys ( vmswitch!VmsPtNicPvtPacketRouted+cf )
Probably caused by : NETIO.SYS ( NETIO!NetioAllocateAndReferenceCopyNetBufferListEx+7 )
Probably caused by : vmswitch.sys ( vmswitch!VmsMpNicPvtPacketForward+184 )
Probably caused by : tcpip.sys ( tcpip!Ipv4pFragmentPacketHelper+6d1 )
Probably caused by : ntkrnlmp.exe ( nt! ?? ::FNODOBFM::`string'+ad68 )
Probably caused by : ntkrnlmp.exe ( nt! ?? ::FNODOBFM::`string'+ad68 )
Probably caused by : tcpip.sys ( tcpip!InetInspectReceiveTcpDatagram+b0 )
Probably caused by : vmswitch.sys ( vmswitch!VmsRouterForwardPackets+1f3 )
Probably caused by : tcpip.sys ( tcpip!TcpTcbFastDatagram+1150 )
Dynamic memory allocation failure
Dear reader,
We sometimes have a problem where our windows 2012 r2 RDS virtual servers, that reside on windows 2012r2 hyper-v hosts, loose their dynamic memory and only have their startup memory left to work with. Users start complaining that things are very slow etc.
If I check several screens (RDS Broker load balancing, hyper-v manager, cluster manager and the vm's task manager) it's clear that the vm only has its startup memory allocated. I'm not sure if this happens instantly or immidiatly after the nightly reboot. To resolve the problem we have to call all users on the vm where it happens and ask them to logoff (if they are even able to), and then we reboot the machine.
I have checked the logs from the machine where the VM resides on and the logs from the vm itself. But I cannot find anything. We also have alot of windows 2008r2 vm's with dynamivc memory, but none of those have ever had this problem.
Searched the internet, but so far it seems we are only.
Can anyone give me a lead to troubleshoot this?
Best regards,
Ruud Boersma
MCITP Enterprise administrator
ODX on Dell MD 3XXX Storage will corrupt the VHDX
I have found that the latest version of the Dell MD Storage has ODX on by default. When using the storage migration with this turned on the VHDX files transfer instantly between the LUN's but the VHDX is corrupt and causes the Virtual Server to blue screen and then to never boot again. I have yet to find a way to recover any data.
My current work around is to disable ODX on the array itself which means that the data is transferred by the hosts, but does not corrupt the VHDX files.
show storageArray odxsetting;
set storageArray odxEnabled=false;
IOS RDP keyboard
Hello,
No matter what version of IOS RDP app iphone/ipad I cannot not use the keyboard to input the login on the hyper V VM. I can RDP into the Hyper V server and use the keyboard, but once I'm in the Hyper-V Server and double click on the VM I cannot login using the keyboard, but mouse works. The ios RDP, not matter who makes it, it used to work a year ago, but not anymore. However it works from any windows workstations with no problem with RDP. Any idea on what's wrong? Is it the server or the app itself?
Unable to install hyper-v role using powershell script on server 2012 R2
Here's my script:
Clear-Host $Host.UI.RawUI.WindowTitle = "Install Windows Features and Roles" #Add spaces so messages appear under the progress bar Write-Host "" Write-Host "" Write-Host "" Write-Host "" Write-Host "" Write-Host "" Write-Host "" Write-Host "" #Install Server Manager Import-Module ServerManager #Install Failover Cluster Role Write-Host "Install Failover Cluster Feature..." Install-WindowsFeature -Name Failover-Clustering -IncludeAllSubFeature -IncludeManagementTools
# -WarningAction SilentlyContinue | Out-Null Write-Host "Install Failover Cluster Feature Completed." -ForegroundColor Green Write-Host "" #Install Hyper-V Role Write-Host "Install Hyper-V Role..." Install-WindowsFeature -Name Hyper-V -IncludeAllSubFeature -IncludeManagementTools # -WarningAction SilentlyContinue | Out-Null Write-Host "Install Hyper-V Role Completed." -ForegroundColor Green Write-Host ""
Failover Cluster installs but when it tries Hyper-V it hangs at 10% forever:
I've installed a fresh DataCenter edition of Server 2012 R2
I've installed Chipset, Video and NIC drivers
I've joined the domain and logged in as a Domain Admin
Any ideas?
Server 2012 Hyper-v Guest machines keeps losing internet connection
Hello All,
I have a server 2012 R2 with Hyper-V installed. Within Hyper-v, I have 3 guest machines: Guest1, Guest2, and Guest3.
I also have 4 physical Network Interfaces on the server. One set with 10.10.10.10/24 IP and the other setup with 10.10.10.254/24 IP.
I have created two virtual switches, each labeled switch1 (10.10.10.10/24) and switch2 (10.10.10.254/24) and both created within hyper-v virutal switches as External switches.
Initially all 3 guest machines were attached to Switch1. Everything was running fine for 4 months and all of a sudden, all 3 machines (using static IPs) stopped communicating with the network. All network communication was lost including internet.
I did everything and could not get these servers to communicate. I could however set each as dhcp and then they would acquire new ip and would work, but the static ip would not work.
Since these are production servers and DNS was pointing to those static IPs, i had to use those IP addresses. After much playing around, i disabled one of the virtual switches and attached all 3 guest machines to the other virtual switch and they started working.
This morning, all three guest machines stopped communication again and i had to remove the virtual switch and attach them back to the original virtual switch and everything started working again.
I'm afraid this will continue.
What is going on and how i prevent this from happening?
Some Windows Guests not demanding more memory
Scenario
I have a 3 Windows 2012 R2 Hyper-V hosts which is participating in a cluster, all of the virtual machines are hosted on CSV's. We also use Dynamic Memory for most of the servers
We do regular reboots every week for our virtual machines, but we've found that sometimes, a virtual guest will suddenly stop requesting additional memory. At the time of writing, I have identified 10 machines - on different hosts, and even different clusters which are exhibiting this behaviour. They're also running OS's ranging from Windows 7 to Windows 2008 R2 and Windows 2012.
I have selected one to demonstrate below.
Here, you can see the virtual machine is configured to use Dynamic Memory
and here, you can see that it's not actually demanding more than the start memory, despite the fact that I've overloaded the servers virtual memory by using MSPAINT.
Workaround
Rebooting the virtual machine does not resolve the issue, but live migrating the virtual machine from the host it is on to another host suddenly allows it to demand more memory. One can then live-migrate it back to the original host and the problem
is no longer there.
Troubleshooting
We have performed the following troubleshooting steps:
- Verified that the Integration Services are up-to-date (currently running 6.3.9600.16384)
- Verified that the virtual server has up-to-date Windows Updates
- Checked the Hyper-V-Worker\Admin event log on the current host - no errors pertaining to this VM.
- Verified that the Hyper-V host has sufficient RAM (currently only using 542 out of 768 GB)
- Checked the System event log on the virtual machine - nothing out of the ordinary to report.
- Verified that all services which start with the word "Hyper-V" on the guest machine is running.
Using the following command, I can easily identify which machines are affected (this command applies to SCVMM only):
Get-SCVirtualMachine | where {$_.DynamicMemoryEnabled -eq $true -and $_.DynamicMemoryDemandMB -eq $_.Memory} | ft Name,HostName,OperatingSystem,Memory,DynamicMemoryDemandMB,DynamicMemoryMinimumMB,DynamicMemoryMaximumMB
I do not know any diagnostic program which can give me more information regarding the memory status of a server - specifically one which can tell me more information about Memory demand, and why it's not working.
Considering that the problem is resolved when I live migrate the affected machine, it would suggest that the issue is with the host, but as live migrating it back no longer exhibits the issue - that seems to negate that theory. Additionally, the other 103 virtual machines which run on this host seem to not show this issue.
It's almost as if the machine is being ran with static memory, and Hyper-V doesn't realise it's dynamic, but the moment it's live migrated, it suddenly realises this and enables dynamic memory.
Any thoughts?
Hyperv - best practices to make backup of virtual machines
Hi there.
What are the best (free) practices to achieve backup of hyperv server and their virtual machines?
Please advise.
With best regards
bostjanc
Unable to see shared vhdx's in Guest Cluster.
Hi,
I am trying to create a guest cluster using shared vhdx's as the means of storage.
But for some unknown reason I can't see my disks.
Although I can see them when I run a validation test. But it's telling me that the disk bus type does not support clustering.
Please see this screenshot.
Do you have any ideas?
Please can you help.
Thanks
How to expand disk space of a virtual disk running Ubuntu in Hyper V?
Failed to get the disk information
Hello,
I'm getting the following error message on a Hyper-V server:
Log: Microsoft-Windows-Hyper-V-VMMS-Admin
Type: Error
Event: 15268
Agent Time: 2014-06-06 09:51:01Z
Event Time: 07:50:19 AM 6-Jun-2014 UTC
Source: Microsoft-Windows-Hyper-V-VMMS
Category: None
Username: SYSTEM
Computer: SERVER.domain.lan
Description: Failed to get the disk information.
I can't find any information regarding this error message/ID. Is there anyone who received the same error message once?
Kind regards,
Rense Hartog