VMware vSphere

 View Only
Expand all | Collapse all

Debian 10 guest customizaion

  • 1.  Debian 10 guest customizaion

    Posted Mar 13, 2020 02:46 PM

    Hi guys,

    Does anyone know why Debian is not on the support matrix of guest customization?

    https://partnerweb.vmware.com/programs/guestOS/guest-os-customization-matrix.pdf

    when we try to use customization, we receive an error.

    Status:

    Customization of the guest operating system 'debian10_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.

    Initiator: domain\deploy

    Target:

    template-debian-10

    thanks for any input.



  • 2.  RE: Debian 10 guest customizaion

    Posted Mar 13, 2020 03:33 PM

    Hi,

    Why Debian is not in the compatibility matrix I would say it is a slightly unanswered question, generally the reason is not published.

    ARomeo



  • 3.  RE: Debian 10 guest customizaion

    Posted Mar 13, 2020 05:47 PM

    Hi,

    maybe I should have formulated the question different, does anyone know if it is possible to get it to work?

    because other distros are there and working and supported. Or is debian so fundamentally different that it just won't work..



  • 4.  RE: Debian 10 guest customizaion

    Posted Mar 13, 2020 08:25 PM

    Hello,

    You can try to change the below setting for the VM installed with Debian OS.

    Guest OS Family: Other

    Guest OS Version:  Other (64 bit)

    Post that check whether the customization is working or not.



  • 5.  RE: Debian 10 guest customizaion

    Posted May 04, 2020 08:59 AM

    FYI, this works. I had similar errors trying to template Debian 9 and Debian 10 on VCSA 6.7/vSphere 6.7 latest updates. I installed perl, open-vm-tools, net-tool, etc etc to no avail.

    Changing the VM to 'Ubuntu 64', then templating made it all work.

    Sigh.



  • 6.  RE: Debian 10 guest customizaion

    Posted Jul 01, 2021 11:46 PM

    Can someone give explicit advice on how exactly they set the guest OS id/type on these templates? I do not see how to do this manually in the vSphere/vCenter UI.

    My template is created by Packer, using the vsphere-iso builder, and the guest_os_type parameter, which I've set to "OtherGuest64".

    During the packer build, I can see the machine's "Guest OS" initially showing up in vSphere as "Other 64 bit", but after the OS is installed (pre-seeded  install from Debian 10 64 bit iso), the "Guest OS" changes to "Debian GNU/Linux 10 (64-bit)".

    Subsequent attempts to change the Guest OS type during cloning of this template, using the guest_id parameter of the vsphere_virtual_machine resource in the Terraform vsphere provider, result in errors essentially saying "can't do that":

    Error: invalid guest ID "Other 64 bibt" for clone. Please set it to "debian10_64Guest"

    So, back to my original question, how can I change the "Guest OS" in a vSphere template?? Manually or through Packer/Terraform/Ansible... Thanks!




  • 7.  RE: Debian 10 guest customizaion

    Posted Jul 02, 2021 12:17 AM

    OK, I see now that you cannot edit Guest OS type of a template directly (by design?), but I was able to:

    • convert the template to VM,
    • edit settings,
    • VM Options,
    • change Guest OS type to "Other Linux 64bit", then
    • convert back to template. 

    and my subsequent Terraform plan which clones the template, and provides a customization:

     clone { | template_uuid = data.vsphere_virtual_machine.engineering-services-template.id | customize { | linux_options { | host_name = "jenkins-tim" | domain = local.domain | } | network_interface { | } | }

    was then successful, hostname changed and everything. 

    I'm still interested in how to do this with Packer or Terraform.. Perhaps I have to post-process the built template..



  • 8.  RE: Debian 10 guest customizaion

    Posted Sep 30, 2021 03:40 PM

    I would love to know if there is a real solution to this issue
    I also need templates



  • 9.  RE: Debian 10 guest customizaion

    Posted Jan 24, 2022 03:49 AM

    Ran into this problem, and it looks like it's addressed in 7.0U3:  https://kb.vmware.com/s/article/85845



  • 10.  RE: Debian 10 guest customizaion

    Posted Feb 04, 2022 04:59 PM

    This is really great!

    Then Debian-based distributions like Russian Astra Linux might also work. 



  • 11.  RE: Debian 10 guest customizaion

    Posted May 16, 2022 02:15 PM

    I am running into the exact same issue on 7.U3, unfortunately.