Abstract:The network security is extremely important.Carrying out the security testing to the network's Trojan horse and the virus, building a safe test system is also extremely important.This paper discusses how to use the virtual machine technology to construct the security the Trojan horse and the virus test system.