My VMware ESXi installation checklist

Last updated $Date: 2009-10-16 12:58:45 $

Martti Kupar inen <martti.kuparinen@iki .fi>

http://www.iki.fi/kuparine/comp/vmware/esxichecklist.html

Abstract

This is how I installed and configured all VMware ESXi hosts.


Table of Contents

Introduction
Network layout
Installing VMware ESXi
Configuring VMware ESXi
Installing RCLI
Installing VMware ESXi updates
Backing up VMware ESXi configuration
Backing up virtual machines
Converting existing virtual machines to ESXi
Miscellaneous
References

Introduction

VMware, Inc. has a bare-metal hypervisor for AMD and Intel x86 CPUs called ESXi which is available for free of charge. This document described how I installed and configured all our VMware ESXi hosts. Before trying to install ESXi on your host, make sure your hardware is compatible with ESXi (see also this list).


Network layout

The following picture gives an overview of our VMware ESXi setup.


Installing VMware ESXi

First modify/check your BIOS settings:

Next fetch the latest VMware ESXi from www.vmware.com and burn it on a CD disk. Boot from the CD and install it. Do not connect any ethernet cables before the initial configuration is done.

If you just want to test ESXi first before installing it on real hardware, you can install VMware ESXi on a USB memory stick. The only restriction with that setup is that you must have external storage (iSCSI or NFS) for virtual machines, all the configuration tasks presented here are same as when you install ESXi on HDD.


Configuring VMware ESXi

Some basic things are configured on the Direct Console User Interface (DCUI) while most of the configuration is done with the VMware Infrastructure Client from your Microsoft Windows PC. This PC needs either be on the management network or have access to it via some router. Our administrators are normally using Ubuntu PCs so we have a Windows XP running inside VMware Player, in other words, this management host can be a virtual machine instead of a normal PC.

Configuring with DCUI

Setting the root password

Select Configure Password from the main menu and set the root password.

Configuring IP address for the management interface

Now connect ethernet cable to the management NIC. Next select Configure Management Network from the main menu. Select Network Adapters and select the only adapter which has a connection. Next select IP Configuration, select Set static IP address and network configuration and set the address, netmask and gateway. Next select IPv6 Configuration and configure things as needed. Next select DNS Configuration and define you DNS server's IP address(es). Next select Custom DNS Suffixes and add your local network name. Next select Restart Management Network from the main menu. Finally connect ethernet cable to the remaining interfaces.

Configuring SSH

Activate SSH on the ESXi by following the following instructions. Please note that you must properly secure the management network as this opens an additional way to access the ESXi host.

Configuring with VMware Infrastructure Client

Configuring network interfaces and virtual switches

Virtual network configuration

We have four NICs (one quad-port Intel 82571EB card) on this host, one NIC for the management traffic, one NIC for all VLANs and two NIC for shared storage (iSCSI/NFS). The virtual machines are connected to one or more VLANs.

Configuring virtual switch for guests

Home > Inventory > HOSTNAME > Configuration > Networking > Add Networking > Virtual Machine > Create a virtual switch > vmnicN
  Network Label = VLANxxxx
  VLAN ID = xxxx

Home > Inventory > HOSTNAME > Configuration > Networking > vSwitch0 > Properties > Ports > vSwitch > Edit > Number of Ports = 248

Configuring virtual switch for iSCSI/NFS

Home > Inventory > HOSTNAME > Configuration > Networking > Add Networking > VMkernel > Create a virtual switch > vmnicN
  Network Label = Storage
  VLAN ID = Empty
  IP Address = xxx.xxx.xxx.xxx
  Netmask = 255.255.255.xxx

Setting the license key

Home > Inventory > HOSTNAME > Configuration > Licensed Features > Edit > Assign a new license key to this host > Enter Key...

Configuring NTP

Home > Inventory > HOSTNAME > Configuration > Time Configuration > Properties > Options
  NTP Settings > Add > esxgw.mycompany.com
  General > Start automatically

Configuring remote logging

Home > Inventory > HOSTNAME > Configuration > Advanced Settings > Syslog > Remote
  Syslog.Remote.Hostname = esxgw.mycompany.com
  Syslog.Remote.Port = 514

Configuring automatic VM start and stop

Home > Inventory > HOSTNAME > Configuration > Virtual Machine Startup/Shutdown > Properties > Allow virtual machines to start and stop automatically with the system

Creating resource pools

Home > Inventory > HOSTNAME > right click > New Resource Pool...

Configuring users and permissions

Home > Roles > Add Role >
  Name = ROLE1
  Virtual machine > Interaction >
    Configure CD media
    Device connection
    Power Off
    Power On
    Reset
    Suspend
  Virtual machine > State >
    Create Snapshot
    Remove Snapshot
    Rename Snapshot
    Revert to Snapshot

Home > Inventory > HOSTNAME > Users & Groups > right click > Add...
  Login = USER1
  Group = users

Home > Inventory > HOSTNAME > RESOURCEPOOL > right click > Add Permission... >
  Add... > USER1 > OK
  Assigned Role = ROLE1
  Propagate to Child Object = On

Configuring storage network - iSCSI

Configuration > Storage Adapters > iSCSI Software Adapter > Properties
  General > Configure > Enabled
  Dynamic Discovery > Add > iSCSI Server = xxx.xxx.xxx.xxx

Configuring storage network - NFS

Configuration > Storage > Network File System
  Server = xxx.xxx.xxx.xxx
  Folder = /some/path
  Datastore Name = xxx

Installing real certificates

TBD: http://www.vm-help.com/esx/esx3i/change_name_and_cert.php

scp server.key esx1:/host/ssl_key
scp server.pem esx1:/host/ssl_cert

Backing up the current configuration

TBD

vicfg-cfgbackup -s --server myesx --username root myesx.bak

http://support.dell.com/support/edocs/software/eslvmwre/EN/VES_3i/Solutions Guide/PDF/MSGPA03.pdf
Appendix E

Cloning existing configuration

TBD

/etc/vmware/esx.conf

TBD

TBD


Installing RCLI

Fetch RCLI from the VMware Infrastructure 3 Drivers & Tools page. Extract and install it on your Linux desktop.

tar xzf /home/www/vmware/VMware-RCLI-3.5.0-104314.i386.tar.gz -C /tmp
cd /tmp/vmware-rcli-distrib
sudo ./vmware-install.pl

Installing VMware ESXi updates

VMware ESXi, like any other host, needs maintenance from time to time. The VMware Update Manager is a simple Microsoft Windows application which makes it easy to push all the software updates available to your ESXi hosts. Another method is to use the vihostupdate utility from the RCLI package. See KB 1006089 and the vihostupdate(8) manual page for details how to use this utility.

In addition to installing VMware Update Manager or RCLI, you should sign-up for security notifications at VMware Security Center.


Backing up VMware ESXi configuration

TBD


Backing up virtual machines

TBD

http://communities.vmware.com/docs/DOC-8760
http://www.vmware.com/pdf/vi3_301_201_vm_backup.pdf


Converting existing virtual machines to ESXi

TBD

http://www.vmware.com/download/vi/drivers_tools.html


Miscellaneous

Mapping VMware Tools to virtual CD-ROM

TBD

cd /vmfs/volumes/datastore1
ln -s /usr/lib/vmware/isoimages/linux.iso
ln -s /usr/lib/vmware/isoimages/windows.iso
ln -s /usr/lib/vmware/isoimages/freebsd.iso

References