vrandom yet another random IT blog

Adding SuSE Repository to VCSA

Overview

Especially when troubleshooting in the lab, or running vSphere environments at home you may wish to install additional software into your VCSA. These are the steps to add the standard SuSE repository to the appliance and install software.

Solution

Here is an example of adding the SuSE repository to VCSA 5.5 and installing tcpdump, so I can export some traffic to wireshark.

login as: root
VMware vCenter Server Appliance
Using keyboard-interactive authentication.
Password:
Last login: Thu Jan 29 08:18:31 2015 from controlcenter.vcap.local
vcsa01:~ # cat /etc/SuSE
SuSE-brand    SuSE-release  SuSEconfig/
vcsa01:~ # cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 2
vcsa01:~ # zypper addrepo -f http://download.opensuse.org/distribution/11.2/repo/oss/ opensuse
Adding repository 'opensuse' [done]
Repository 'opensuse' successfully added
Enabled: Yes
Autorefresh: Yes
GPG check: Yes
URI: http://download.opensuse.org/distribution/11.2/repo/oss/

vcsa01:~ # zypper repos -d
# | Alias    | Name     | Enabled | Refresh | Priority | Type | URI                                                      | Service
--+----------+----------+---------+---------+----------+------+----------------------------------------------------------+--------
1 | opensuse | opensuse | Yes     | Yes     |   99     | NONE | http://download.opensuse.org/distribution/11.2/repo/oss/ |
vcsa01:~ # zypper refresh
Retrieving repository 'opensuse' metadata [\]

New repository or package signing key received:
Key ID: B88B2FD43DBDC284
Key Name: openSUSE Project Signing Key <opensuse@opensuse.org>
Key Fingerprint: 22C07BA534178CD02EFE22AAB88B2FD43DBDC284
Key Created: Fri Nov  7 14:10:07 2008
Key Expires: Sun Nov  7 14:10:07 2010 (EXPIRED)
Repository: opensuse

Do you want to reject the key, trust temporarily, or trust always? [r/t/a/? shows all options] (r): a
Retrieving repository 'opensuse' metadata [done]
Building repository 'opensuse' cache [done]
All repositories have been refreshed.
vcsa01:~ # zypper search tcpdump
Loading repository data...
Reading installed packages...

S | Name    | Summary          | Type
--+---------+------------------+--------
  | tcpdump | A Packet Sniffer | package
vcsa01:~ # zypper install tcpdump
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW packages are going to be installed:
  libpcap1 libsmi tcpdump

3 new packages to install.
Overall download size: 2.7 MiB. After the operation, additional 15.3 MiB will be used.
Continue? [y/n/? shows all options] (y): y
Retrieving package libpcap1-1.0.0-5.2.x86_64 (1/3), 102.0 KiB (247.0 KiB unpacked)
Retrieving: libpcap1-1.0.0-5.2.x86_64.rpm [done]
Retrieving package libsmi-0.4.5-127.1.x86_64 (2/3), 2.1 MiB (13.6 MiB unpacked)
Retrieving: libsmi-0.4.5-127.1.x86_64.rpm [done]
Retrieving package tcpdump-4.0.0-2.1.x86_64 (3/3), 558.0 KiB (1.4 MiB unpacked)
Retrieving: tcpdump-4.0.0-2.1.x86_64.rpm [done]
Installing: libpcap1-1.0.0-5.2 [done]
Installing: libsmi-0.4.5-127.1 [done]
Installing: tcpdump-4.0.0-2.1 [done]
vcsa01:~ #

After this tcpdump installed and ready to use. It goes without saying that this will make the VCSA unsupported by VMware, and you should take care to ensure that no libraries used by VCSA are upgraded, which could impact functionality.

References

This is basically a lift and shift of this article, all credit goes here.

FIN