Difference between revisions of "Virt-sysprep"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
<code>[[virt-sysprep]]</code><ref>http://libguestfs.org/virt-sysprep.1.html</ref> command included in <code>[[libguestfs-tools]]</code> package reset, unconfigure or customize a virtual machine so clones can be made.  
+
<code>[[virt-sysprep]]</code><ref>http://libguestfs.org/virt-sysprep.1.html</ref> command included in <code>[[libguestfs-tools]]</code> package reset, unconfigure or customize a virtual machine so [[clone]]s can be made.  
  
 
'''WARNING:''' Using <code>virt-sysprep</code> on live virtual machines, or concurrently with other disk editing tools, can be dangerous, potentially causing disk corruption. Virtual Machine must be shut down.
 
'''WARNING:''' Using <code>virt-sysprep</code> on live virtual machines, or concurrently with other disk editing tools, can be dangerous, potentially causing disk corruption. Virtual Machine must be shut down.

Revision as of 14:30, 4 February 2020

virt-sysprep[1] command included in libguestfs-tools package reset, unconfigure or customize a virtual machine so clones can be made.

WARNING: Using virt-sysprep on live virtual machines, or concurrently with other disk editing tools, can be dangerous, potentially causing disk corruption. Virtual Machine must be shut down.

Command examples

  • List operations:
virt-sysprep --list-operations
  • Performs a read-only "dry run" sysprep operation:
virt-sysprep --dry-run TEST_VM_TO_RESET
  • To reset everything:
virt-sysprep -d TEST_VM_TO_RESET
  • To Change name and force to keep user account MY_USERNAME_TO_KEEP
virt-sysprep -d testvm --hostname testvm --enable user-account --keep-user-accounts MY_USERNAME_TO_KEEP
  • virt-sysprep -d bionic[2]

Related commands


See also

Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.

Source: wikiversity

Advertising: