My Windows XP Mode application (Navision) only connects to an in-house database server. Connection through TCP/IP. So XP Mode doesn't connect to the internet and have no virus application running. XP Mode runs on all Windows 7 Pro machines which use(d) Avast Security.
The hardware visualisation in Avast is disabled, so XP Mode functions, only a couple of times each day XP loses the connection to the database server.
I installed VMWare Workstation on a couple of machines. On those machines I have to enable hardware visualisation and everything works fine.
But I don't want to pay for 15 to 20 licenses for VMWare, XP mode is for free.
On a couple of other machines I deleted Avast and replaced it with Avira Free. All problems resolved.
So I believe the problem is caused by Avast.
I still have 20 licenses till 2019.
To get everything back in order is to buy 20 licenses for Avira, but on the other hand that would be stupid.