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

Hyperv is not in a state to accept replication on the Replica server when using existing VM to start initial replication

$
0
0

I tried to use "Use an existing virtual machine on the Replica server as an initial copy". I exported VM on primary and exported the same VM on replica keeping the same GUID. To make sure it has the same GUID I used powershell to confirm and that part looks good.

When I wanted to enable replication using mentioned method, i got an error "Hyperv is not in a state to accept replication on the Replica server when using existing VM to start initial replication". 

I have replication working on primary and replica server using certificates for a long time that means replication is properly configured and it is working from primary to replica and vice versa. 

I tried to use the same method using another primary and replica server but got the same error.

We have 2012r2 server on both primary and replica.

Appreciate any help. 



Live migration error: Mirror operation failed. General access denied error. 0x80070005

$
0
0

I keep getting an error when performing a live migration from one host to another. There were 5 VMs on the source host. I moved 4 of them to the destination host without issue. For some reason, the last one keeps failing. It will perform the migration, and once it gets to 100%, it errors out and fails. After the failure, the VM reboots on the source host and comes back up normally (hard reset). There is no VM on the destination host, but there is a vhdx file in the proper location that is the same size as the source vhdx file.

The only difference that I can tell between the machines is that the one that is failing is 650GB (takes around 8 hours to migrate). The next highest is 350GB (no issues).

Both hosts on the same domain. Both hosts are running Hyper-V Server 2012 R2 (not Windows Server).

Both hosts are configured with the default options and locations (mostly).

Both hosts using local storage (no NAS/SAN/shared storage).

File permissions of source vhdx look identical to all other vhdx files on my other hosts.

I have 15 other hosts set up similarly on the same domain/network. I've done hundreds of live migrations between them, and never had an issue (up until this one).

Things I've tried:

1) Migrating to a different destination host. Same issue.

2) Shutting down the VM. Deleting the VM. Creating a new VM. Attaching the same vhdx file. Same issue.

3) Migrating a different VM from the destination host to the source host, then back again. Works just fine... The issue seems to be only with this VM and/or vhdx file.

Full error:
There was an error during move operation.

Virtual machine migration operation failed at migration source.

Mirror operation failed.

Virtual machine migration operation for 'VM-NAME' failed at migration source 'SOURCE-HOST'.

Migration did not succeed. Mirror operation failed for the source VHD file 'C:\users\public\Documents\hyper-v\Virtual hard disks\VM-NAME.VHDX' to the destination file '\\DESTINATION-HOST\SOURCE-HOST.1856233294$\C\users\public\Do...\Virtual hard disks\VM-NAME.VHDX': 'General access denied error' ('0x80070005').

Thoughts on possible issues:

1) Is it possible that the permissions/kerberos tickets expire due to the long migration time?

2) Is there an issue with this path: \\DESTINATION-HOST\SOURCE-HOST.1856233294$\C\users\public\Do...\Virtual hard disks\VM-NAME.VHDX' ?   The destination path should be \\DESTINATION-HOST\c$\users\public\documents\hyper-v\virtual hard disks\VM-NAME.VHDX . I am not sure if this is some temporary share created by hyper-v, or if this is where the error is occurring. The file seems to transfer to the correct location, but maybe the final commands after it reaches 100% are using the wrong path so it fails?

3) Some other issue? Any ideas would be appreciated. If you know of anywhere I can look to get more details (logs), please let me know. If you need what is in the logs, please be specific (as there are many logs and places to look).

I wish I could call Microsoft so they could help me with this bug, but unfortunately, there is noone to call.

dismount graphics card dda

$
0
0

i have one Tesla 4 card installed in a new dell r740 preloaded w/ server 2019.  here are the results from the surveyDDA.ps1

NVIDIA Tesla T4
Express Endpoint -- more secure.
    And its interrupts are message-based, assignment can work.
    And it requires at least: 304 MB of MMIO gap space
PCIROOT(85)#PCI(0200)#PCI(0000)

i'm not sure if i'm putting in the wrong info for the location path for the dismount command.

Dismount-VMHostAssignableDevice -force -LocationPath #PCI(0200)
that command fails!  Is there some syntax i have wrong, or am i just wrong on how i'm going about it.  


IT guy

Troubleshooting Hyper V

$
0
0

Hi quick query

Looking to troubleshoot a situation from a few weeks ago

Customer has a failover Hyper V setup, issue was connection to second HyperV went completely 

