vmware / photon

Minimal Linux container host
https://vmware.github.io/photon
Other
3.04k stars 697 forks source link

Prebuilt OVF distribution configuration blocks guest operations #572

Closed alexp789 closed 7 years ago

alexp789 commented 7 years ago

Problem When deploying the prebuilt OVF distribution (for example https://bintray.com/vmware/photon/download_file?file_path=photon-custom-hw10-1.0-13c08b6.ova) the default configuration won't allow the use of guest operations to inject cloud-init directly into /var/lib/cloud/seed/nocloud/ within the container without manual intervention.

Cause The root cause of this issue is the use of chage -d 0 root in support/cloud-image-builder/ova/ova-custom-patch.sh

#!/bin/bash
echo -e "changeme\nchangeme" | passwd root
chage -d 0 root

This breaks the guest authentication which guestOperationsManager.processManager relies on until a root password has been configured.

Possible Solutions

Why is this necessary There are a number of scenarios where it will be preferred for Photon OS to be deployed directly from an OVF (which means vSphere Guest Customisation isn't possible) and no DHCP infrastructure is available to support cloud-init over the network. Being able to automate the end-to-end configuration of Photon OS in these environments using only standard vSphere API's is highly desirable.

Thanks

Alex

alexp789 commented 7 years ago

I have just noticed that implementing #549 would remove the need for this. I guess this can probably be closed out as a duplicate?

ghost commented 7 years ago

dupe of #549