Решил от нечего делать обновить свои vSphere 4.1 хосты до текущей версии.
На данный момент это ESXi410-201304001.zip (Build Number: 1050704).

Качаем обновление с http://www.vmware.com/patchmgr/download.portal и заливаем его на datastore доступный всем хостам, к примеру, в папку updates (в моем случае это NFS datastore для удобного хранения образов ISO и обновлений).

Мигрируем все виртуальные машины на соседний хост и переводим наш хост в maintenance mode.

Включаем на хосте ssh (Configuration/Security profile/Properties…/SSH/Options…/Start), подключаемся.

Выполняем на хосте:

# uname -a
VMkernel localhost. 4.1.0 #1 SMP Release build-348481 Jan 12 2011 17:05:17 x86_64 unknown

Текущая версия у нас build-348481.

# esxupdate —bundle /vmfs/volumes/ИМЯ_DATASTORE/updates/ESXi410-201304001.zip update
Encountered error FileIOError:
The error data is:
Filename — /var/tmp/cache
Message — Cannot create directory /var/tmp/cache: [Errno 17] File exists:
‘/var/tmp’
Errno — 10
Description — Unable to create, write or read a file as expected.

Хм, странно. Перезагружаем хост, и вуаля:

# esxupdate —bundle /vmfs/volumes/ИМЯ_DATASTORE/updates/ESXi410-201304001.zip update

Unpacking deb_vmware-esx-firmware_4.1.0-3.36.1050704 ####################################################################################### [100%]
Unpacking deb_vmware-esx-tools-light_4.1.0-3.36.1050704 ####################################################################################### [100%]
Removing packages :vmware-esx-tools-light ####################################################################################### [100%]
Installing packages :deb_vmware-esx-firmware_4.1.0-3.36.105.. ####################################################################################### [100%]
Installing packages :deb_vmware-esx-tools-light_4.1.0-3.36… ####################################################################################### [100%]
The update completed successfully, but the system needs to be rebooted for the
changes to be effective.
~ # reboot

# uname -a
VMkernel localhost. 4.1.0 #1 SMP Release build-1050704 Mar 12 2013 10:57:29 x86_64 unknown

Эффект достигнут.

Не забываем после этого вывести хост из maintenance mode и отключить на нем ssh (Configuration/Security profile/Properties…/SSH/Options…/Stop)

Так же необходимо обновить VMware Tools на виртуалках. И если для Windows, Linux машин обновление заключается в запуске Guest-Install/Upgrade VMware Tools в автоматическом режиме, то для FreeBSD такой фокус почему-то не проходит.

На FreeBSD щелкаем Install/Upgrade VMware Tools — Interactive Tools Upgrade, и затем:
# mount /cdrom
Я всякие дистрибутивы храню обычно в /usr/distrib
# cd /usr/distrib/
# tar -zxvf /cdrom/vmware-freebsd-tools.tar.gz -C /usr/distrib/
# cd vmware-tools-distrib/
# ./vmware-install.pl
A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed. Continuing this install will
first uninstall the currently installed version. Do you wish to continue?
(yes/no) [yes]

Uninstalling the tar installation of VMware Tools.

Stopping services for VMware Tools

Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: done
Guest memory manager: done

File /etc/vmware-tools/vmware-user.desktop is backed up to
/etc/vmware-tools/vmware-user.desktop.old.0.

The removal of VMware Tools 8.3.7 build-341836 for FreeBSD completed
successfully.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/usr/local/bin]

In which directory do you want to install the startup script?
[/usr/local/etc/rc.d]

In which directory do you want to install the daemon files?
[/usr/local/sbin]

In which directory do you want to install the library files?
[/usr/local/lib/vmware-tools]

The path «/usr/local/lib/vmware-tools» does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]

In which directory do you want to install the documentation files?
[/usr/local/share/doc/vmware-tools]

The path «/usr/local/share/doc/vmware-tools» does not exist currently. This
program is going to create it, including needed parent directories. Is this
what you want? [yes]

The installation of VMware Tools 8.3.19 build-1048735 for FreeBSD completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command:
«/usr/local/bin/vmware-uninstall-tools.pl».

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: «/usr/local/bin/vmware-config-tools.pl». Do you
want this program to invoke the command for you now? [yes]

Initializing…

Making sure services for VMware Tools are stopped.

Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: done
Guest memory manager: done

The vmblock enables dragging or copying files between host and guest in a
Fusion or Workstation virtual environment. Do you wish to enable this feature?
[no]

No X install found.

Starting VMware Tools services in the virtual machine:
Switching to guest configuration: done
Guest memory manager: done
Guest operating system daemon: done
The configuration of VMware Tools 8.3.19 build-1048735 for FreeBSD for this
running kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking the following command:
«/usr/local/bin/vmware-toolbox» during an X server session.

Please remember to configure your network by adding:
ifconfig_vxn0=»dhcp»
to the /etc/rc.conf file and start the network with:
/etc/netstart
to use the vmxnet interface using DHCP.

Enjoy,

—the VMware team

Found VMware Tools CDROM mounted at /cdrom. Ejecting device /dev/acd0 …

VMware Tools обновлены.

В одной из следующих заметок рассмотрим обновление VMware vSphere 4.1 до vSphere 5.

,
Trackback

На данный момент нет комментариев

Добавьте ваш комментарий