Skip to content
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

vmware-vmx: cd_files, cd_content not working for ARM guests #182

Open
eszense opened this issue Apr 20, 2024 · 1 comment
Open

vmware-vmx: cd_files, cd_content not working for ARM guests #182

eszense opened this issue Apr 20, 2024 · 1 comment

Comments

@eszense
Copy link

eszense commented Apr 20, 2024

Description

Current default for Packer configured CD (cd_files, cd_content) is to use the IDE adapter. However, this would not work for ARM guest since IDE is not supported by VMware in these guests (https://kb.vmware.com/s/article/90364). It appears desirable to change the default to SATA for ARM guest. There is currently no config to change the cdrom adapter for vmware-vmx because the cdrom_adapter_type config is only exposed in vmware-iso but not vmware-vmx

Use Case(s)

cloud-init for ARM guest on VMware Fusion on all Apple Silicon host

@tenthirtyam tenthirtyam added the hypervisor/fusion VMware Fusion label May 19, 2024
@tenthirtyam tenthirtyam added this to the Backlog milestone May 24, 2024
@tenthirtyam tenthirtyam modified the milestones: Backlog, v1.1.1 Jul 10, 2024
@tenthirtyam tenthirtyam changed the title CD configurations (cd_files, cd_content) not working for ARM guests vmware-vmx: cd_files, cd_content not working for ARM guests Aug 15, 2024
@tenthirtyam
Copy link
Collaborator

Potential solution when generating the VMX:

func DefaultDiskAndCDROMTypes(diskAdapterType string, cdromAdapterType string) DiskAndCDConfigData {
	diskData := DiskAndCDConfigData{
		SCSI_Present:         "FALSE",
		SCSI_diskAdapterType: "lsilogic",
		SATA_Present:         "FALSE",
		NVME_Present:         "FALSE",

		DiskType:                   "scsi",
		CDROMType:                  "ide",
		CDROMType_PrimarySecondary: "0",
	}

   // If arm64, default to sata.
	if runtime.GOARCH == "arm64" {
		diskData.CDROMType = "sata"
	}

   // rest of function...

@tenthirtyam tenthirtyam self-assigned this Aug 15, 2024
@tenthirtyam tenthirtyam modified the milestones: v1.1.1, v1.1.2 Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants