Skip to content

updated platform versions#1679

Draft
Stromweld wants to merge 15 commits into
mainfrom
new-platform-versions
Draft

updated platform versions#1679
Stromweld wants to merge 15 commits into
mainfrom
new-platform-versions

Conversation

@Stromweld
Copy link
Copy Markdown
Collaborator

Description

Updating platform versions and fixes for packer plugin updates

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • If Gemfile.lock has changed, I have used --conservative to do it and included the full output in the Description above.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
@Stromweld Stromweld self-assigned this May 27, 2026
Stromweld and others added 14 commits May 27, 2026 16:20
The VMware packer plugin now requires explicit `tools_mode` configuration.
This commit adds proper support for tools_mode with the following improvements:

1. **New Variable: `vmware_tools_mode`**
   - Defaults to "attach" for best performance (attaches ISO vs uploading)
   - Supports "attach", "upload", and "disable" modes
   - Attaching is faster than uploading the ISO into the guest

2. **New Variable: `vmware_tools_source_path`**
   - Path to VMware Tools ISO for "attach" mode
   - Auto-detects default paths based on host OS:
     - macOS: /Applications/VMware Fusion.app/Contents/Library/isoimages/
     - Linux: /usr/lib/vmware/isoimages/
   - Can be overridden by user for custom paths

3. **Conditional Upload Configuration**
   - `tools_upload_flavor` and `tools_upload_path` now only set when tools_mode is "upload"
   - Avoids conflicts when using "attach" or "disable" modes

**Benefits:**
- Resolves packer validation errors with latest VMware plugin
- Improves build performance by defaulting to "attach" mode
- Maintains backward compatibility for users who need "upload" mode
- Smart defaults based on guest OS and host OS detection

**Usage Examples:**
```hcl
# Default: attach mode with auto-detected path
# (no additional config needed)

# Custom attach path:
vmware_tools_mode = "attach"
vmware_tools_source_path = "/custom/path/to/vmware-tools.iso"

# Upload mode (previous behavior):
vmware_tools_mode = "upload"

# Disable tools:
vmware_tools_mode = "disable"
```

Fixes issues with packer vmware plugin requiring explicit tools_mode configuration.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant