def find_guest(self, guest_name):
     remote_ip = self.confs._confs["installation_host_ip"]
     username = self.confs._confs["host_username"]
     password = self.confs._confs["host_password"]
     # virsh_command = VirshCommand(remote_ip, username, password)
     virsh_command = VirshCommand(remote_ip, username, password)
     self.target_ip = virsh_command.find_vm("AUTO-%s" % guest_name)
Example #2
0
 def find_guest(self, guest_name):
     remote_ip = self.confs._confs["installation_host_ip"]
     username = self.confs._confs["host_username"]
     password = self.confs._confs["host_password"]
     # virsh_command = VirshCommand(remote_ip, username, password)
     virsh_command = VirshCommand(remote_ip, username, password)
     self.target_ip = virsh_command.find_vm("AUTO-%s" % guest_name)
Example #3
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
 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
 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
 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