setHost("192.168.3.181", 22, "/data/libvirt/"); // Use the username 'root' and the password '123456' login to server. $Libvirt->connect("root", "123456"); // Print the virtual machine centos's config file. echo $Libvirt->dumpxml("centos");