AlmaLinux / cloud-images

Packer templates and other tools for building AlmaLinux images for various cloud platforms.
MIT License
150 stars 47 forks source link

open-vm-tools not running using generic cloud image with vsphere #189

Open Keltirion opened 3 weeks ago

Keltirion commented 3 weeks ago

I'm trying to use Alma 9.4 (same for Alma 8) Generic cloud image with vsphere and cloud-init but when i create sample vm seems like open-vm-tools is not running? My vsphere version is 7.0.3.01900

obraz

I'm passing cloud-init configuration with terraform but it does not work. Am I doing something wrong here? I can see it being added to the VM

  extra_config = {
    "guestinfo.metadata" = base64encode(file(local.vm_meta_config))
    "guestinfo.metadata.encoding" = "base64"
    "guestinfo.userdata" = data.cloudinit_config.main.rendered
    "guestinfo.userdata.encoding" = "base64"
  }

and the contents are correct

obraz
LKHN commented 3 days ago

Hi Lech,

The open-vm-tools is excluded on the kickstart files of Generic Cloud images and is not installed by the Ansible packer provisioner. So, it is expected to not have it installed at all.

Can you build the image from the sources by commenting the line that open-vm-tools excluded and add it to the list of installed packages?

Currently, I don't have any access to VMWare vSphere to try to reproduce the issue related to Cloud-init at the moment.