Blog Archives

How to patch ESXi 5.0

A short memo about patching ESXi 5.0 without Update Manager:

  1. Download VMWare patch, in my case I downloaded recently released Update 1 for ESXi 5.0:
    http://www.vmware.com/patchmgr/download.portal
  2. upload zip file to ESXi datastore
  3. check that ESXi shell and SSH access is running:
    – connect to ESXi with vSphere Client, then open Configuration tab, select Security Profile, open Properties
    – check that ESXi shell and SSH are running, if not then turn them on:
    esxi-services

  4. shutdown all VM’s
  5. use whatever ssh client you prefer to connect to ESXi host as root
  6. install patch with the esxcli (change path to the patch appropriately):
    esxcli software vib install --maintenance-mode --depot /vmfs/volumes/datastore2/ISO/VMWareUpdate1/update-from-esxi5.0-5.0_update01.zip
    

    Note that everything must be on the same line!

  7. reboot ESXi host

I had a severe network performance problems with base 5.0 release that installation of Update 1 fixed.

Advertisement

Ubuntu Unity on VirtualBox 4.1

Today, I was pleased to see VirtualBox 4.1 release announcement on OTN. New features sounded encouraging, especially the support for Linux Unity and GNOME 3 desktops. So, I decided to give it a try with installation of Ubuntu 11.04 x64 guest. I tried installing guest from ISO image several times and was always blocked at time zone selection. Installer simply hanged.
Google returned numerous reported incidents, I tried out several workarounds, unsuccessfully, until I found someone who said that the only thing that worked for him was when he removed NIC from virtual machine. Bingo! After I completely removed NIC from VM guest machine I was able to finish Ubuntu 11.04 installation (make sure you check 3D support for video!). Then I installed VirtualBox guest additions as usual, then I made a shutdown. I added NIC back to VM guest and I was able to boot and login with Unity interface. I hope this note will spare someone troubleshooting Ubuntu 11.04 installation on VirtualBox 4.1.

Python 3.2.1 on OEL 6.1

--
-- Installing python 3.2.1 on OEL 6.1 from source
--
$ sudo yum install tk-devel gdbm-devel
$ mkdir python
$ cd python
$ export http_proxy=acme.proxy.com:80
$ wget http://www.python.org/ftp/python/3.2.1/Python-3.2.1.tgz
$ tar xvzf Python-3.2.1.tgz
$ cd Python-3.2.1
$ ./configure --prefix=/opt/python3.2
$ make
$ make test
$ sudo make install
$ sudo ln -s /opt/python3.2/bin/python3.2 /usr/bin/python32
$ sudo ln -s /opt/python3.2/bin/idle3.2 /usr/bin/idle-python32

-- cx_Oracle is (of course) mandatory library 
$ mkdir cx_Oracle
$ cd cx_Oracle
$ wget http://prdownloads.sourceforge.net/cx-oracle/cx_Oracle-5.1.tar.gz?download
$ tar xvzf cx_Oracle-5.1.tar.gz
$ cd cx_Oracle-5.1
$ sudo -s
# . /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh
# export LD_LIBRARY_PATH=$ORACLE_HOME/lib
# python32 setup.py build
# python32 setup.py install

-- lxml 2.3
-- libxml2 and libxslt1.1 libraries were already installed
-- on OEL 6.1, so it was as easy as downloading lxml from PyPI
-- and installing with:

$ tar xvzf lxml-2.3.tar.gz
$ cd lxml-2.3
$ python32 setup.py build
$ sudo python32 setup.py install

-- run test:
$ python32
>> from lxml import etree
>> print(etree.LXML_VERSION)
>> print(etree.LIBXML_VERSION)
>> print(etree.LIBXSLT_VERSION)

ArcServe agent 15 on OEL 6.1

Although ArcServe agent for Linux is not yet certified on Redhat 6.x (OEL 6.x) I decided to install and test the ArcServe agent v15.0 on my newly installed Oracle Enterprise Server 6.1 (x64, of course). Here is a mini how-to (I was installing from ArcServe 15 DVD):

# mount -t iso9660 /dev/cdrom /mnt/cdrom
# cd /mnt/cdrom/DataMoverandAgent/Linux
# ./install
Cannot identify your Linux distribution or it is not yet supported.

Important! You are installing UNIX and Linux Data Mover on a system that is running an operating system that is not currently supported by ARCserve. To check the latest list of supported operating systems, go to ca.com/support. If you continue, be aware that unexpected results could occur.
Do you want to continue? (YES/NO):(default: NO) YES

Simply select 2 (installig agent) and accept defaults, stop with the installation when you see the following warning:

The components you selected require this library file:
libstdc++-libc6.1-1.so.2.  Typically, Linux comes with this library
file. It is located in the /usr/lib path.  Before you rerun the
installation, install the file.

I already installed libstdc++-libc6.2-2.so.3 library on my OEL 6.1, hence all that is needed is a symbolic link that will hide the fact that newer libstdc++ library exists on the system:

$ sudo yum install compat-libstdc++-296.i686  // run in case if the proper "compat" library is not already installed on OEL6
$ cd /usr/lib
$ sudo ln -s libstdc++-libc6.2-2.so.3 libstdc++-libc6.1-1.so.2

Now, you can continue with the installation:

All CA ARCserve Backup agents can be configured for automatic startup 
and shutdown as part of your operating system startup and shutdown.
Do you want to enable automatic startup and shutdown of all backup agents? 
[y|n]:(default: y) y

Checking available space in /opt/CA                           ==> [ OK ]


Installation log file is                           ==> [ /tmp/ARCserveInstall070811-1055.log ]

    Common Agent Module                      (ABcmagt)       ==> [ INSTALL SUCCESSFUL ]
    Client Agent for Linux                   (ABagntux)      ==> [ INSTALL SUCCESSFUL ]

######################################################

    Installation log file is                      ==> [ /tmp/ARCserveInstall070811-1055.log ]
######################################################

Do you want to view the readme? [y|n]:(default: y) 

Local yum repository from OEL 6.1 DVD


$ sudo mkdir /mnt/OEL6.1
$ sudo mount -o loopback -t iso9660 /dev/cdrom /mnt/OEL6.1
$ cd /etc/yum.repos.d
$ sudo nano OEL61.repo

[OEL61]
name = Oracle Enteprise Linux 6.1 x64 DVD
baseurl = file:///mnt/OEL6.1/Server/
gpgcheck = 0
enabled = 1

$ sudo yum clean all

Loaded plugins: refresh-packagekit
Cleaning repos: OEL61
Cleaning up Everything

$ sudo yum list installed
$ sudo yum list available

Test install:

$ sudo yum install alacarte