hugojosefson / virsh-transient-disk

Converts a VM definition from virsh(1) to a new one with the disk marked transient.

Home Page:https://www.npmjs.com/package/@hugojosefson/virsh-transient-disk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@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

About

Converts a VM definition from virsh(1) to a new one with the disk marked transient.

https://www.npmjs.com/package/@hugojosefson/virsh-transient-disk


Languages

Language:Shell 56.8%Language:JavaScript 43.2%