def clone_sam_guest(self, host_ip, host_user, host_passwd, guest_name):
     virsh_command = VirshCommand(host_ip, host_user, host_passwd)
     virsh_command.shutdown_vm(guest_name)
     virsh_command.clone_vm(guest_name, guest_name + "-virt-who")
     virsh_command.clone_vm(guest_name, guest_name + "-intergration")
     sam_virtwho_ip = virsh_command.start_vm(guest_name + "-virt-who")
     sam_intergration_ip = virsh_command.start_vm(guest_name + "-intergration")
     print sam_virtwho_ip, sam_intergration_ip
예제 #2
0
 def clone_sam_guest(self, guest_name):
     virsh_command = VirshCommand()
     virsh_command.shutdown_vm(guest_name)
     virsh_command.clone_vm(guest_name, guest_name + "-virt-who")
     virsh_command.clone_vm(guest_name, guest_name + "-intergration")
     sam_virtwho_ip = virsh_command.start_vm(guest_name + "-virt-who")
     sam_intergration_ip = virsh_command.start_vm(guest_name +
                                                  "-intergration")
     print sam_virtwho_ip, sam_intergration_ip