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.
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. The name
parameter is used to allow
subsequent invocations to use the same disk image, so changes will persist.
transient run \
-name test-vm \
-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 terminated (unlike vagrant
). For example:
transient run \
-name test-vm \
-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.4.tar.gz
.
File metadata
- Download URL: transient-0.4.tar.gz
- Upload date:
- Size: 23.1 kB
- 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.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d09e99c3845e96388292b4526903bec161383872ab6248cd8a0fb89ad6f7748c |
|
MD5 | 9661981383824637d80db54830c9d4b9 |
|
BLAKE2b-256 | 86808651fac96adb53b7527b3ee52ce22198624adfa7246ce3f4a266368479e1 |
File details
Details for the file transient-0.4-py3-none-any.whl
.
File metadata
- Download URL: transient-0.4-py3-none-any.whl
- Upload date:
- Size: 26.1 kB
- 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.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ea0bc660a653fe3b77b30ef02092ff467b4ff0169417f3855a8f989965d47e4 |
|
MD5 | 27a8feca1fed86fe7c8b11ed151d6c23 |
|
BLAKE2b-256 | 0cd56edf9aa54914b79de3dca9894de4b99cfcdf9a901bb46fdcceecbffc07cf |