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

Vsphere: Customization Problem #3562

Closed
eloycoto opened this issue Oct 20, 2015 · 12 comments
Closed

Vsphere: Customization Problem #3562

eloycoto opened this issue Oct 20, 2015 · 12 comments

Comments

@eloycoto
Copy link
Contributor

Hi,

With this config we are having the following error:

resource "vsphere_virtual_machine" "testb" {
  datacenter = "XXX"
  cluster = "XXX"
  name   = "terraformweb4"
  vcpu   = 1
  memory = 256

  network_interface {
    label = "Staging"
  }

  disk {
    datastore = "datastore_XXX"
    template =  "x_template"
    size=10
  }
}

With this we got the following error in this line:

https://github.com/hashicorp/terraform/blob/master/builtin/providers/vsphere/resource_vsphere_virtual_machine.go#L1039

Error applying plan:
2015/10/20 10:29:05 [DEBUG] vertex provider.vsphere (close), got dep: vsphere_virtual_machine.testb
2015/10/20 10:29:05 [DEBUG] vertex root, got dep: provider.vsphere (close)
2015/10/20 10:29:05 [DEBUG] vertex root, got dep: provisioner.chef
2015/10/20 10:29:05 [DEBUG] vertex root, got dep: provisioner.file
2015/10/20 10:29:05 [DEBUG] vertex root, got dep: provisioner.local-exec
2015/10/20 10:29:05 [DEBUG] vertex root, got dep: provisioner.remote-exec
2015/10/20 10:29:05 [DEBUG] waiting for all plugin processes to complete...

1 error(s) occurred:

* vsphere_virtual_machine.testb: Customization of the guest operating system 'debian6_64Guest' is not supported in this configuration. Microsoft Vista (TM) and Linux guests with Logical Volume Manager are supported only for recent ESX host and VMware Tools versions. Refer to vCenter documentation for supported configurations.

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated 2015/10/20 10:29:05 [DEBUG] /Users/eloy/.go/bin/terraform-provisioner-remote-exec: plugin process exited
2015/10/20 10:29:05 [DEBUG] /Users/eloy/.go/bin/terraform-provisioner-file: plugin process exited
2015/10/20 10:29:05 [DEBUG] /Users/eloy/.go/bin/terraform-provider-vsphere: plugin process exited
2015/10/20 10:29:05 [DEBUG] /Users/eloy/.go/bin/terraform-provisioner-chef: plugin process exited
2015/10/20 10:29:05 [DEBUG] /Users/eloy/.go/bin/terraform-provisioner-local-exec: plugin process exited
with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

If I deleted the Customization on the VirtualMachineCloneSpec works ok. Any idea?

Cheers

@eloycoto eloycoto changed the title Vsphere: Customization Probelm Vsphere: Customization Problem Oct 20, 2015
@eloycoto
Copy link
Contributor Author

Hi,

Quick Update on this. Debian is not available in the VSphere Customizations so maybe the terraform should have a workaround to unsupported servers.

Using Debian template if you don't send the customizations works ok, but DNS/Timezone/Hostname can't be set directly from guest.

What is the best way to handle this?

Regards.

@mkuzmin
Copy link
Contributor

mkuzmin commented Oct 21, 2015

I'd look at cloud-init.

@chrislovecnm
Copy link
Contributor

@eloycoto can you not use open vm tools? You will need open-vm-tools, perl, and deployPkg? I am using open-vm-tools with Centos, and it is working like a champ.

@chrislovecnm
Copy link
Contributor

@eloycoto let us know if we can help, but this is kinda a VMware thing, not a terraform related issue. Can we please close this?

@eloycoto
Copy link
Contributor Author

eloycoto commented Dec 9, 2015

Hey @chrislovecnm

Sorry, very busy weeks. Yes, is Vmware thing, maybe we need to add this into Vsphere doc? What do you think?

If not people are going to use debian, and they will report issues, etc..

Regards

@chrislovecnm
Copy link
Contributor

@eloycoto Please update the docs! only VMware supported Linux versions. Something like that?

@chrislovecnm
Copy link
Contributor

@eloycoto can we get this documented or close this issue??

@chrislovecnm
Copy link
Contributor

@stack72 this is not a bug, but a documentation need 😄

Please do as you please. BTW APPRECIATE THE HELP!!!!!!!!

@eloycoto
Copy link
Contributor Author

Hey @chrislovecnm,

Sorry my fault! I'll document this during the weekend.

Regards.

@chrislovecnm
Copy link
Contributor

@eloycoto no worries!! Appreciate the help.

@thetuxkeeper
Copy link
Contributor

Hi,

since we ran into the same problem, I implemented a "skip_customization" setting which makes it possible to skip that part. We tested it with our CoreOS deployment (described in the pull request).

Regards

@jen20 jen20 closed this as completed in 7367eaf Apr 29, 2016
jen20 added a commit that referenced this issue Apr 29, 2016
Fix #3562 provider/vsphere Added doc for customizations problems.
xsellier pushed a commit to xsellier/terraform that referenced this issue May 17, 2016
@ghost
Copy link

ghost commented Apr 26, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants