Lines Matching refs:virt_utils
10 import virt_utils, virt_vm, virt_test_setup, kvm_monitor, aexpect
394 qemu_binary = virt_utils.get_path(root_dir, params.get("qemu_binary",
474 tftp = virt_utils.get_path(root_dir, tftp)
509 qemu_cmd += add_cdrom(help, virt_utils.get_path(root_dir, iso),
517 floppy = virt_utils.get_path(root_dir, floppy)
522 tftp = virt_utils.get_path(root_dir, tftp)
531 kernel = virt_utils.get_path(root_dir, kernel)
540 initrd = virt_utils.get_path(root_dir, initrd)
639 iso = virt_utils.get_path(root_dir, iso)
676 host_ports = virt_utils.find_free_ports(5000, 6000, len(redir_names))
688 self.netdev_id.append(virt_utils.generate_random_id())
689 self.device_id.append(virt_utils.generate_random_id())
694 tapfd = virt_utils.open_tap("/dev/net/tun", ifname)
695 virt_utils.add_to_bridge(ifname, brname)
696 virt_utils.bring_up_ifname(ifname)
702 self.vnc_port = virt_utils.find_free_port(5900, 6100)
706 self.spice_port = virt_utils.find_free_port(8000, 8100)
722 virt_utils.set_mac_address(self.instance, vlan, mac)
724 virt_utils.generate_mac_address(self.instance, vlan)
734 self.pci_assignable = virt_utils.PciAssignable(
741 self.pci_assignable = virt_utils.PciAssignable(
747 self.pci_assignable = virt_utils.PciAssignable(
769 self.migration_port = virt_utils.find_free_port(5200, 6000)
775 self.migration_port = virt_utils.find_free_port(5200, 6000)
847 output_func=virt_utils.log_line,
881 except (virt_utils.LoginError, virt_vm.VMError), e:
889 if virt_utils.wait_for(self.is_dead, 60, 1, 1):
904 if virt_utils.wait_for(self.is_dead, 5, 0.5, 0.5):
911 virt_utils.kill_process_tree(self.process.get_pid(), 9)
913 if virt_utils.wait_for(self.is_dead, 5, 0.5, 0.5):
1002 if not virt_utils.verify_ip_address_ownership(ip, macs):
1071 virt_utils.get_mac_address(self.instance, nic_index))
1083 virt_utils.free_mac_address(self.instance, nic_index)
1188 if not virt_utils.wait_for(mig_finished, timeout, 2, 2,
1225 if not virt_utils.wait_for(mig_cancelled, 60, 2, 2,
1324 if not virt_utils.wait_for(lambda: