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

Alternative to .ISO file to be used with Hyper-V

$
0
0

Hi,

I am running Hyperv on Server 2012 R2.

I have .img file and requirement is to NOT to convert to .ISO.
Can we use .img file anyhow with Hyper-V to boot the virtual machine?


N.A.Malik


Live Migrations Failed but Quick Migrations Succeeded

$
0
0

4 nodes Hyper-V Failover Cluster running Windows Server 2012 R2 Datacenter edition. The problem is I cannot Live migrate any VMs to a specific node but Quick migration works fine.

The scenario is as follows:

Live Migration between Node1, Node3 and Node4 work both ways

Neither Node 1, Node3 and Node4 can Live Migrate to Node2

From Node2 cannot Live Migrate to any other Nodes

From Node1, Node3 and Node4 can Quick Migrate to Node2

From Node2 can Quick Migrate to any other nodes

Pinging Node2 from other nodes with no problem and vice versa. All configuration looks fine and cluster validation report Ok. SPN entry is present on all nodes. Cluster event logs are flooding with Event ID 5120 and on Windows >System with Event ID 1592.

Any help or ideas appreciated. Thanks

How To Move Hyper V VM that contain AD to new server

$
0
0

Hi Server Expert,

Currently, Our primary AD is running as a VM in one of the hypervisor server running Window Server 2008 R2. Due to hardware instability, we would like to move the AD VM out to new server.

May I know what is the best and proper way to do this since AD might have different way of moving the VM which is different from normal server?

THanks

Best Regards,

Hyper-V Loses Connection via USB passthrough

$
0
0

Greetings,

     I have Windows Server 2012 R2 host, that houses 2 VMS (DC and Application Server).  I use Windows Server Backup to backup data to an external drive using usb passthrough.  The issue I am experiencing is that hyper-v forgets that an external usb drive is attached and I find out that they got detached through failed server backups.  Is this a bug with Hyper-V or is there a fix for this that I can try?

How to recover a corrupted VM

$
0
0

Server 2012R2 Datacenter

Hyper-V

VM to recover: SQLServer2102

The VM in question failed because I did not see it ran out of vDisk space from the original 127GB. Updates were failing. I expanded the vDisk space for the VM in settings from 127 GB to 512 GB. Upon reboot of VM, I just get a blue screen and the network icon, nothing else after the Ctrl-Alt-Del . This should be the sign on screen.

I have NovaStor backup for servers and was backing up the VM in NovaBackup. I had a recent backup (file size 127GB) and did their restore function. A Hyper-V window popped up saying the VM would be deleted. I had no choice. NovaBackup said restore completed successfully but it did not. In the Hyper-V manager there was no SQL2012 VM and it took only seconds for NovaBackup to say it completed its restore of 127GB???

I have a trouble ticket with NovaBackup but they are being very responsive.

I do have a full image backup of the Server2102R2 and the C drive. Is it possible to restore the VM ile for the bad VM  and vhdx? will that restore the Sql2012 VM to operating status?

Any thoughts are helpful while I await NovaBackup tech support.


John Lenz

Hyper-V 2012R2 and VM: Windows10 - The protocol version of the component installed in the virtual machine does not match the version expected by the hosting system

$
0
0

Hi

On my Hyper-V 2012R2 (all updates installed) I have Windows 10 VM.

There is a problem with VSS Integration Services.

Non-Recoverable Error

The protocol version of the component installed in the virtual machine does not match the version expected by the hosting system

I try to update Integration Services on this Windows 10 but system returned Information that "The computer is already the current version of integration services (10.0.10586.0)."

Due to this  I cannot make VM backup of thise machine using Veeam application. Backup job faild and in Hyper-V Integration log I get:

Hyper-V Volume Shadow Copy Requestor failed to connect to virtual machine 'W10-plwropc304' because the version does not match the version expected by Hyper-V (Virtual machine ID 68D49A55-89BE-403F-8CA7-89ABA1225FCE). Framework version: Negotiated (0.0) - Expected (3.0); Message version: Negotiated (0.0) - Expected (5.0). To fix this problem, you must upgrade the integration services. To upgrade, connect to the virtual machine and select Insert Integration Services Setup Disk from the Action menu.

How to solve this problem?


Kind Regards Tomasz

Nested virtualization

$
0
0

Hi all

Has anyone tried to run KVM virtualization inside an Hyper-V v2 machine? I did some experimentation exposing CPU 

extensions to VMs but still Linux VM's will tell me that no KVM module has been loaded nor are available to the OS.

thanks 

Cesar Lara

Disk latency Server 2012 R2 host and guest

