Skip to content

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

Notifications You must be signed in to change notification settings

hugojosefson/virsh-transient-disk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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