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

Hyper-V - 'Operating system shutdown' not functioning on Windows Server 2012 R2

$
0
0

I have a newly installed Windows Server 2012 R2 running the Hyper-v role, the only role it is using.

I have created a new Generation 2 guest VM, Windows Server 2012 R2 std, the only VM and set 'Automatic Stop Action' to 'Shutdown the guest operating system'

Host:

Dell 2950 Dual processor, 8 core, 32Gb RAM

Info:

The 'Hyper-v Guest Shutdown Service' is running in the VM.

VM will shutdown using hyper-v manager.

Problem:

Shutdown the host from the shutdown dialogue and the VM is turned off and not shutdown!

Any ideas please?







Hyper-V virtual machine versions after host OS upgrade from Server 2012R2 to 2019

$
0
0

Hi

Looking for advice on how virtual machine versions are handled during a host upgrade from Windows Server 2012r2 to Server 2019. The setup is as follows:

Production Site - 2 x Windows Server 2012 R2 hosts with Hyper-V Cluster

DR Site - 1 x Windows Server 2012 R2 host with Hyper-V configured as replica server.

The customer wish to upgrade the the 2 production hosts from Server 2012R2 to 2019 but leave the DR replica server running on Server 2012R2.

When upgrading the OS to 2019, will the virtual machine versions stay at 5.0 or are they automatically upgraded? Need confirmation on this as if the versions are auto upgraded then the OS would also need upgraded to 2019 to ensure the virtual machines versions are the same.

Thanks in advance

External USB Drive keeps disconnecting periodically

$
0
0

Hi

We have an external 2TB Seagate drive connected directly to a VM (Windows10) running on Hyper V. THe Disk is listed as OFFLINE in the host and the VM detects the drive fine. In the event viewer I can see a bad block error on DR1. These are the only errors relating to disk. I know seagate drives have loads of issues however in a VM where do I start looking. I want to run a chkdsk after backing up the drive contents. Any other ideas to look for? Could be the physical drive is failing.

Hyper-V failed to enable replication

$
0
0

Dear sir,

Problem : Hyper-V failed to enable replication for virtual machine 'xxx' : Cannot create a file when that file already exists. (0x800700B7). Virtual machine ID 27bxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx

Replication scenario : I am getting this error while i am enabling the replication again as it was disturbed so i need to re-enable it. But getting upper error.

Replication for other two VMs are running. But other replication of two VMs are stopped so i have removed the replication and deleted the VM folder from replica. still it is showing as above and not enabling the replication.

Please help.

Mitesh.

Server 2019 - Error 0xc0000225 When Adding vTPM

$
0
0

Hello,

I'm testing Server 2019 out as a migration path but I'm having an issue with Hyper-V on where it fails to start any VM that has a vTPM enabled. I tried to enable a vTPM on a test VM, and initially it failed with the error:

TimeCreated  : 11/26/2019 8:12:15 PM
ProviderName : Microsoft-Windows-Hyper-V-VMMS
Id           : 15500
Message      : 'vtpm_test' failed to start worker process: The object was not found. (0xC0000225). (Virtual machine ID CFBC4A73-...)

Since this was a test hypervisor,  rather than troubleshoot the error I wiped it clean, and re-installed Server 2019 DataCenter from scratch, re-installed the Hyper-V role, and tried to provision another fresh VM with vTPM. However I received an error that the key protector couldn't be unwrapped:

TimeCreated  : 11/26/2019 8:45:01 PM
ProviderName : Microsoft-Windows-HostGuardianService-Client
Id           : 2014
Message      : The Host Guardian Service Client failed to unwrap a Key Protector on behalf of a calling process. This event will normally correspond to a failure to startup a shielded virtual machine. Consult the description for further details. This could be related to an attestation issue, a Key Protection Server issue, or a network connectivity issue:

               System.IO.FileNotFoundException: Could not find file 'C:\Windows\system32\config\VSMIDK'.
               File name: 'C:\Windows\system32\config\VSMIDK'
                  at Microsoft.Windows.KdsClient.HgsClient.UnwrapProtectionDescriptor(Byte[] ingressProtectionDescriptor, Byte[]& encryptedTransferKey, Byte[]& encryptedWrappingKey, Byte[]& encryptedKeys)
                  at Microsoft.Windows.KdsClient.Interop.ManagedEntry.UnwrapKeyProtector(IntPtr keyProtectorPointer, IntPtr unwrappedKpPointer, IntPtr errorContextPointer)

Doing some digging around, this file is supposed to be auto-created but it wasn't, so I just went ahead and copied it over from one of my Server 2016 installs. After that, I still receive the same error when trying to add a TPM to a VM and start it:

TimeCreated  : 11/26/2019 9:13:15 PM
ProviderName : Microsoft-Windows-Hyper-V-VMMS
Id           : 15500
Message      : 'vtpm_test' failed to start worker process: The object was not found. (0xC0000225). (Virtual machine ID ED380AFD-...)

It's worth mentioning that VMs start without a vTPM and I've also tried installing the HostGuardian feature to see if that helps. Also, I'm not experiencing this issue on a fresh Windows Server 2016 install nor on the established Windows Server 2016 boxes I have. Any thoughts as to what may be causing this issue?

The dynamic memory balancer could not add memory to the virtual machine Event ID 10020

Creating a virtual floppy disk file (.vfd)

$
0
0
Can anyone point me to a tool or technique to create a .vfd for attaching to a VM in hyper-v?  Assume that I do not have a physical floppy drive available, which in many cases I do not. 

Thanks for any help
-Robert

Hyper-V encountered an error trying to access an object...

$
0
0

I've Googled this issue on and off for most of the day, more or less attempting every potential fix in the hope of resolving this issue so that I can move on and deploy a bunch of servers via Docker.  I've so far being unsuccessful.

Earlier today I installed Hyper-V.  Simple enough (and throughout my attempts to get it to work I've uninstalled, reinstalled, purged and re-imaged OS backups countless times).  Then I threw Docker into the mix.  Docker complained with the noted error, so during my attempts to resolve it I ended up where I started: a recent OS image and a fresh install of Hyper-V.

When I attempt to use Hyper-V Manager, the issue is highlighted further because most entries within Hyper-V Settings, under Server, such as Virtual Hard Disks, Virtual Machines, NUMA Spanning and Enchanced Session Mode Policy list "Load Failed" as the only item, with the error "There was an error loading the data for this setting." explaining how Hyper-V encountered an error trying to access an object...

The same goes with the Global Network Settings, under Mac Address Range, where "Load Failed" rears its ugly head again.  To cap it all, the Hyper-V Quick Create app throws the error the moment it starts.

No matter what I have attempted today, I simply cannot get Hyper-V working, and I've tried every solution Google has thrown at me.  Therefore I'd be eternally greatful for any assistance resolving the issue.

Thanks.






avhdx leftover from backup tool - how to merge or delete those files?

$
0
0

I've dome some tests with a 3rd party backup tool for Hyper-V. Unfortunately it does not work as expected. I removed it from the system. 

Now I have a differential avhdx and corresponding *vhdx.mrt and *vhdx.rct files sitting around, for each virtual disk. 

The avhdx is not visible in the hyper-v GUI as a snapshot (I did not create snapshots), and alsoGet-VMSnapshot will not show it at all (thus Remove-VMSnapshot won't work). I only see them in the filesystem.

That would not bother me so much, but a side effect is that normal snapshots do seem to fail now.

I tried to merge the avhdx into the main vhdx with "manage disk" in the hyper-v GUI, but theID is not matching and I am not sure if and how to proceed. The GUI warns that there might be data loss. 

How do I get rid of the .avhdx, .mrt and .rct files? As I mentioned, the usual way to merge snapshots does not seem to work. 

Any pointer is very welcome. 

Thanks

Dan


Hyper-v could not create virtual switch on window server 2019

$
0
0

hi,

I try to create a External Virtual switch on hyper-v virtual switch manager.

But it failed and shows as below, any idea?

[Window Title]
Virtual Switch Manager for DC

[Main Instruction]
Error applying Virtual Switch Properties changes

[Content]
Adding ports to the switch 'New Virtual Switch' failed.

The operation failed because the file was not found.

[Close]

Hyper-v unable to create checkpoint

$
0
0

Issue : Unable to create checkpoints on three vm's in Hyper-V manager and backups are failing with error: Failed to create VM recovery snapshot.​

OS Name:                   Microsoft Windows Server 2019 Standard​

OS Version:                10.0.17763 N/A Build 17763​
Backup solution : Veeam Backup​
Antivirus: Symantec​

VSS related services are working fine​

Tried creating checkpoint on one of the VM,however getting error "the operation cant be performed while the object is in use"​

checked the event viewer and could see event ID's 3280,3350,18012,18014​
checked for any shadow copies through the vssadmin list shadows command however could not see shadow copy configured​

configured and enabled shadow copy on the vm

The backup jobs for all three vm's are getting stored on the D drive (Backup Storage) of backup server

Restarted the vm but even after restart ,unable to create checkpoint from hyper-v manager​

Could you please check if this is a bug or any known issue and help me 


swathi

Event ID 12240 - Cannot open VM attachment - Veeam Backup

$
0
0

Hi all, I apologies for the lengthy post, and any irrelevant information. I'm trying to provide as much information as I can.

I have been asked to log this ticket by Veeam, as they determine it is a Microsoft issue.

We use Veeam Backup and Replication to backup all of our Hyper-V guests.

We also use VeeamONE to report on issues.

Our environment is:

 - a standalone physical server running our Veeam software

 - two clustered servers with Fibre Channel storage (Cluster Shared Volumes) hosting our VMs (approx. 20 guests VMs)

For the most part, this all runs fine. Occasionally, however, VeeamONE reports the following error:

Description
Fired by event: 12240 Microsoft-Windows-Hyper-V-VMMS
Event description: '': Attachment 'C:\ClusterStorage\ServerName\Virtual Hard Disks\diskname_E40FF910-B414-4DFA-BDC3-BE02ACDCF27A.avhdx' not found. Error: 'The system cannot find the file specified.' (0x80070002). (Virtual machine ID )
Initiated by: DOMAIN\BackupAdmin
Knowledge
Cannot open VM attachment

It happens to random servers, on random dates, so no pattern to the issue.

The AVHDX files that is "not found" is the snapshot file created by Veeam during the Backup process.

Veeam uses an API to take the snapshot, then another one to remove it when the backup is complete.

So, in effect, the error is correct, as the file no longer exists, but why is it being logged, if the API is removing the snapshot correctly, should Windows be able to detect this and not log the error?

My main concern is that this then logs an error with VeeamONE, and makes our reports and KPIs look bad, with all these false reports.

I know that the easy solution is to turn off that Alert, but I would like to catch legitimate issues, not the false positives.

If relevant:

 - All servers fully patched and restarted

 - Integration services are up to date on most servers (issue happens regardless of version)

Again, I apologies for lengthy post. In summary, my question is: Why does Windows/Hyper-V log that error for a temporary Snapshot disk? Is it a bug in the API call? Is Veeam initiating the API call incorrectly?

How to interpret Measure-VM cmdlet output

$
0
0

Hi guys, 

I went through a number of articles related to the resource metering and VM-Measure cmdlet but still struggling to interpret an output related to disk usage.

For example the one below: 

AggregatedAverageNormalizedIOPS is possibly just an average IOPS.

But what about the other three objects? I mean what those values mean in front of each of them?

Thanks. 

hyper-v

$
0
0
I have two standalone physical servers with hyper-v role. Each of the have different cpu, disk and memory specs and size. I want to implement hyper-v failover clustering and use the disk of hyperv 1 since it has large capacity disk. Could this setup be possible or do I need a 3rd server to act as the storage?

Multiple VlanIDs on one Networkcard with Powershell for Hyper-V VMs

$
0
0
Hi Guys,

i need help with with an problem. We want to use multiple vlanids on one vm networkcard. Yes i know, that we can add more networkcards at the Hyper-V Manager, but we got to the limit of 8 virtuell networkcards and we can´t add more. So we want to define more vlanids to one networkcard, to avoid the limit of the networkcards.

We used the Powershell command

Get-VMNetworkAdapter -VMName Redmond | Set-VMNetworkAdapterVlan -VMName Redmond -Trunk -AllowedVlanIdList 1-100 -NativeVlanId 10

of course with different values.

It doesn´t work...

We see that the networkcard ist changed to the mode trunk and the right VlanList, but it seems that no connection is established.  The hardwareswitch is configurated to use these vlanid´s.

Did we do something wrong? Is there a KB where it explaned, how to use this command right?

If we use the command set-vmnetworkadaptervlan, all networkcards with the same name will changed, even if we use an pipe before, to specify a specific networkcard.

oh-vm    Network Adapter      Trunk  899,180,925
oh-vm    Network Adapter      Trunk  899,180,925

I hope you can help us,


Thanks

Dennis

Trying to use GTX Nvidia card on a Linux VM through Hyper-V

$
0
0
Trying to use GTX Nvidia card on a Linux VM through Hyper-V and am aware of the vGPU support for Pascal GPUs (consumer GPUs) is not there. There must be a way to do this like the option of using through (a Linux host machine). I would prefer to use Hyper-V  instead of switching back to linux host. Thanks.

Server 2012 R2 Hyper-V with many .avhdx files

$
0
0

Hi everyone,

I have 2012 R2 Hyper V server with 3 VMs running. Everything works great, but for one machine which is Endian Firewall in Virtual hard disks folder I have multiple .avhdx files. These .avhdx filese are created everyday in the time when Windows backup starts and are not deleted. In Hyper-V manager I don't have Checkpoints for that machine, and I'm slowly running out of space on this server. This is production server and I have 100 (for 100 days) .avhdx files for that machine. That particular machine was Shutdowned in meantime but obviously files were not merged/deleted. 

How can I delete that avhdx files?

Thank you

greets
Dario

VM Commands failing when omitting -ComputerName localhost

$
0
0

Pretty much what the title describes. 

Commands like Get-VMHost fail when just using "Get-VMHost", but are successful when using "Get-VMHost -ComputerName -localhost". However, the documentation of these functions say that omitting the -ComputerName parameter should mean using localhost by default.

This is apparently not the case on my machine. 

What can I do to fix this? The program I use (Docker) is using these commands without the -ComputerName parameter, and hence not working.

Hoping to hear from you, thanks in advance!

HPE Gen9 and Gen10 mix in cluster

$
0
0

Hi,

I currently have 2-nodes Hyper-V cluster running on HPE Gen9 hardware. We have 2 new HPE Gen10 servers - can I join these 2 Gen10 server to the existing Gen9 cluster? All 4 servers are running the same Windows Server 2016 Standard version and build.

Thank you

Microsoft Hyper-V 2016 Server

$
0
0
I build a vm in windows Hyper-v server 2016,but it can't receive packet from host after reboot it .It can work well after i logout and reload.
Viewing all 19461 articles
Browse latest View live