-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add native way to create a vApp template out of existing vApp #295
Comments
Hello @sansaid , Also it would be nice if you could include an automated test. There is some info in Feel free to ask anything else |
Brilliant, thanks @Didainius! Link to vCD Packer builder (massively a WIP, started it about a week ago): https://github.com/sansaid/packer-vcd-builder I'll start work on this feature. Wondering if you know of any vCloud Director labs online I can test against? There's an AWS CloudFormation project which enables deployment of vCD on AWS but not sure if you can vouch for it. A testing environment I intended to use is no longer an option unfortunately hence looking for alternatives. |
The AWS CloudFormation project is good, but it is overkill and costly for what you need. VCD can run as a single VM, so you don't need all the complexity that the CloudFormation template brings. If I were you I would setup a nested instance of vSphere with VCD locally for testing. Another option may be using the HOL to test: http://docs.hol.vmware.com/HOL-2020/hol-2083-01-hbd_html_en/ |
Brilliant, thanks @johnnycuse ! I tried HOL but it doesn't look like the system's IP address is public facing. Have you managed to get any testing done with HOL? Otherwise will fall back onto the VM creation in AWS like you suggested (going for the cheaper option here before I try that). |
@sansaid Were you able to make much process here? I to have an interest in a Packer builder for vCloud Director. |
@Didainius I too am looking at ways to provision and build VM instances in VCD. I was thinking of using Cloud-init to pre-build VM images and then convert them to templates, so I can use them for future or automatic deployments. This would greately reduce downtime and increase comfort. This should also work nicely with the VCD Autoscaling Plugin in mind. |
Having looked through the code, I couldn't find a method on the vApp struct which enables creating a vApp template out of an existing vApp. Is there a reason for this?
Suggested method signature:
Happy to implement this myself, but want to make sure this doesn't deviate away from an intended design. This is a feature natively supported within the REST API, which would be great to have implemented in this library: https://code.vmware.com/apis/553/vcloud/doc/doc/operations/POST-CaptureVApp-catalog.html
Having a method like this would be particularly useful when creating a Packer plugin for vCloud Director (which is something I'm currently trying to implement until I stumbled upon this issue).
The text was updated successfully, but these errors were encountered: