How do you use virt-sysprep
We're running RHEV 4.1 and I'm trying to use virt-sysprep to create a clean OS template. When I power off the VM and go to any of the hypervisors, and try to execute virt-sysprep -d it fails with the error listed below.
If it makes a difference, we're using pre-allocated disks, not thin.
Thanks for any assistance,
virt-sysprep: error: libguestfs error: no libvirt domain called
'RHEL7_tmpl': Domain not found: no domain with matching name 'RHEL7_tmpl'
If reporting bugs, run virt-sysprep with debugging enabled and include the
complete output:
virt-sysprep -v -x [...]
Responses
Hi Douglas,
The Virtual Machine Management Guide has a section specifically on the use of Sysprep (see link below)
https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.1/html-single/virtual_machine_management_guide/index#sect-Using_Sysprep_to_Automate_the_Configuration_of_Virtual_Machines
Also please see:
https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.1/html-single/virtual_machine_management_guide/index#appe-virt_sysprep_operations
Another valuable resource on the RHV-M would be the man page:
man virt-sysprepIf you continue to have issues/concerns please feel free to open a support case and we can investigate this further with you.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
