예제 #1
0
 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 install_guest(self, host_ip, host_user, host_passwd, guest_name, guest_compose=default_rhel_build):
     virsh_command = VirshCommand(host_ip, host_user, host_passwd)
     guest_ip, guest_user, guest_passwd = virsh_command.create_vm(guest_name, guest_compose)
     return guest_ip, guest_user, guest_passwd