@hugojosefson/virsh-transient-disk

3.0.0 • Public • Published

@hugojosefson/virsh-transient-disk

Build Status npm page License MIT SemVer 2.0.0 JavaScript Style Guide

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.

virsh -c qemu:///system dumpxml dev-dispvm \
  | npx @hugojosefson/virsh-transient-disk --name new-transient \
  > new-transient.xml

virsh -c qemu:///system define new-transient.xml

See also

/@hugojosefson/virsh-transient-disk/

    Package Sidebar

    Install

    npm i @hugojosefson/virsh-transient-disk

    Weekly Downloads

    4

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    15.6 kB

    Total Files

    9

    Last publish

    Collaborators

    • hugojosefson