Skip to content

Conversation

@dohq
Copy link
Contributor

@dohq dohq commented Oct 18, 2020

Allows the attachment of an iso file on the ESXi host.

Copy link
Owner

@josenk josenk left a comment

Choose a reason for hiding this comment

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

If you would like to make this complete.

  • You need to edit guest-read.go (to read the current settings)
  • Edit guest-import.go (To import).
  • Validate that an "apply" will fix "broken" cdrom settings. (ie, go to the console, change the cdrom settings, then make sure a "terraform apply" will fix the cdrom to your settings.)

} else {
host_iso_path := filepath.Join("/vmfs/volumes/", host_iso)
vmx_contents = vmx_contents +
fmt.Sprintf("ide1.present = \\\"TRUE\\\"\n") +
Copy link
Owner

Choose a reason for hiding this comment

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

Dup line???

README.md Outdated
* clone_from_vm - Source vm to clone. Mutually exclusive with ovf_source option.
* ovf_source - ovf files or URLs to use as a source. Mutually exclusive with clone_from_vm option.
* disk_store - Required - esxi Disk Store where guest vm will be created.
* host_iso - Optional - Attaching an iso file on the ESXi host. - e.g. "datastore1/iso/centos.iso"
Copy link
Owner

Choose a reason for hiding this comment

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

Could you rename this resource to "cdrom_datastore_iso". It will match (closer) the web gui description so it will be a bit more clear.

func guestCREATE(c *Config, guest_name string, disk_store string,
src_path string, resource_pool_name string, strmemsize string, strnumvcpus string, strvirthwver string, guestos string,
boot_disk_type string, boot_disk_size string, virtual_networks [10][3]string,
boot_disk_type string, boot_disk_size string, virtual_networks [10][3]string, host_iso string,
Copy link
Owner

Choose a reason for hiding this comment

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

Also rename the variable to match the resource name. (cdrom_datastore_iso)

Optional: true,
ForceNew: false,
Default: nil,
Description: "Path on exsi host of iso file(e.g. datastore1/iso/centos.iso).",
Copy link
Owner

Choose a reason for hiding this comment

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

Typo "exsi"

@dohq dohq changed the title [add] feature host_iso W.I.P [add] feature host_iso Nov 24, 2021
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.

2 participants