sudo is Missing in OVM_EM12R2

Overview

During the investigation of Cloud Control Not Starting Automatically in OVM_EM12R2, I found that the sudo command was not installed in OVM template for EM12C R2 from e-delivery (part no. B70250-01).

Status

Oracle Bug 15860489

Workaround

Use su to create a separate shell.

Diagnosis

Running as root, I used the service --status-all to get the following output:

acpid is stopped Avahi daemon is running Avahi DNS daemon is not running crond (pid 1454) is running... Usage: /etc/init.d/dbstartup {start|stop} cannot find sudo at standard location Usage: /u01/OracleHomes/Middleware/oms/install/unix/scripts/omsstup {start|stop} cannot find sudo at standard location Usage: /u01/OracleHomes/agent/core/12.1.0.2.0/install/unix/scripts/agentstup {start|stop} hald (pid 1396) is running... Firewall is stopped. Firewall is stopped. irqbalance (pid 1325) is running... iscsid (pid 1065) is running... iscsid (pid 1065) is running... Kdump is unsupported on this kernel mcstransd is stopped dbus-daemon (pid 1351) is running... multipathd is stopped netconsole module not loaded netplugd is stopped Configured devices: lo eth0 Currently active devices: lo eth0 ntpd is stopped Usage: /etc/init.d/oraclevalidated {start|stop} Usage: /etc/init.d/oraclevm-template {start|stop} rdisc is stopped openssh-daemon (pid 1438) is running... syslogd (pid 1308) is running... klogd (pid 1311) is running...

It would appear the sudo command cannot be found in the VM! I verified this as follows:

find / -name sudo -type f -print

No results were returned!