Skip to main content

A QEMU wrapper adding vagrant support and shared folders

Project description

transient

transient is a utility for runing QEMU with existing disk images and shared folders. Currently transient only supports Vagrant images.

Usage

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 subseqent invocations to use the same disk image, so changes will persist.

python -m transient \
   -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:

python -m transient \
   -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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transient-0.1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

transient-0.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file transient-0.1.tar.gz.

File metadata

  • Download URL: transient-0.1.tar.gz
  • Upload date:
  • Size: 9.9 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

Hashes for transient-0.1.tar.gz
Algorithm Hash digest
SHA256 4b30f490402d2f59278a90bf84653fab6b72d94fb6b77c656b0b491cb3eef720
MD5 6b4d168c93a4545549bac13c22f272af
BLAKE2b-256 25f422537355d31310cf1aafc507ca001aaeabce6633a067ced6c5a4eb7adef0

See more details on using hashes here.

File details

Details for the file transient-0.1-py3-none-any.whl.

File metadata

  • Download URL: transient-0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.6 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

Hashes for transient-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 54f796c77cd83f3777cf97818bdfdc9978c39432ef2a0bd21de92ab37ed480cb
MD5 3a7f007a6fb8eaa0b0f40fa99c4d87ab
BLAKE2b-256 f38994b6b2159d7c73df114d6680bad4622710328e9e7d3e175570d79b57c540

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page