Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hugojosefson/virsh-transient-disk
Converts a VM definition from virsh(1) to a new one with the disk marked transient.
https://github.com/hugojosefson/virsh-transient-disk
kvm libvirt qemu transient virsh
Last synced: 29 days ago
JSON representation
Converts a VM definition from virsh(1) to a new one with the disk marked transient.
- Host: GitHub
- URL: https://github.com/hugojosefson/virsh-transient-disk
- Owner: hugojosefson
- Created: 2018-12-29T10:41:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-24T04:01:51.000Z (almost 3 years ago)
- Last Synced: 2024-11-08T04:21:51.939Z (about 2 months ago)
- Topics: kvm, libvirt, qemu, transient, virsh
- Language: Shell
- Homepage: https://www.npmjs.com/package/@hugojosefson/virsh-transient-disk
- Size: 235 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @hugojosefson/virsh-transient-disk
[![Build Status](https://travis-ci.org/hugojosefson/virsh-transient-disk.svg?branch=master)](https://travis-ci.org/hugojosefson/virsh-transient-disk)
[![npm page](https://img.shields.io/npm/v/@hugojosefson/virsh-transient-disk.svg)](https://www.npmjs.com/package/@hugojosefson/virsh-transient-disk)
[![License MIT](https://img.shields.io/npm/l/@hugojosefson/virsh-transient-disk.svg)](https://tldrlegal.com/license/mit-license)
[![SemVer 2.0.0](https://img.shields.io/badge/SemVer-2.0.0-lightgrey.svg)](http://semver.org/spec/v2.0.0.html)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)Converts a base VM image XML definition from `virsh(1)`, to a similar
definition with these modifications:* Sets a new UUID.
* Sets the name as specified in CLI argument `--name`.
* Sets the disk as transient.## Usage
No installation needed, thanks to `npx`.
```bash
virsh -c qemu:///system dumpxml dev-dispvm \
| npx @hugojosefson/virsh-transient-disk --name new-transient \
> new-transient.xmlvirsh -c qemu:///system define new-transient.xml
```## See also
* libvirt Domain XML format:
https://libvirt.org/formatdomain.html#elementsDisks