vmware-archive / photon-controller

Photon Controller
Other
26 stars 3 forks source link

Unable to install photon controller on esxi hosts #135

Closed upuvvad1 closed 6 years ago

upuvvad1 commented 7 years ago

I am new to the environment and wanted to test it in a lab environment.

Here is my config.yaml file test.yaml.txt

I am running on ESXi 6.0 hosts and all the controllers are on the same machine.

root@photon-installer [ ~ ]# photon-setup platform install -config test.yaml Using configuration at test.yaml java.io.IOException: Error: The config file was not parsed correctly

Can someone point out, what's going wrong with the config file? I cross checked my YAML file, across validator online, and it responded with valid.

It4lik commented 7 years ago

Only ESXi 6.5 with a specific patch seems to be supported, see here in the wiki.

But indeed, this error is directly related to your YAML file. Yep, using http://www.yamllint.com/ it looks valid. But :

upuvvad1 commented 7 years ago

@It4lik Thanks for directing me towards correct direction. I configured my machine with esxi 6.5.0 and applied the patch mentioned in the documents. It still returns out with the same error.

root@photon-installer [ ~ ]# photon-setup platform install -config ./test_config.yaml Using configuration at ./test_config.yaml Exception in thread "main" java.io.IOException: Error: The config file was not parsed correctly at com.vmware.photon.platform.setup.PlatformConfiguration.build(PlatformConfiguration.java:124) at com.vmware.photon.platform.setup.PlatformInstaller.build(PlatformInstaller.java:336) at com.vmware.photon.platform.setup.PhotonSetup.main(PhotonSetup.java:47)

@AlainRoy, your thoughts would be appreciated.

tactical-drone commented 7 years ago

I noticed that applying vmware patches to match photon-controller needs failed before. I had to install the correct version from scratch. You might try that. And are you running nested ESXi?