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

Can't connect more than once

$
0
0

On the 30th of August my machine installed the following updates:

KB4023057
KB4512509
KB4506989
KB4511521

Running Win 10 Pro (64-bit) V10.0.17134, Hyper-V V10.0.17134.1

Since then I have been unable to connect to virtual machines hosted by Hyper-V more than once. In other words I can start a machine and then connect to it (either from within Hyper-V or from an RDP connection on another machine). But after disconnecting from the session I am unable to re-connect.

RDP times out with "This computer can't connect to the remote computer. The two computers couldn't connect in the amount of time allotted."

Hyper-V times out with "Could not connect to the virtual machine. Try to connect again. If the problem persists, contact your system administrator."

The machine is still running. The heartbeat is alive. It's just impossible to connect to it.

Any help gladly received.


HyperV Virtual Machine Files

$
0
0

Hello

Have a server with a Hyperv virtual machine, which accumulates rct and mrt files. I am aware that these are a new addition to Windows Sever 2016 Hyper-V, that allows the tracking of changes between backup operations. I'm concerned that they will be taking up a lot of storage space.

Not sure why these rct and mrt files are being left behind, when should just be left with vhdx files !!!

I noticed that there are no snapshot vhdx files being saved as they should be, instead rct & mrt files are being created !!!

Any help much appreciated.

Hyper-V 2019 - Guest VM's shutdown unexpectedly

$
0
0

Hi,

Since upgrading my Hyper-V servers to Windows Server 2019, including KB4471332 from last night, my guest VM's do not power down on restart of the 2019 host.

I can confirm integration components are as up to date as possible, and each guest is configured to shutdown when the host restarts.

Each guest gets the "Why did I shutdown unexpectedly message".

The even viewer yields the following all within 30 seconds of restarting the host:

Shut down physical computer. Stopping/saving all virtual machines...

'ADFS' failed to perform the 'Shutting Down' operation. The virtual machine is currently performing the following operation: 'Shutting Down'. (Virtual machine ID 0CFDF648-EE9D-4141-9EBD-9A6D911C3442)
'ADFS' failed to shut down. (Virtual machine ID 0CFDF648-EE9D-4141-9EBD-9A6D911C3442)

The Update Orchestrator Service service terminated with the following error:
This operation returned because the timeout period expired.

Failed to restore configuration for port 59229EE2-C880-4BF2-9849-89A21EC17772 (Friendly Name: ) on switch 300C0E17-E123-4182-BE62-AAD1860BE841 (Friendly Name: ), status = Object Name not found..

Everything is configured as it was on the 2016 Hyper-V host.

The message ADFS failed to shut down because it is shutting down seems terribly odd to me.  Of course its shutting down, just need the host to wait. (Yes the registry is set to 120 as the default time for the host....)

Fairly simple to recreate....just spin up a 2019 server, install Hyper-V role, throw in a VM and test.

Any help would be appreciated, but my money is on it being another bug.

Server 2012: Enabling replication hangs

$
0
0

Hello All,

I have setup replication between 2 Hyper-V 2012 server clusters. When enabling the replication of a VM, everything looks fine. The Replica Server is found. All settings are correct and the replica server is reachable over the used tcp port.

When I click finish, I see a progress bar, stating "Enabling Replication..." which never disappears. Only when hitting Alt-F4, the bar disappears, but then I'll get back to the wizard.

It doesn't matter what setting a set for initial replication.

How can I troubleshoot this?


You know you're an engineer when you have no life and can prove it mathematically

Automatically shutdown Clustered Virtual machine

$
0
0

Hello;

I have 1 Cluster composed from two nodes, server-1 and server-2, that are running 2 VM role.

One of this VM are shut down without any reason, and when I look in the event log I see that is the operating system has initiated the shutdown of this virtual machine.

Log Name: Microsoft-Windows-Hyper-V-Worker/Admin

id event : 18508

also, in the event log of  the failover Cluster/operationnel I see the event, saying that the service of the cluster has set the virtual machine in the hors connexion state.

Log Name: Microsoft-Windows-FailoverClustering/Operationnel

id event :  1204

how can i identify the cause of this shutdown ?

thank you for help


Guest VM to HOST serial communication

$
0
0

Short background (sorry if I make it more complicated), We have an app for swiming-tournaments installed on a computer. During a tournament I have a physical timekeeping device connected to my computer on the serial port. On start the device sends the time to my app and when the swimmers finishes it sends the order they touched the wall so we can get the result of each race.

It is quite a lot of cables to set up on each tournament so it is difficult to do workshops to teach new users on the system.
Now a user have created a simulator to mimic the physical device. But to be able to use it I need two computers connected on the serial port. 1st computer running the time-simulator and the second runs the app.

I wonder if it is possible to use HyperV to run the simulator on a virtual machine on my computer and "connect" that virtual machine to the serial port. The VM would then send the time and results to my tournament app and this way I would not need two computers (physical at least).

