Open kam1sh opened 3 years ago
Hi kam1sh,
Thanks for raising this error. I think there is something wrong with the .cab package. But unfortunately it will be removed in the clean up stage at the end of customization. So to debug this error, my idea is to write a script which runs as a demon in the OS booting process and capture the cab file /var/run/ /cust*.cab, back the cab file in another directory. I can try to write this script, but you need to upload this script into your test VM and regenerate another VM template. And my question is can you always reproduce this error in your place? Especially when you regenerated your VM template.
And can you share your VM template with me? I can try to reproduce it in my place.
Thanks.
Hello, rongz609!
I can attach any script to a vm, of course.
can you always reproduce this error in your place? Especially when you regenerated your VM template
Yes, I recreated template from the ISO installer, and error still persists.
And can you share your VM template with me?
Right now I have unstable connection, so I couldn't download image on my device and then upload on file share.
But the image set up is trivial:
apt update && apt upgrade -y && reboot
rm /etc/netplan/00-installer-config.yaml
echo 'disable_vmware_customization: false' > /etc/cloud/cloud.cfg.d/91_vmware_cust.cfg
dpkg-reconfigure cloud-init # leave only OVF
cloud-init clean --logs
rm -r /var/log/vmware*
poweroff
Also, I sent a ticket to datacenter support, but they responded to me that user-created images is not their responsibility :(
Hi Kam1sh,
Sorry for the late update. I found it's difficult to capture the customization cab package during guest OS booting. Because the cab package exists a very shot time, it's hard to capture it.
And one more question, have you tried other VM templates excepting the not working one? If other VM templates can work well, then we can know the problem is in your VM template. And if not, the problem is in vCD product.
Could you fill a support request on vcloud director product about this issue? Then GSS can help you to upload your VM template.
Thanks. Regards.
Hi! Recently I templated latest Ubuntu in vCloud environment.
When I created first dozen VMs, it worked fine. I even wrote a blogpost about my success somwhere.
But now, when I created another dozen VMs, from the same template, with almost same settings and same customization script, something went wrong and script doesn't executed. This is what I got in logs:
And also ovfEnv:
I did everything that I know from common workaronds - tmpfiles,
disable_vmware_customization: false
in cloud-init, dbus... nothing helped.I'll recreate whole network later, but anyway... Maybe I'm not the only one or someone may know the cause?
versions