From the event log I am seeing a lot of 1254 failover cluster errors

I did a filter and these happen 3 days before this incident happened

Whats best way to troubleshoot this and do a RCA, is 1254 serious enough to make this happen what causes 1254 errors?

Thanks in advance

Hyper-V Old VM folders cannot be deleted

$
0
0
Hello,
 
In the process of upgrading VMs through the different version of Hyper-V, including some failures related to dumping a snapshot and the guest just dissappearing from the console- I now have some orphaned VM guest folders and snapshot xml files that I cannot delete.

No Antivirus on the system active, reboot- and still the files are locked and reported as in use.

I have tried taking ownership- rewriting the NTFS permissions- even though they looked fine- but still some folders and files just ca't be removed.

Has anyone else had this issue or something similar? I do know for sure that none of the files in the folders are in use by existing virtual machines and when I pull up resource manager and share and storage manager there are no open files or sessions that point to these folders and files that just wont go away.

any help would be great.

Thanks,
Omar

Problem with Enhanced Session Connection

$
0
0

I'm getting this error when I try to connect to Ubuntu through Hyper-V:

Failover Hyper-V without Shared Storage

$
0
0

Hi Guys

            I have two brand new servers with 6 drives. 2 in Mirror, 3 Raid 5 with 1 hot spare. Both servers are identical and running Windows 2019 Datacenter. Both servers are running Hyper-V. I do not have any NAS/SAN devices being shared between these servers. I will call these servers server1 and server2 (for this example)

Is there a way to make it so that if a virtual machine on server1 dies and shuts off the replicated virtual machine on server2 will boot up automatically? The whole purpose of these servers is for virtual machine failover, I would like to do it per VM versus entire physical server. I can also format the Hyper-V partition since these servers are new and not running anything just yet.

Is Storage Spaces Direct (S2D) the answer I'm looking for? If so, how? Looks like Clustering needs as a requirement shared disks (SAN/NAS).

What do you guys think?

Thank You

Eddie

 

Clone a Hyper-V virtual server on the same host ?

$
0
0

Hi there,

tomorrow i have to clone a Virtual Server on the same Hyper-V host.

Can you please tell me what should i be warned about before i make the clone ?

Does Hyper-V change the SID of the cloned virtual server automatically when you use the clone feature ?

Or should i change the server configuration after the clone ?

Thank you.



How to Clone VMs in Hyper-V

$
0
0

 

I was playing around with Hyper-V but I didn't see an option to clone VMs.

 

Is there any way to clone VMs in Hyper-V

Ubuntu 18.04.3 LTS Not Working in Enhanced Mode

$
0
0

First, my hardware:  x64 Dell XPS 8930 with an i9-9900 (BIOS 1.1.10 (10/31/19)) with 32GB RAM, 4TB internal storage, 8GB nVidia 2770.  OS: Windows 10 Pro, build 18362

Ran Hyper-V Quick Create and Ubuntu 18.04.3 LTS shows in 'Select an operating system' so selected it.

Selected Enhanced Session (screen was aqua) - Session is Xorg (also tried X11rdp and sesman-any with same result)

Waited...

Received error - was able to connect sesman and login but when started connecting - failed ("some problem"). If I switch to Basic Session, no problems but cannot connect to Windows drives and that's critical as all of my scripts, databases, configurations are in a Windows folder.  I could blow away Hyper-V and run VirtualBox but would rather use Hyper-V if it works.  HELP!!!

In advance, thank you!

Nick.

Windows server 2012 hyper-V - disable the failover cluster

$
0
0

Hello everyone,

Is there any way to disable the failover cluster on the hyper V windows server 2012?

I want to disable it in a virtual machine or if possible in a general way in the entire hyper-v cluster

Thanks in advanced

Manuel


Warm regards MeVs

[New Admin Question] Remote into Server

$
0
0

I downloaded and installed the Core Hyper-V 2019 (where you only use PowerShell). I cannot for the life of me figure out how to "remote" into the VM after starting it. I've used the Virtual Manager in Windows 10 Pro before  where you can click"CONNECT" and I'm sure there is another term that I don't know but I've tried Googling my eyes out trying to figure this out.

