Delay when opening VM Connect on disconnected systems

When I am building Hyper-V systems for big public demonstrations – I often build them with zero Internet connectivity.  The reason why I do this is because I never know what level of internet connection I am going to have as I travel around the world showing off cool new features.

For a while now I have struggled with the fact that when I open the VM Connect window on a virtual machine – and the host as no internet connection – it can take a really long time.  30 seconds in fact.  Well, I now know the reason for this – and I know how to work around it.

Short answer – it is all to do with certificates.

Long answer: when ever you connect to a virtual machine using the VM Connect window – we secure the connection using a certificate.  You can manually configure your own certificate (details here: https://technet.microsoft.com/en-us/library/ff935311(v=ws.10).aspx) but for most people you will use the certificate that Hyper-V auto-generates for you.  Ordinarily, when we attempt to use this certificate for the first time – we check with the Microsoft certificate authority to make sure that all the Microsoft root certificates are up to date. However, this fails if the physical computer has no Internet connection.  But we will try for 30 seconds before failing.

Now – at this point in time you might be thinking: “I use Hyper-V on my laptop without Internet connection – and I do not see a delay.  What is Ben talking about?”.  This is a problem that you will only see if your computer has *never* been connected to the Internet.  If you were connected in the past – we will have checked and stored the results in cache.

But if the Hyper-V host has never been connected to the Internet – you will see a 30 second delay each time you open VM Connect.

So what can you do about this?

Well – there are three options:

  • Connect your system to the Internet momentarily and open VM Connect once
  • Create your own certificate (per the article above)
  • Tell Windows to not attempt to update the root certificate by running these commands in PowerShell:


New-Item -Path HKLM:SOFTWAREPoliciesMicrosoftSystemCertificatesAuthRoot
New-ItemProperty -Path HKLM:SOFTWAREPoliciesMicrosoftSystemCertificatesAuthRoot -Name DisableRootAutoUpdate -PropertyType DWord -Value 1 –Force

Note – you are lowering the security of your system with the third option, so you should not do this on a production system, unless you have a method for manually updating root certificates in your environment.

Cheers,
Ben

Couple of 2.5" hdd's and some fans, SSD's added.

Having a sort out and found these drives,

Integral 240gb SSD, £40 INC

Crucial MX300 275GB SSD, brought 4/10/16, £50inc.

HGST 750GB 2.5″ drive, £30inc NOW £25

Samsung 1TB 2.5″ drive £35inc SOLD

Ballistix Smart Tracer DDR3 8 GB : 2 x 4 DIMM 240-pin 1866 MHz / PC3-14900 CL9 (Red and green led) £35 NOW £30 SOLD

Also got some fans for sale

3 x 120mm Glacier cool blue led fans £5 each or all 3 for £13

2 x 120mm Aerocool orange led £6 each or both for £10

Will be…

Couple of 2.5″ hdd’s and some fans, SSD’s added.

EVGA 980Ti nvidia gpu Ek Watercooled, Asus X99 rampage V 5 extreme motherboard, Zalman 1250W PSU

2x EVGA nvidia 980ti’s Classified.
These items are watercooled EVGA 980ti Classfied graphics cards.
You can throw anything at them, they have never gone over 33 degrees Celsius due to my chiller setup. They overclock very easily, but have only been overclocked to benchmark, eitherwise ran as stock playing games like Iracing. Receipt available.

They are £370 each with EK waterblock and back plate or £340 without. UK mainland delivery included.
View attachment 782269

EVGA 980Ti nvidia gpu Ek Watercooled, Asus X99 rampage V 5 extreme motherboard, Zalman 1250W PSU