Skip to content

Add a set of working VMware Fusion examples#130

Merged
nywilken merged 5 commits intomainfrom
nywilken/fusion-examples
Apr 17, 2023
Merged

Add a set of working VMware Fusion examples#130
nywilken merged 5 commits intomainfrom
nywilken/fusion-examples

Conversation

@nywilken
Copy link
Copy Markdown
Contributor

@nywilken nywilken commented Apr 13, 2023

This change adds a set of template examples for Fusion 13 and Fusion 12. These templates have been tested for both arm64 and x86_64 processors.

The source files are spread across multiple files:

  • source.pkr.hcl contains the source block definition for the build image.
  • variables.pkr.hcl contains a set of defined variables need for building the image.
  • build.pkr.hcl is the main entry point for Packer to build the VMware image defined in source.pkr.hcl.
  • pkrvars/ contains a set of Packer variable definition files (*.pkrvars.hcl) partitioned by guest_os/vmware-version.

Closes #108
Relates to: #131

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be nice to show how this can be done with a template like ks.pkrtpl.hcl.

An example I have authored for the vSphere plugin: https://github.com/vmware-samples/packer-examples-for-vsphere/blob/main/builds/linux/debian/11/data/ks.pkrtpl.hcl

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a good addition. I can roll that in. Thanks for the example.

Copy link
Copy Markdown
Collaborator

@tenthirtyam tenthirtyam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added some comments for consideration.

@nywilken nywilken force-pushed the nywilken/fusion-examples branch from 6a97865 to 7bf626f Compare April 14, 2023 15:07
* Create initial template bundle structure with pkrvar files
* Add variable for memory
* Update preseed configuration
* Add adapter types to config
* Add output directory for each build
* Update data directory for Fusion 12 example
* Parametrized headless attribute for debugging
* Remove deprecated preseed.cfg
@nywilken nywilken force-pushed the nywilken/fusion-examples branch from df1026a to 295786f Compare April 14, 2023 15:33
* Add a usage section to the main README that links to the example
  directory.
* Update text for Fusion 13 pkrvars.hcl file link
Copy link
Copy Markdown
Collaborator

@tenthirtyam tenthirtyam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! :shipit:

Copy link
Copy Markdown
Contributor

@lbajolet-hashicorp lbajolet-hashicorp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just left a little nit, but aside from that, LGTM!

Co-authored-by: Lucas Bajolet <105649352+lbajolet-hashicorp@users.noreply.github.com>
@nywilken nywilken merged commit 6635f99 into main Apr 17, 2023
@nywilken nywilken deleted the nywilken/fusion-examples branch April 17, 2023 20:17
@vmware vmware locked and limited conversation to collaborators Jun 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Packer plugin not working well with VMware Fusion Pro 13.0 on M1-based chipset.

3 participants