Lines Matching full:os

14 import os
35 SSH_KEY_FILE = os.path.join(os.path.dirname(__file__),
37 SSH_PUB_KEY_FILE = os.path.join(os.path.dirname(__file__),
111 self._tmpdir = os.path.realpath(tempfile.mkdtemp(prefix="vm-test-",
121 self._ssh_tmp_key_file = os.path.join(self._tmpdir, "id_rsa")
125 self._ssh_tmp_pub_key_file = os.path.join(self._tmpdir, "id_rsa.pub")
133 os.path.join(os.path.expanduser("~/.cache/qemu-vm"),
136 self._devnull = open(os.devnull, "w")
181 not os.path.exists(self._config['ssh_key_file']):
184 not os.path.exists(self._config['ssh_pub_key_file']):
217 cache_dir = os.path.expanduser("~/.cache/qemu-vm/download")
218 if not os.path.exists(cache_dir):
219 os.makedirs(cache_dir)
220 fname = os.path.join(cache_dir,
222 if os.path.exists(fname) and check_sha256sum(fname) and check_sha512sum(fname):
227 os.rename(fname + ".download", fname)
234 "-o", "UserKnownHostsFile=" + os.devnull,
269 cmd = [os.environ.get("QEMU_IMG", "qemu-img")]
275 tarfile = os.path.join(self._tmpdir, name + ".tar")
327 self.console_raw_path = os.path.join(vm._temp_dir,
470 mdata = open(os.path.join(cidir, "meta-data"), "w")
475 udata = open(os.path.join(cidir, "user-data"), "w")
494 proxy = os.environ.get("http_proxy")
505 return os.path.join(cidir, "cloud-init.iso")
510 json_path = os.path.join(
511 os.path.dirname(__file__), "generated", self.name + ".json"
520 if "QEMU" in os.environ:
521 qemu_path = os.environ["QEMU"]
523 qemu_path = os.path.join(build_path, "qemu-system-" + arch)
544 elif 'QEMU_CONFIG' in os.environ:
545 config_file = os.environ['QEMU_CONFIG']
548 if not os.path.exists(config_file):
578 elif os.uname().machine == "x86_64" and \
650 if os.path.exists(args.image) and not args.force: