VMware Cloud Community
eddilimp
Enthusiast
Enthusiast
Jump to solution

Patching vCenter Appliance 6.0.0.10200

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?

1 Solution

Accepted Solutions
rcporto
Leadership
Leadership
Jump to solution

Check if helps: Re: vCenter Server Appliance update and VMware Tools

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto

View solution in original post

0 Kudos
10 Replies
rcporto
Leadership
Leadership
Jump to solution

Please, check or attache the following log: /var/log/vmware/applmgmt/software-packages.log

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
0 Kudos
eddilimp
Enthusiast
Enthusiast
Jump to solution

here it is.

0 Kudos
rcporto
Leadership
Leadership
Jump to solution

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

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
eddilimp
Enthusiast
Enthusiast
Jump to solution

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.

0 Kudos
rcporto
Leadership
Leadership
Jump to solution

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.

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
0 Kudos
eddilimp
Enthusiast
Enthusiast
Jump to solution

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:

  1. Type the following commands to mount the virtual CD:
    sudo mkdir /mnt/cdrom
    sudo mount -t iso9660 /dev/cdrom /mnt/cdrom
  2. Check whether the mount was successful by listing the contents of the cdrom folder. The file VMwareTools-<version>.tar.gz must appear in the list:
    ls /mnt/cdrom/
    Copy the VMware Tools file to the tmp folder and extract its contents:
    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



After the last command I get this error:

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.

0 Kudos
rcporto
Leadership
Leadership
Jump to solution

Check if helps: Re: vCenter Server Appliance update and VMware Tools

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
0 Kudos
eddilimp
Enthusiast
Enthusiast
Jump to solution

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.

0 Kudos
rcporto
Leadership
Leadership
Jump to solution

The problem occurs even if you use the administrator@vsphere.local user ?

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
0 Kudos
eddilimp
Enthusiast
Enthusiast
Jump to solution

yes

0 Kudos