全部博文(343)
分类:
2010-09-13 17:45:41
1. Understand the differences between ESX and ESXi
First, you need a good understanding of the differences between ESX and ESXi. The two hypervisors run the same VMkernel, but managing ESXi is different from management ESX. ( VMware provides a basic on its website and a more detailed one in the .) ESX and ESXi used to differ considerably, but and the two hypervisors are now on par with each other.
2. Gain ESXi experience
Even if you've used ESXi, you may need to brush up on your skills. To experiment, set up a test environment so you don't affect your production environment. If you don't have spare hardware, you can run ESXi inside a virtual machine (VM) on an ESX host or with VMware Workstation.
Learn the different management techniques used with ESXi by installing the vSphere command-line interface (CLI) on your workstations and installing the vSphere Management Assistant (vMA) onto a host. Familiarize yourself with the vSphere PowerCLI. You should also experiment with the Tech Support Mode (TSM) console, which can be accessed remotely or locally.
3. Find alternatives to ESX Service Console agents and scripts If you use agents or scripts within the ESX Service Console, there are alternatives that work with ESXi. This includes backup and hardware monitoring agents. Check with vendors to make sure they have a technology that supports ESXi. This may mean upgrading older software. Although VMware is working to ensure third-party software compatibility, don't assume that any software will work with ESXI -- at least not the version of the software with which you are familiar. Some vendors may change functionality to achieve compatibility. Most vendor-specific hardware agents are built into the ESXi installable file via server customizations that are located in the oem.tgz file, which is installed on to ESXi's main disk partition. To get these agents you typically have to download a special copy of ESXi from the server manufacturer's website, as the ESXi installable file on VMware's website only contains standard, non-vendor specific Common Information Model (CIM) providers. If you use Perl scripts inside the Service Console, you should consider PowerShell, the vSphere CLI or vMA. 4. Consider scripting host machine installations As of the vSphere 4.1 release, ESXi supports automated ESX host deployment via scripted installations. Automated host deployment functionality is similar to ESX and involves PXE booting from a network interface card (NIC), loading the install image from a repository and running a KickStart script to customize the installation. You can read more about the process in and VMware's ESXi installation documentation. Host profiles can also customize host configurations, but their functionality is somewhat limited. You can also use scripted installs in conjunction with host profiles.
5. Plan your ESX to ESXi upgrade Once you've gotten experience with ESXi and are ready to upgrade existing ESX hosts to ESXi, there are a few approaches you can take. It's not necessarily an easy process; no tools convert ESX hosts to ESXi, so you have to install ESXi over the existing ESX installation. To make matters worse, local Virtual Machine File System (VMFS) volumes are not preserved as a default; the ESXi installer wipes out existing local partitions and creates new ones. Therefore, you have to move all VMs off a host before you can perform an upgrade on the host. If the host's virtual machines use shared storage, this isn't difficult, but if they use local storage, you must cold-migrate or use Storage VMotion to move them to other hosts and data stores. If you have limited disk space available on other data stores, you can use Storage VMotion and select the thin disk format to decrease the size of the disk files. If you have extra disk space, you can create a new ESXi host and then migrate virtual machines to the new host. If you have enough spare capacity to move VMs from the host being upgraded to other hosts and still satisfy High Availability (HA) requirements, you can VMotion or cold-migrate the VMs from the host, perform the upgrade, and then move VMs back to the newly upgraded ESXi host. 6. Choose your configuration method While performing the upgrade from ESX to ESXi is simple, reconfiguring the host after the upgrade can be a pain. During the conversion process, all settings specific to a host are lost. There is no way to back up these settings and restore them, so documenting critical settings is extremely important and can save time as you reconfigure the host. Settings you may want to document include vSwitch configurations, security settings, Domain Name System (DNS) and time settings, power management settings and others. If you have a small number of hosts with simple configurations, documenting these settings shouldn't be too difficult. But if you have many hosts with highly detailed configuration settings, the documentation process could be difficult and time-consuming. Fortunately, there are several ways to make this process easier. 7. Upgrade your ESX hosts to ESXi Once you are ready to upgrade an ESX host to an ESXi host and have gathered the information required to reconfigure it postconversion, you can take the following steps: Moving from ESX to ESXi can be a time-consuming and involved process, especially the first few times you do it. As you gain experience it should become easier.