$
0
0

I am having an issue on a 2012 R2 3 Node cluster that has passed cluster validation. We started noticing disk latency issues this week after applying security updates but not sure if it is related to the updates because we have had latency issues in the past. Our SAN drives are connected through iSCSI with jumbo frames and a dedicated switch. We prevent any other traffic from using those NICS. We have all Intel NIC, no broadcoms. The SAN disk are not seeing any latency but host and guest are seeing it. Our SAN vendor has reviewed our setup and indicated the SAN is healthy.

I can see latency on the host and guest when performing large file copies. We have VMQ enabled and best practices analyzer alerted me that some of our disk are dynamic. Would these two items contribute to the cause? I see mixed information about VMQ. It is currently enabled on all guest which seems like it goes against best practice. I am also seeing that dynamic disk are not favorable for production loads. Should I start with these two items since the SAN has received a good bill of health?

I will be happy to elaborate if I haven't provided enough information.

Thanks in advance for any help that you may be able to offer.


0xc0000428 on VM when booting VM after Patching.

$
0
0

Hi

So I installed a couple of patches on our Windows 2012 R2 Hyper-V host and everything seemed fine.

But when i rebooted a VM i got Windows Boot Manager error 0xc0000428 saying the "digital signature for this file couldn't be verified"

Turning off the VM and moving it to an unpatched host made the VM boot again.
Live migrated it back to the patched host and it ran fine, but if I restart it on the patched host i get the same error again.

Removed all the patches exept KB3173424 that isn't uninstallable. No luck.

Anyone seen something simular and has a fix ?

Low Internet Performance with 400MB Internet Speed - Hyper-v, VMQ, RSS, PRAS Nating

$
0
0

Hallo everyone,

In the last couple of weeks we bought a new Internet Cable with 400MB/s and we are facing a problem while downloading anything from the internet or from our FTP Server.

Here are the full used Settings:

0) VM is being used as Default Gateway by using PRAS for Nating.

1) The VM is WS2012R2 , while the Host is Hyper-v 2012 r2

2) The Modem is connected directly to the VM with a static IP from the ISP.

3) 2 Network adapters are didicated for the VM. The 1st is for Public Internet with static public IP ( connected to the Modem) and the 2nd is forPrivate local network (connected to our Network).

4) Network Card is Intel I350-T4  1 GB (VMQ supported and DMA Supported).

The problem is when I connect the modem directly to a client, the downlaod speed will be high 25 to 30 MB/s (depending on the website). While when I using our Gateway with the above settings the speed will drop gradually to 2 MB/s and will stay at this speed.

I have tried to work a little bit with VMQ and RSS but no results. Here is what I have tried:

First the Server specification is : 2 AMD CPU 4 Cores = 2 SOckets, 8Cores and 8 Logical Processirs

Enable VMQ in Host (Hyper-v Server)

Enable RSS in Guest (VM)

Tried to set the VMQ Base and Max processor for the 2 Network Adapters through the 8 cores but didn't see any difference.

For example:

Set-NetAdapterVmq -Name "NetAdapter_Public" -BaseProcessorNumber 1 -MaxProcessors 8

Set-NetAdapterVmq -Name "NetAdapter_Private" -BaseProcessorNumber 5 -MaxProcessors 8

Note: I have tested the Internet on a Test Server with Hyper-V installed as Host and WS2012R2 VM as Gateway and it did workimmediately without problems.

The VMQ is until now really complicated for me and for sure I'm missing something. I will be gratefull if someone can go through the decryption above and help me to find a solution.


Windows Server 2012 Datacenter VM Activation

$
0
0

Hi,

I am experiecing issues activating VM's on Windows Server 2012 Datacenter. I have used a MAK key to activate my host.

HOST OS: Windows Server 2012 Datacenter

VM OS: Windows Server 2012 R2 Standard

I tried using the same MAK Key (as well as 2 other KMS keys that appear in the volume license Portal) to activate my VM's but I get an error saying keys are invalid.

Tried many solutions but to no avail.



Virtual Switches in Different Environments Obtaining Production Environment IP Addresses

$
0
0

Hello, 

The organization I work for has three environments: Development, Test, and Production.  Our IT workstations have three physical NICs (one for each environment).  When configuring a new RDS server yesterday, I was testing my machine to remote into from an external network.  Instead of remoting into my computer, I was placed on another user's desktop in another department.  Her IP was 192.168.1.128, my Production IP was 192.168.1.195.  I ran an ipconfig command and saw that my virtual switch for the Dev environment (my Dev VM was turned off) was pulling an IP address of 192.168.1.128.  Running nslookup for the .128 IP, it shows the hostname of the other user's desktop (as it should).

Any thoughts as to why my virtual switches are acting as if their IPs are in the Production environment?  Both my Dev and Test VMs were turned off at the time.  I am using Hyper-V on Windows 10.

Thanks,

Jonathan     

Merging snapshots - calculating how large a VHD will grow

$
0
0

On 2008 R2: Say you have a 100GB dynamic VHD with 10GB used inside the VM (so the VHD itself is only 10GB), and took a snapshot, then created a 50GB file inside the VM. Then say you deleted the 50GB file inside the VM, so you had only 10GB being reported used in the VM again, then deleted and merged the snapshot. Would you end up with a roughly 60GB dynamic VHD after the merge, or a 10GB?

I understand the best practices or stated maximum space required for a merge being 2x of the AVHD, but I was curious how it works in your experience or "under the hood". I'm planning to do a merge this weekend with a similar scenario to the above - where a logfile grew to over 200GB, then I deleted it, and I wanted to know if it will grow the VHD by ~200GB, or if it's unlikely to.

Thanks for any thoughts. 

V-CPU Over-allocation in Hyper-V on Windows 12

$
0
0

I am wondering what the CPU to vCPU allocation recommendations are for Hyper-V on Windows 12?

For example. Let's say I have a Cisco B200 blade server with 2 sockets. Each socket contains 8 CPU cores. So I have 16 CPU cores on the mother board. With hyper-threading this looks like a 32 CPU host if I open the task manager.

Now I start creating VM's. Each one has a vCPU and a RAM allocation.

How many vCPU's can I reasonably allocate? is it 32? So I can create 32 VM's with 1 vCPU each? or 4 VM's with 4 vCPU's each. Or can I over-allocate? If I can over allocate then what are the recommendations? How far can I go?

Determine whether Hyper-V is currently active (not installed or configured)

$
0
0

Hyper-V is used by Visual Studio to run the Windows Phone emulators. Hyper-V is also incompatible with VMware because Hyper-V starts Windows in a mode of permanent virtualisation while VMware would need VT-x as well during runtime only.

Hyper-V can be installed and uninstalled as a Windows role. This will also activate and deactivate permanent Windows virtualisation and allow VMware to run. But then of course the Visual Studio emulators stop working.

Hyper-V can be configured to be active or inactive without uninstalling the Windows role. This involves editing the boot configuration with bcdedit.exe. After doing this change, a restart is required to actually apply the configuration and use or not use Hyper-V. This BCD setting can be read after setting it, but it is unknown whether the system has already been restarted to actually apply it. So this setting only indicates what will happen after a restart, not whether virtualisation is currently running.

Some people say you could look at the Windows service "vmms". Unfortunately this is not helpful because that service is installed with the Hyper-V role and it is always running, no matter whether virtualisation is really active or not. WMI information is also not helpful because it always says that Hyper-V would be running, even when it's not.

Obviously there must be a way to determine the real current status of virtualisation because VMware will tell you when you try to start a 64 bit machine.

So how can this be done in code? Specifically from a .NET application? Administrator privileges are available for this already because bcdedit.exe also needs it.

Should this require native assembler code, would it be possible to run it from C#/.NET somehow?


Export then Import to a different Hyper-V server

$
0
0
In http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/85dc7d36-491f-4b02-88ac-63c1ed0d94db I described a problem when exporting from a Hyper-V server and trying to import into a different Hyper-V server in a different domain. The import failed and the event log contained:

Failed to import the virtual machine from import directory 'D:\HV\Test\Test4GB-3\'. Error: One or more arguments are invalid(0x80070057)

Well I've now identified the source of the problem. In the .exp file is:

<INSTANCE
  CLASSNAME="Msvm_VirtualSystemGlobalSettingData">
...
  <PROPERTY NAME="ScopeOfResidence" TYPE="string">
    <VALUE>
      e7668fbc-216e-4ed1-8ce3-3b932b42e22b
    </VALUE>
  </PROPERTY>

If I edit the .exp file and delete the <value>..</value> then the virtual machine imports with no errors.

Looks like a Hyper-V bug to me!

JR

Catastrophic Failure: Restoring Exhange.vhd (HELP)

$
0
0

"The Following error occurred while searching for the on-premises Exchange server:"

"No exchange servers are available in any active directory sites. You can't connect to remote powershellon computer that only has the management tools role installed. it was running the command Discover-exchangeServer -usewia $true -suppresserror $true -currentversion 'Version 14.1(build18.15)"

Environment;

Server1 (Primary(to be decommissioned))
2003SBS SP1
Running AD, DNS, DHCP
(really its just AD that is all I care about)

Server2 (Secondary(to be promoted to Primary))
2008R2 (will hopefully goto 2016 soon(tm))
Running Exchange, database store.

What happened;
Server1 needs to go, the though was to test a migration from server1 to server2. Server2 has a Hyper-V VM of exchange currently running fine, I had dragged a copy of Exchange.vhd and its differencing disk to a 2TB storage and moved it to a newly purchased exact hardware clone (except for NIC) of server2. After setting up 2008R2 on this lets call it (Server2-Test) non-production server and installing VM I get this brick wall that I have tried everything to fix.

I have already reinstalled 2003 SP1 on server1 (Server1-test) non-production server that I had spare laying around. Added the DC and AD cred's/ profiles.  Also reinstalled 2008R2 making sure I didnt miss any of the roles/features that Server2 had that Server2-test might not have had.

Nothing seems to work.

Please Help.

Background merge fails, replication state critical

$
0
0

I have a Windows 2012 R2 Hyper-V environment, which replicates to another server.

Edit: Both the primary and replica server have all windows updates installed.

The replication works 100% UNTIL I make a backup with the Windows backup (full backup) to an attached USB disk (This backup completes successfully). As soon as the backup finished the following events are logged:

Information (ID 19070): 'Server01' background disk merge has been started. (Virtual machine ID 0C9506DC-333A-4D04-8274-428B693C3E40)
Error (ID 19100): 'Server01' background disk merge failed to complete: Account restrictions are preventing this user from signing in. For example: blank passwords aren't allowed, sign-in times are limited, or a policy restriction has been enforced. (0x8007052F). (Virtual machine ID 0C9506DC-333A-4D04-8274-428B693C3E40)
Error (ID 33676): Replication operation for virtual machine 'Server01' failed: The process cannot access the file because it is being used by another process. (0x80070020). (Virtual machine ID 0C9506DC-333A-4D04-8274-428B693C3E40) (Primary server: 'VmHost', Replica server: 'SERVER03')
Error (ID 32016): Hyper-V failed to generate delta for virtual machine 'Server01': The process cannot access the file because it is being used by another process. (0x80070020). (Virtual machine ID 0C9506DC-333A-4D04-8274-428B693C3E40)
Error (ID 33680): Replication operation for virtual machine 'Server01' failed. (Virtual machine ID 0C9506DC-333A-4D04-8274-428B693C3E40) (Primary server: 'VmHost', Replica server: 'SERVER03')
Error (ID 32086): Hyper-V suspended replication for virtual machine 'Server01' due to a non-recoverable failure. Resume replication after correcting the failure. (Virtual machine ID 0C9506DC-333A-4D04-8274-428B693C3E40)
Information (ID 19070): 'Server01' background disk merge has been started. (Virtual machine ID 0C9506DC-333A-4D04-8274-428B693C3E40)
Error (ID 32510): Failed to delete the log file 'C:\VHD\Server01\Server01_E6713989-DDDD-400A-8B0C-6B0F0BF1F84C.hrl' for virtual machine 'Server01'. (Virtual machine ID 0C9506DC-333A-4D04-8274-428B693C3E40) (VHD C:\VHD\Server01\New Virtual Hard Disk_77946681-5D4D-410C-82A9-7285C5F692AE.avhdx) - Error: The process cannot access the file because it is being used by another process. (0x80070020)
Error (ID 19100): 'Server01' background disk merge failed to complete: The process cannot access the file because it is being used by another process. (0x80070020). (Virtual machine ID 0C9506DC-333A-4D04-8274-428B693C3E40)

After this, replication AND backup fails until I shutdown all virtual machines - at this point (turned off) the merge succeeds and after I start the machines again everything works fine until the next backup.

Please help.


Hyper-V VM Generation 2 - How to boot from .ISO

$
0
0

Hi guys, 

Server OS: Windows Server 2012 R2

I have a VM Gen2 with following settings: 

I can boot fine from the same .iso from a Gen1 VM so the .iso is bootable. 

I know that the Gen2 VM uses SCSI instead of IDE, but I have no clue regarding how to boot from the .iso..

Any ideas?

Thanks in advance!

Best regards,

Kenny

Interrupted VM stuck

$
0
0
I was doing updates on my 2012R2 Hyper-V VM and power dropped. When I booted my host PC back up the VM would start and say Hyper-V Updating your system (x%) and get stuck at 5%. I can't get past this and I have no snapshots/backups of the VM. Is there anyway to recover this VM?
Viewing all 19461 articles
Browse latest View live




Latest Images