I have googled and found some threads talking about sending serial communication "from host to vm", but is it possible to do the opposite. Sending serial communication "from vm to host"? 

Since this is for testing and educational purpose I do not care about any potential loss in time that might occure going from vm to host.

Thanks in advance
Anders


hyperv replica

$
0
0

Hi guys,

can someone please advise on how to configure hyper-v for replication between a cluster 2 nodes in mainsite and a standalone hyper-v in the DR site.

Regards,

Replication always fails after a Host reboot

$
0
0

I have Hyper-V setup on 2 * Server 2016 servers.  I have vm replication working over an MPSL WAN.

I've noticed that every time I reboot the Primary server, for Windows updates or whatever, the replication fails with the below error.

If I right click on the VMs from Hyper-V Manager, it appears as if the replication is paused, but clicking "Resume Replication" has no effect.

The only way I can get it going again is to completely remove the VMs on the secondary server, and setup the replication from scratch, which is ridiculous because it then has to copy all the VMs in their entirety which puts a huge strain on the network.

How can I resume the replication, or even better, have it automatically resume after a reboot?


Lose network shares on local lan when Host launches Vm's

$
0
0

I have a win 10 pro system, with network shares in a work-group.

The system is running on wifi.

This system hosts a VM running nextcloud.

When I created the VM and setup the adapter I used the onyl adapter in the system, the wifi and set it to external.

I Am able now to get me WM online and my cloud files hosted but now I lose RDP to the host and I can no longer access the shared files or even ping the IP i set.

Not sure what happened this used to work, then I reset all the network settings to resolve some complication.  I can't seem to get both systems running simultaneously. 

I either have the network shares and rdp working or I have the nextcloud working.

When I create the virtual adapter I notice a bridge connection is created which puts my original physical adapter in a shared state. 

Is there anything obvious that I'm doing wrong?


nambi

Hyper-V no ping between host and guest

$
0
0

hello all,

I'm desperate to find a solution to my problem.

I have set up a virtual machine via Hyper-V on windows server 2016. This uses the external communication possibility as a virtual switch.
The firewall was deactivated on both sides.
However, communication via ping is not possible. (both sides)
What else can I try to do to establish a connection between guest and host?

The IP-Config in the host system is static and the VM is assigned a reserved IP address by dhcp based on the MAC address.

Many thanks for the answers.

FreeBSD 12 doesn't starting after restart VM

$
0
0
I installed Freebsd 12 on Hyper-V 2012 vitrual machine. After hard restarting my hyper-v server (press power button on server) FreeBSD doesn't work, mysql doesn't mount database or system panic messages. 
But, if i stoping all services before restart, then my FreeBSD works fine!
Can you help me? Is it problem with Hyper-V?

FQDN Now Resolves to Internal Switch IP on Host

$
0
0

I am having trouble with DNS resolution using my host's FQDN after creating a internal network for my VMs.

Previously, my FQDN (<computer-name>.<domain>) would resolve to my machine's external IP.  Since creating the internal switch, my FQDN now resolves to that switch's IP (192.168.0.1) when used by the host.  I am wondering where/why the creation of this internal switch is now overriding my FQDN resolution and how I can revert that to previous behavior.  I need the FQDN to resolve as the external IP so that I can use the services running in the VMs from the host itself.  I have tried forcing this resolution in my hosts file with <external IP> <fqdn> but that is also being ignore in lieu of the switch IP, and would also not be the desired solution since my external IP is not static.

All port forwarding and network behavior is working properly apart from the FQDN IP resolution on the host.

Any help would be appreciated!

Hyper-V 2016 VMs stuck 'Creating checkpoint 9%' while starting backups

$
0
0

We have a two clustered W2016 Hyper-V hosts, every couple of days one of the hosts gets stuck when the backup kicks off. In Hyper-V manager the VMs all say 'Creating checkpoint 9%' It's always the same percentage 9%. You can't cancel the operation and the VMMS service refuses to stop, the only way to get out of the mess is to shutdown the VMs, and hard reset the effected node. The backup works for a few days then it all starts again.

The only events I can see on the effected node is:

Event ID: 19060 source: Hyper-V-VMMS

'VMName' failed to perform the 'Creating Checkpoint' operation. The virtual machine is currently performing the following operation: 'Creating Checkpoint'.

Can anybody help please? Cluster validation is clean. Hosts and guests are patched up.

Hyper-V, Huge performance issues

$
0
0

Hi guys, 

We have an environment were we are running D365FO on premises. However we are having performance issues with our setup. Our VMs are located on an overdimensioned Hyper-V host which is idling most of the time, no VM barely ever go beyond 10% CPU. Host has Intel NICS (not Broadcom).  

Everything in the “webpart” is slow/very slow. The problem is not between client and AOS (“webserver”). The problem seems to be between VMs. Even though latency is good and network speed between VMs are good we get a large difference in speed when making queries to the SQL-server. 

If i run the following script pastebin.com/qyQSJ3du which makes a simple count the results are (Batch Request/s average) 

