Open mplinuxgeek opened 6 years ago
@mplinuxgeek sorry for taking so long to answer, lots of things to do lately.
I've never added open-vm-tools explicitly to the images because they used to be part of the default installation, or maybe I misremember. Unfortunately, we haven't had anybody volunteering to test our VMware or Hyper-V images for quite a while. I think we could just add the packages to the Vagrant images unconditionally, vmtoolsd will just exit if it can't detect VMware.
At least from September 2016, I think open-vm-tools has not been preinstalled in the box. Will be great to see it included.
The Tools aren't actually required to use 'stock' Vagrant (ie. just Workstation and Fusion with rsync), other than to get bidirectional synced folder support. But like you said, I think it should be safe to include them, and it seems like it would also resolve the vmware-esxi plugin issue that @mplinuxgeek reported.
I still do what I can to test the VMware images in Fusion when there is a new box release btw :)
@mvermaes Hi, glad to hear you're still using our images! I haven't heard anything from you in a while. We skipped releasing the last 1-2 monthly images due to apparent XFS corruption in the libvirt images (not yet understood - the VirtualBox images are ok, though). This is also why the automatic tests are failing on my PR for this issue. Would you be willing to test the VMware images if I email you the links?
@lpancescu thank you, I like to use direct from source images where possible, it's great to see CentOS providing official images.
@lpancescu Sure thing, email them through.
vagrant up fails when using vmware-esxi plugin.
The error is caused because the plugin is waiting for the VM state to change to running which it never does because there are no VMware tools in the image.
I logged into the image via ESXi console and installed and started open-vm-tools, after this has been done vagrant successfully provisions the new VM.
I can test this with VMware workstation when I get to work tomorrow, but I can't test Fusion or vCenter however I expect they will all behave the same.
Update: I wrote a quick script to check if the server is running in VMware if yes then install and start open-vm-tools, perhaps this could be added to the image on first boot? or as a @reboot cron job that deletes itself after the first run?