How to convert a remote server into a local test-server running in a VM

Since we have a server somewhere in the internet, it would be handy to have a replication of that running in a VM as test-server. Here is a step by step tutorial how to make it possible."
95ole, Tom