Hi all,
I wanted to patch vCenter Appliance via commandline. I mounted the FP ISO and started with this command:
software-packages stage --iso
That worked so far. Then I run this:
software-packages install --staged
Here is what happened:
[2016-04-13 15:02:24,415] : Copying software packages 1/1
[2016-04-13 15:02:24,450] : Running test transaction ....
[2016-04-13 15:02:27,417] : Running pre-install script.....
[2016-04-13T15:04:25.104] : Services stopped.
[2016-04-13 15:04:25,909] : Upgrading software packages ....
[2016-04-13T15:04:27.104] : Package upgrade failed
[2016-04-13 15:04:27,144] : Starting all services ....
[2016-04-13T15:09:38.104] : Services started.
[2016-04-13T15:09:38.104] : Installation process failed at upgrade stage
How can I find out why it failed?
Check if helps: Re: vCenter Server Appliance update and VMware Tools
Please, check or attache the following log: /var/log/vmware/applmgmt/software-packages.log
Seems like the problem was upgrading the VMware Tools of the appliance, see:
2016-04-13T15:04:26.104 [15231]DEBUG:vmware.vherd.base.software_update:STDERR: warning: /var/software-packages/vmware-tools-foundation-10.0.0-1.sles11.x86_64.rpm: Header V3 RSA/SHA1 signature: NOKEY, key ID 66fd4949
VMware Tools cannot install because it appears that another installation of
VMware Tools is already present. Please remove the previous installation and
then attempt to install this copy of VMware Tools again.
error: %pre(vmware-tools-foundation-10.0.0-1.sles11.x86_64) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping vmware-tools-foundation-10.0.0-1.sles11
2016-04-13T15:04:27.104 [15231]DEBUG:vmware.vherd.base.software_update:Failed to update package
out=
error=
rc=1
2016-04-13T15:04:27.104 [15231]ERROR:vmware.vherd.base.software_update:Package upgrade failed
I uninstalled the tools, staged and installed the packages again and rebooted the appliance. Now its stucking at
Waiting for VMware ESX Agent Manager
Really good.
So now let's wait and if you see no progress, attach a new log and if upgrade finish successfully, remember to mark answers as helpful or correct.
I reset the appliance and now it booted up. The version is now 6.0.0.20000
Tools are not installed, so I tried to install it like this:
sudo mkdir /mnt/cdrom
sudo mount -t iso9660 /dev/cdrom /mnt/cdrom
ls /mnt/cdrom/
cp /mnt/cdrom/VMwareTools-*.tar.gz /tmp/
cd /tmp
tar -xvzf VMwareTools-*.tar.gz
cd vmware-tools-distrib
Install the VMware tools executing the following script:
sudo ./vmware-install.pl
VMware Tools cannot be installed, since they have already been installed using
a package-based mechanism (rpm or deb) on this system. If you wish to continue,
you must first remove the currently installed VMware Tools using the
appropriate packaged-based mechanism, and then restart this installer
Execution aborted.
But tools are not installed.
Check if helps: Re: vCenter Server Appliance update and VMware Tools
Thanks. Tools are installed now.
I have one problem left: When I click in the web client on hosts and cluster I don't see my hosts. In the normal client I can see them.
The problem occurs even if you use the administrator@vsphere.local user ?
yes