In other news, I've tried to connect my Hyper-V Management Console from my Windows 10 Pro box to simply use the connect button, but I get an error: "The operation on computer "HyperServer" failed: The WinRM client cannot process the request. A computer policy does not allow the delegation of the user credentials to the target computer because the computer is not trusted. The identity of the target computer can be verified if you configure the WSMAN service to use a valid certificate using the following command: winrm set winrm/config/service @{CertificateThumbprint"<thumbprint>"} OR you can check the event viewer for an event that specifies that the following SPN could not be created: WSMAN/<computerFQDN>. If you find this event, you can manually create the SPN using setspn.exe. if the SPN exists, but CredSSP cannot use Kerberos to validate the identity of the target computer and you still want to allow the delegation of the user credentials to the target computer, use gpedit.msc and look at the following policy: Computer Configuration > Administrative Templates > System > Credentials Delegation > Allow Fresh Credentials with NTLM-Only Server Authentication. Verify that it is enabled and configured with an SPN appropriate for the target Computer. For example, for a target computer name "myserver.domain.com", the SPN can be one of the following: WSMAN/myserver.domain.com or WSMAN/*.doman.com. Try the request again after these changes.

Here is all the items I've accomplished via both Client and Server:

// Server
[X] Enable-PSRemoting -Force
[X] Enable-WSManCredSSP -Role Server
[X] Set-Item WSMan:\localhost\Client\TrustedHosts -Value "PC-J86"
[X] Set-NetConnectionProfile -Name "Network" -NetworkCategory Private

// Client
[X] Enable-PSRemoting -Force
[X] Enable-WSManCredSSP -Role Client -DelegateComputer "HyperServer"

[X] Start-Service -Name winrm
[X] Set-Item WSMan:\localhost\Client\TrustedHosts -Value "HyperServer"
[X] Stop-Service -Name winrm

[X] Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Tools-All -All

[X] gpedit.msc > Computer Configuration > Administrative Templates > System > Credentials Delegation > Allow delegating fresh credentials with NTLM-Only server authentication
 > Enabled
 > Show > WSMAN/HyperServer

Thanks in advance and any help would be awesome.

Virtual Machine failed to initialize on all VMs

$
0
0

I have a client that filed to tell me their physical domain controller had two drives fail. The two domain controllers on their Hyper-V Core system continued to run, so they thought it wasn't important. Anyway, the VMs decided to do updates and both rebooted last night, possibly the Hyper-V server rebooted as well. Anyway, when they go in this morning no one could authenticate, get DHCP leases or access either the Internet or their intranet. It doesn't look like I'll be able to get their physical DC up any time soon, but the Hyper-V Core host is running fine. None of the four VMs on that server will start though, they all respond to a Start-VM with a "Failed to Initialize" error. When I request a dump from the event handler I see this, duplicated for each VM:

Get-WinEvent -FilterHashTable @{LogName ="Microsoft-Windows-Hyper-V*"; StartTime = (Get-Date)
.AddMinutes(-10); }


   ProviderName: Microsoft-Windows-Hyper-V-Hypervisor

TimeCreated                     Id LevelDisplayName Message
-----------                     -- ---------------- -------
11/19/2019 4:17:01 PM        16642 Information      Hyper-V successfully deleted a partition (partition 6).
11/19/2019 4:17:01 PM        16641 Information      Hyper-V successfully created a new partition (partition 6).


   ProviderName: Microsoft-Windows-Hyper-V-VMMS

TimeCreated                     Id LevelDisplayName Message
-----------                     -- ---------------- -------
11/19/2019 4:16:55 PM        15120 Error            'SRV-SHU' failed to initialize. (Virtual machine ID 723248F1-6C3...
11/19/2019 4:16:55 PM        14070 Error            Virtual machine 'SRV-SHU' (ID=723248F1-6C33-4BA8-A960-83CE0F157D...
I'm guessing the issue is that the VMs can't get authenticated by a DC since no DCs are running when they try to start. Am I even close? They were down all day today and I'm going to be back on it in the AM, but I'd really like for them to get back running tomorrow.

KB3095308 not installing on HyperV Server 2012

$
0
0

We are having a Dynamic memory issue on one of our VM where it's not increasing automatically on HyperV Host version Microsoft HyperV Server 2012 R2 6.3.9600.  I googles and found an hotfix KB3095308 for this issue but whenever I tried to install it on my hyperV host it gives me the following error:

"Windows Update Standalone Installer, The update is not applicable on your computer."

I downloaded the KB from below link:

https://www.catalog.update.microsoft.com/Search.aspx?q=3095308

Worth mentioning that prereq KB2919355 has already installed on this host.


Please guide me how to install this update to resolve my dynamic memory issue.

how to configure network setting in VM via Hyper-V access internet

$
0
0

Hi,

Please be informed that I enabled Hyper-V in Win 10 PC and create 2 VMs.

May I know how to configure network setting in VM via Hyper-V so that internet. the PC which enable Hyper-V  can access internet already.

Thx


Degraded performance with Core scheduler

$
0
0

Hi.

Since Core scheduler is now the default in WS2019/Hyper-V Server 2019, we're now evaluating the impacts of this change.

I (think I) understand the implications of the Core scheduler, but from our testing, it's severely degrading performance even in scenarios where it (in my opinion) shouldn't.

Testing scenario: Dell PE R740xd with Xeon 6244 Gold (2 CPUs, 8 physical cores, HT enabled), Hyper-V Server 2019 installed with updates up to 2019-11 (since I couldn't install 2019-12 CU on ANY Hyper-V Server 2019 host). Single testing VM running on the host:

 - WS201 Standard, 4 vCPUs, 2-8GB vRAM (dynamic), VM config version 9, HWThreadCountPerCore=0 (ie. SMT enabled, default on 2019)

We're seeing degraded CPU performance in the VM under Core scheduler. I thought that Core scheduler would be limiting VM density (and therefore performance), but only in situations where there are many VMs (vCPUs) running/assigned on the host.

We tested synthetic performance with Passmark PerformanceTest8 and Geekbench5.

Here's a comparison (the only change is the scheduler used, nothing else is modified):

Passmark

Geekbench:

Is anyone else seeing similar behavior? Is this expected?

If this is expected even in a scenario like this (single/few VMs), then we'll be forced to switch to classic scheduler for the time being.

10 minute wait for network after live migration

$
0
0

Hello

I have a three node failover cluster.  Two nodes are local, and connected to the same SAN.  The other node is at a remote location connected to a different SAN that is a mirror of the local SAN, over a 1Gb E-Line connection.

When I live migrate a role between the two local nodes everything is fine.  When I migrate a role from the remote node to a local node, everything is fine.  When I migrate a role from a local node to the remote node, the migration takes the expected amount of time but once the migration is complete, it takes about ten more minutes for the network to come up.

I have disabled encryption on the E-Line for testing purposes and it didn't help.

I can connect to the role via the console while it is in this no network state and Windows says that it is connected to my network but the connection is limited.  I can ping the network adapter but cannot ping the gateway.

Has anyone else seen symptoms like this before?


Hutch

Default Switch failing after windows update

$
0
0

Hi all,

I am running a VM on Hyper-V on my HP Z-Book and has been running fine until I did a Win 10 upgrade. Now when my Pc boots up the Hyper-V default switch continually drops in / out with "Attempting to Authenticate" which seemingly fails, then flicks to a disabled state and dissapears and then just continues to do this.

I have tried all sorts of troubleshooting including uninstalling Hyper-V multiple times, reinstalling my laptop nic drivers multiple times, and performing Network resets. Nothing has fixed it. Sometimes it will also cause my laptop NIC to do the same thing, but if I stop the Hyper-V service my laptop NIC stays connected and doing a network reset fixes it. I am real noob when it comes to network stuff, so any thoughts or help would be greatly appreciated.

thanks heaps

graphics card for an hyper-v RDP server

$
0
0

so i have a tesla t4 card passed though to my vm (all running server 2019) I've installed the nvidia drivers and the vm server see's the card.  However when i try to run an open gl benchmark i keep getting errors like i'm using the old hyper-v graphics card.  Is there somethingi need to do to tell it to run the RDP sessions though the DDA assigned card?

many thanks!


IT guy

The boot loader did not load an operating system.

$
0
0

My VM is installed and running but when I connect, I get the error that it didn't load an OS. "No operating system was loaded. Your virtual machine may be configured incorrectly. Exit and re-configure your VM or click restart to retry the current boot sequence again."

I downloaded a Win XP iso and used it during the initial creation of the VM. In the Firmware setting, the DVD Drive is pointed to the Win XP iso on my host PC's C:\ drive.

I never got the Wizard I've seen described, so I don't know what other configurations were possible.

How can I get up and running?

Side note: I tried 10-15 times to install a VM but always got out of memory messages (failure). Getting this one installed felt like a fluke.

Viewing all 19461 articles
Browse latest View live


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