fix bugs of libvirt xml
add network function
remove sleep function