Microsoft Windows Server

Turning Firewall Off On Windows Hyper-V Server 2012

I’ve been working a lot with Windows Hyper-V Server 2012 and VEEAM Backup & Recovery software.

One of the many features I like about VEEAM is the ability to restore backups of my Virtual Machines to other hosts. I operate in a pretty small environment compared to others so I’d assume it would be a little quicker to move large amounts of data across my network. I found that restoring just a single VM to another Hyper-V 2012 Server takes a bit longer than it does to back it up which is about 30 minutes.

So, I’ve been looking for ways to make the process quicker. There’s no one answer, only things to try.

In my experience when moving data from one machine to another, if you disable the firewalls, you can move a large amount of data in a matter of minutes.

If you’d like to turn off Windows Firewall on your Windows Hyper-V 2012 Server, follow these steps:

Login to your Hyper-V server. I do this remotely through RDP.

From the command prompt, enter Powershell.

Once in PowerShell, enter the following command:

netsh advfirewall set allprofiles state off

Hyper-V_Serv_disable_firewa

Click To View Larger

 

You may also try this:

netsh interface tcp set global autotuninglevel=disabled

If you don’t notice a difference, change that back by sending this command:

netsh interface tcp set global autotuninglevel=normal

Restarting is not required for this.

 

You can also try disabling TCP offloading (described here) by adding the following registry keys…

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

Value = DisableTaskOffload
Type = DWORD
Data = 1

Value = EnableTCPChimney
Type = DWORD
Data = 0

Value = EnableTCPA
Type = DWORD
Data = 0

Value = EnableRSS
Type = DWORD
Data = 0

Restart your server and check to see if all transfers are up to speed.

Sometimes these performance issues only occur with certain NIC models in machines running Server 2008 or Windows 7 that’s transferring with a machine running Server 2003 or Windows XP.

These instructions are not limited to Hyper-V Server 2012. They apply to Server Core in general.