Lines Matching refs:_config

102         self._config = DEFAULT_CONFIG.copy()
106 self._config['memory'] = f"{mem}G"
109 self._config.update(config)
117 self._config['ssh_key'] = \
118 open(self._config['ssh_key_file']).read().rstrip()
119 self._config['ssh_pub_key'] = \
120 open(self._config['ssh_pub_key_file']).read().rstrip()
122 open(self._ssh_tmp_key_file, "w").write(self._config['ssh_key'])
127 "w").write(self._config['ssh_pub_key'])
143 "-nodefaults", "-m", self._config['memory'],
144 "-cpu", self._config['cpu'],
146 netdev.format(self._config['ssh_port']) +
148 (",dns=" + self._config['dns'] if self._config['dns'] else ""),
162 if self._config['qemu_args'] != None:
163 qemu_args = self._config['qemu_args']
169 self._config['extra_args'] = []
176 self._config['extra_args'].append(arg)
180 if 'ssh_key_file' not in self._config or\
181 not os.path.exists(self._config['ssh_key_file']):
183 if 'ssh_pub_key_file' not in self._config or\
184 not os.path.exists(self._config['ssh_pub_key_file']):
236 "ConnectTimeout={}".format(self._config["ssh_timeout"]),
254 return self._ssh_do(self._config["guest_user"], cmd, False)
257 return self._ssh_do(self._config["root_user"], cmd, False)
260 self._ssh_do(self._config["guest_user"], cmd, True)
263 self._ssh_do(self._config["root_user"], cmd, True)
287 boot_dev = BOOT_DEVICE[self._config['boot_dev_type']]
290 args += self._data_args + extra_args + self._config['extra_args']
300 guest.set_machine(self._config['machine'])
415 % self._config['ssh_pub_key'].rstrip()
476 print("guest user:pw {}:{}".format(self._config['guest_user'],
477 self._config['guest_pass']))
481 " root:%s\n" % self._config['root_pass'],
482 " %s:%s\n" % (self._config['guest_user'],
483 self._config['guest_pass']),
486 " - name: %s\n" % self._config['guest_user'],
489 " - %s\n" % self._config['ssh_pub_key'],
492 " - %s\n" % self._config['ssh_pub_key'],