On SQL server 1450 
On VM on same host as SQL 820 

To test, I have set up the same thing on a  host running VMware (worse specced). 

And the results were  

On SQL server 470 

On VM on same host 420 

Furthermore we are being told that similar setups on Hyper-V are getting performance losses in line with the VMware example above NOT 50% :( 

So the question is how can the performance loss be close to 50% on Hyper-V but only 10% on my test setup on VMware....? What am I missing? Any advise is much appreciated. 

Manually apply changes from HRL file

$
0
0

Hi, 

is it somehow possible to copy the Hyper-V Replica Log (HRL) file from sideA to sideB and then manually merge/apply the contained changes to a VHDX?


Upgrade Windows Server 2008 to Windows Server 2019

$
0
0

I have one of my client wishing to upgrade their existing Windows Server 2008 to Windows Server 2019. 

Their situation:

  • Running Domain Controller as a Hyper-V VM in Windows Server 2008.
  • Want to upgrade the Hyper-V and also the Domain Controller to Windows Server 2019. 

I read through the forum that you need to upgrade 2008 -> 2012 -> 2016 -> 2019 but my concern is the hyper-v. Will that have any effect on the VM running in Hyper-V? 

If upgrading the hyper-v host to Windows Server 2019 is successful and the domain controller is running properly after upgrade. i can just setup a brand new Windows Server 2019 VM and replicate the old DC.

Wishing to hear from all your idea regarding this situation. 

Windows 2019 - Set-VMHost : Failed to modify service settings.

$
0
0

I have four Hyper-V 2019 hosts, I normally set the default virtual hard disk path to the first CSV, however these all give this error when trying to set the path, has anyone seen this?

It the same in the GUI and i'm running PoSh as administrator and the path does exist.

PS C:\> Set-VMHost -VirtualHarddiskPath 'C:\ClusterStorage\CSV1'
Set-VMHost : Failed to modify service settings.
The default virtual hard disk path cannot be changed to 'C:\ClusterStorage\CSV1': One or more arguments are invalid (0x80070057) Ensure the path is valid and the
directory exists. If the directory is remote, ensure that it is properly configured for sharing, and that the current user and computer accounts have read/write access.
At line:1 char:1
+ Set-VMHost -VirtualHarddiskPath 'C:\ClusterStorage\CSV1'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Set-VMHost], VirtualizationException
    + FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.SetVMHost

Questions on Registry Shutdown Timeout vs VM Automatic Stop settings

$
0
0

Hi all,

1) May I ask between the GPO "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\Shutdown Timeout" and VM Automatic Stop settings, which will overwrite the other ? 

2) Can I use registry to change the VM Automatic Start & Stop settings across all Hyper-V VMs ? I doubt it's likely because the VM needs to be shutdown.

3) Will the VM start by itself if I were to use the registry to set shutdown and the VM settings for Automatic Start Action is "Automatically start if it was running when the service stopped" ?

Harddisk needs to be checked

$
0
0

Hi,

Suddenly, one of my Windows 2012 R2 VMs has started showing the message "One of your hard disks needs to be checked for consistency". I am currently skipping the check. How can i check where is the problem as this is a virtual machine and the attached VHDs are SAN hard disks?

Thanks.

Hyper-V Internal and External Access

$
0
0

Hi all,

A note before we start: I'm aware that using my laptop is far from ideal, this is purely for experience.

I'm really new and inexperienced with Hyper-V (any virtualization to be honest), so it may be best to do a little explaining about my "environment" and what  I wish to achieve, and then get some help on achieving it, if at all possible.

I'm running Windows 10 Pro on one of my laptops (no ethernet, WiFi only). It's configured with a static IP (set in router config) and has Hyper-V Installed.

I want to create a VM (Server 2016 Core) to run a development web server (XAMPP) which can both access the internet, and be accessed by my laptop (the host).

Further to this, I also want the VM to be on the same subnet as my laptop so I can configure port forwarding (temporarily, obviously) to redirect 80 and 443 traffic to it.

My router is atrocious and only allows me to forward to a device that is currently on the network, and can only pick up devices on the same subnet as itself. (192.168.1.1)

I have created an external switch so that the VM has internet access, and I have statically assigned the IP address to 192.168.1.242. - So far, so good.



I fired up the VM and sure enough, as expected it gained an IP address on the same subnet as the host and has internet access as required. - Still looking good.

Next I tried to ping the host, and vice versa. Alas, fails every time. I try telnet too from the host to the VM (using ports that are open) and this fails too.

"Okay" I tell myself. "I'll just create an internal switch, too, and share the connection External -> Internal, allowing access to both." -Nope, Hyper-V has other ideas because this doesn't work.

My question is this: Can I create a switch/set something up that will allow me to:

A) Access the internet on the host, and on the VM

B) Access the host, vice versa (RDP, Ping, etc)

C) Remain on the same subnet as the host

Any help or advice would be greatly appreciated.

Viewing all 19461 articles
Browse latest View live


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