On Wed, May 25, 2022 at 01:04:11AM -0000, jeremy_tourville(a)hotmail.com wrote:
When attempting to create a template the process fails. It has been
suggested to run virt-sysprep manually and see why it it failed. Specifically, I have an
Ubuntu 20.04 machine that doesn't boot properly even if the the template process does
finish without error.
I wonder if that something tells about the template itself. How did you
create the template? Did the original VM work fine?
I have tried creating the template several times as a test. about
80% of the time the template creation fails outright for qemu errors. The other 20%
"appear" to work but the system boots to a grub emergency prompt
Can someone clarify the process?
I know you can run the command: virt-sysprep -d <name_of_vm>
This works for powered off libvirt domains but is not usable in oVirt
environment.
1. Where do you run it from? The hypervisor host or the management
engine?
It's not completely trivial to run manually and may not be the best
approach (just yet). If you have NFS domains you may be able to figure
out paths to all disks of your newly created VM and run virt-sysprep on
it. If you have block storage you need to prepare the disk images first.
For start, please provide vdsm.log. You should also see a log file
for the virt-sysprep run in /var/log/vdsm/commands/, please provide that
too.
2. What account do you need to use? What is the authentication
username and password?
I also think I read somewhere that you should refrain from using root. Anything else to
know?
I beleve we run all virt-* commands as vdsm user.
Anything else to try regarding the grub prompt?
Is the template worth fixing or would it make more sense to recreate it?
If the original VM/template is broken it may explain the virt-sysprep
failures.
Tomas
Thanks.
_______________________________________________
Users mailing list -- users(a)ovirt.org
To unsubscribe send an email to users-leave(a)ovirt.org
Privacy Statement:
https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/ICWANF6XMXT...
--
Tomáš Golembiovský <tgolembi(a)redhat.com>