A QEMU wrapper adding vagrant support and shared folders
Project description
transient
transient
is thin wrapper for QEMU that provides additional features like downloading
disk images, shared folders, and SSH support. Currently transient
only supports
Vagrant libvirt images.
Installation
transient
is available on PyPI, so the latest
release can be installed with pip install transient
. To install transient
from
source, clone this repository and run pip install -e '.[dev]'
from the project
root. As always, the usage of python virtual environments
is recommended for a development setup.
transient
has dependencies on very few packages. On ubuntu, these can be installed
by running apt-get install ssh qemu-system-x86 python3-pip
.
Documentation
Documentation for transient
is available on Read the Docs.
Quick Start
transient
is primarily a wrapper for QEMU. It supplies a small set of flags that
are used to add additional features to the VM being started. As the name implies,
it is almost completely stateless. This avoids problems that can sometimes occur
with libvirt
based tools becoming 'unsynchronized' with the real system state.
For example, in the following command, the flags before the --
are passed to
transient
. The remaining arguments are passed directly to QEMU. This example
will cause transient
to download and run a Centos7 VM (from the Vagrant Cloud)
with 1GB of memory using a text console. This virtual machine will be automatically
shut down on exit and its disk will be destroyed.
transient run \
-image centos/7:2004.01 \
-- \
-nographic -enable-kvm -m 1G
transient
also supports a vagrant
style SSH connection. This will start the
virtual machine and connect standard input and output to an SSH connection
with the machine, instead of the serial console. However, when this connection
is closed, the machine will be automatically shut down (unlike vagrant
). For
example:
transient run \
-ssh-console \
-image centos/7:2004.01 \
-- \
-enable-kvm -m 1G
The -ssh-console
flag depends on the image having the normal vagrant keypair
trusted for the vagrant
user.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file transient-0.7.tar.gz
.
File metadata
- Download URL: transient-0.7.tar.gz
- Upload date:
- Size: 17.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87da89c5defb24c3c6c9f9564e9ed218be9805fbd84ca0123061f64a7e45556d |
|
MD5 | 321f9fb85078966f13b5ef7e6c1f1ce4 |
|
BLAKE2b-256 | 42002ed4561f3cc36584026f7fd495a85c62880d831cc117746256cb39eea913 |
File details
Details for the file transient-0.7-py3-none-any.whl
.
File metadata
- Download URL: transient-0.7-py3-none-any.whl
- Upload date:
- Size: 17.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 174d049bd47348e43889543f069ebae9ccada944e8b62c811a3253d7f0dfb72e |
|
MD5 | 2789c7dbb4470ba37c5f83c5c18261b3 |
|
BLAKE2b-256 | f330b63c2a136a053fdd85153fc5b8a03f642b3e71d5d22203a11bec5fb29cd6 |