VMware
VMware ESX Server 2.1
Features | Documentation | Knowledge Base | Discussion Forums

previous Prev   Contents   Last   Next next

Using VMware ESX Server

Using VMware ESX Server

VMware ESX Server contains many features to help you manage your virtual machines' resources. In this section, we attempt to highlight some of these features, by listing tasks that you should perform on your ESX Server system.

The information contained in this table presumes that you have successfully installed and configured ESX Server on your hardware. To get help,see Installing and Configuring ESX Server.

Familiarizing Yourself with ESX Server

Familiarizing Yourself with ESX Server

The following table includes tasks from the VMware Management Interface for an Administrator (root user), who manages and maintains ESX Server.

 Task
 Description
 Log into the VMware Management Interface and familiarize yourself with its features.
 As the root user, you have additional privileges that other users don't have. In addition to the Status Monitor page, you have access to the Options page, that allows you to configure ESX Server, including networking, security, SNMP, users and groups, storage configuration, and so on.
 Create users and groups.
 Create users and place them into groups for different access to ESX Server. For best practice, we suggest that the root user doesn't own virtual machines. In general, users who create, access, and modify virtual machines don't need to have the additional administrative privileges of the root user.
 You might choose to have a virtual machine owned by a "flagship user" instead of a real person. By using a "flagship user," only one user account owns the virtual machines that are in production. An advantage of using flagship accounts is that flagship users never leave the company or go on vacation.
 See Creating a Flagship User and Changing Users and Groups for more information.
 Add additional disks and partitions, as needed.
 When creating your VMFS volumes, you should keep the default access type public, unless you plan to use your virtual machines for clustering. If you are running clustering software, select "shared" as your VMFS volume access type. See Configuring Storage: Disk Partitions and File Systems and Configuration for Clustering for more information.
 Decide how to organize your virtual machine configuration files.
 The default location for these files is the home directory of the user that created the virtual machine. However, in production environments, most virtual machines belong to teams rather than to individuals. Setting up some kind of central directory structure is a good idea.
 Upgrade any existing virtual machines from a previous version of ESX Server or another VMware product.
 The migration procedure is heavily dependent on the version of the VMware product used to create the original virtual machine.
 If you are migrating a virtual machine from a previous version of ESX Server, then see Migrating Older ESX Server Virtual Machines.
 If you are migrating a virtual machine from VMware Workstation or VMware GSX Server, see Migrating VMware Workstation and VMware GSX Server Virtual Machines.
 Be sure to read these instructions carefully, before attempting to migrate your virtual machine.
 Create "golden master" (template) virtual disks.
 To manage ESX Server more efficiently, you can create a small number of "golden master" (template) virtual disks. for easier deployment.These are virtual disks that have complete guest operating systems, installed applications, complete management- agent installs, virus detection software, complete VMware Tools installs, and so on. You can import the disks into a VMFS volume whenever you want to create a new virtual machine.
 Be sure that the golden master has the tools necessary to reset system attributes (hostname and IP address, NetBIOS hostname, domain and SID [Windows operating systems] for the virtual machines you clone. Also, be sure that the user that will be running the newly created virtual machine has the appropriate user and group permissions.
 Use the File Manager in the VMware Management Interface to import the "golden master" virtual disks. See Using the VMware Management Interface to Manage Your Virtual Machines.
 Set user and group permissions for the owner of a virtual machine.
 Log into the management interface and click Manage Files. Navigate to the configuration file (.vmx) of the virtual machine. Click the check box next to the virtual machine's configuration file, and click Edit Properties. Choose read, write, and execute properties for the owner of the virtual machine, and choose read and execute privileges for the owner's group, then click OK. Similarly, set read and write permissions for the owner on the virtual machine's virtual disk (.dsk) file. (Note that read permissions for a virtual disk file are sufficient if the virtual disk is nonpersistent).
 Be sure that the same user owns both the virtual machine's configuration and virtual disk file, and this user has full access privileges for both files.
 Set user and group permissions to view a virtual machine in the Status Monitor page of the management interface.
 For a user to see a virtual machine in the management interface, the user, or a group to which the user belongs, must have read access to that virtual machine.
 Set user permissions to connect to a virtual machine through the remote console.
 For a user to connect to and power on a virtual machine in the remote console the user, or a group to which the user belongs, must have read and execute access to that virtual machine's configuration file. Also, the user must have execute (x) permission on all parent directories.
 Configure your SNMP agent.
 ESX Server ships with an SNMP agent that allows you to monitor the health of the physical machine where ESX Server is running and of virtual machines running on it.

The following table includes tasks from the VMware Management Interface for a virtual machine user, who creates and modifies virtual machines.

 Task
 Description
 Log into the VMware Management Interface and download the remote console package.
 You can use the remote console to power on and power off your virtual machines, connect or disconnect devices (including the CD drive and network adapter), and set preferences (including mouse keyboard, and hot key behavior in the remote console window).
 You can install the remote console from the Status Monitor page of the management interface. Launch the remote console from your desktop (Windows operating systems) or from the management interface.
 Click the appropriate link for the operating system on your workstation.
 Learn to use the management interface.
 After login, the starting page of the management interface provides a summary of the virtual machines on ESX Server. Depending on your permissions, you'll be able to view and modify virtual machines. See Using the Status Monitor.
 Clicking on a virtual machine's name opens the details page for that virtual machine, where you can check its CPU, memory, disk, network, hardware, options, and users and events. Familiarize yourself with the information contained in these pages. See Configuring a Virtual Machine.
 Create a virtual machine.
 The Add Virtual Machine wizard only allows you to add a small number of devices to a virtual machine. This makes the initial creation process simpler. You may add devices later by clicking Add Device in the Hardware page for the virtual machine.
 If you have purchased the VMware Virtual SMP for ESX Server product, then you can create dual-virtual CPU SMP virtual machines.
 Be sure to take into account the type of applications you plan to run on this virtual machine when making your choices during its creation. See Creating a New Virtual Machine.
 Add additional disks, drives, network adapters, and SCSI devices.
 Click Add Device in the Hardware page for the virtual machine. See Configuring a Virtual Machine's Hardware.
 Install guest operating system and VMware Tools.
 VMware Tools is a software package installed in the guest operating system that gives you device drivers specific to VMware virtual devices where necessary, and it also includes several communication channels between the virtual machine and the ESX Server virtualization layer.
 For more information about VMware Tools and the services it provides, see VMware Tools Settings.

Working With ESX Server

Working With ESX Server

This section includes information on maintenance tasks, performance enhancements, and general troubleshooting tips.

The following table includes ESX Server maintenance tasks for an Administrator (root user).

 
 
 Back up your virtual machines.
 You can do backups for each virtual machine, or from the service console.
 Backups from the service console are best for system images, because they result in a backup bootable virtual disk, and are suitable for rapid redeployment. See Backing Up from within a Virtual Machine..
 Backups from within the virtual machine, using a backup agent, are best for application data because no system shutdown is required. See Backing Up Virtual Machines from the Service Console.
 Use scripts to schedule frequent tasks.
 For more information on VMware Scripting APIs, see www.vmware.com/ support/developer.
 View system logs and reports through the management interface.
 As needed, view the ESX Server log files for warnings, serious system alerts and messages through the management interface.

The following table includes ESX Server performance-related tasks for an Administrator (root user).

 Task
 Description
 Enhance performance on virtual machines, based on its application(s).
 ESX Server applies a proportional share mechanism to CPU, memory allocation, and disk bandwidth. Typically, the more shares a virtual machine has, the more CPU, memory or disk bandwidth it has.
 For example, virtual machines running a CPU-intensive application should have a greater minimum CPU and memory share than a virtual machine running a non-CPU intensive application.
 For additional information on resource management, see VMware ESX Server Resource Management.
 Enhance CPU performance on virtual machines.
 You can set minimum and maximum percentages as well as memory shares for each virtual machine. You can also select the processors on which the virtual machine runs.
 Enhance memory utilization on virtual machines.
 You can set memory shares for a virtual machine. If you have a NUMA machine, you can also select the NUMA affinity nodes for the virtual machine.
 Enhance disk bandwidth utilization on virtual machines.
 You can set disk bandwidth for a virtual machine. A virtual machine with more shares has more bandwidth.
 Enhance networking performance on virtual machines.
 You can manage networking performance by enabling traffic shaping and specifying network parameters.
 Remove any unnecessary programs or services from your virtual machines.
 Remove any unnecessary programs or services, such as CPU-intensive screensavers, from your virtual machines.
 Run Linux virtual machines without the X Window system, if possible.
 Be sure that the service console has enough CPU and RAM.
 If you are running a lot of virtual machines on ESX server, and you notice a degradation in system performance, then you should increase the CPU minimum for the service console.
 Be sure there is sufficient swap space for your guest operating system.
 For resource management purposes, ESX Server may increase the memory utilization within a guest operating system. Therefore, it is important to ensure that the guest operating system has sufficient swap space.
 Add additional swap space in the guest operating system, equal to the difference between the virtual machine's maximum and minimum memory sizes.
 Remove any unnecessary programs or services from your service console.
 Do not run the X Window system in your service console.
 Use SNMP to watch memory, resource usage, and workloads on ESX Server and its virtual machines.

The following table includes some general troubleshooting information.

 Problem
 Suggestions
 Can't start a virtual machine.
 Check permissions on the virtual machine configuration file and on the virtual disk. See Setting Permissions for Owners of Virtual Machines.
 Check that there is enough memory to power on this virtual machine. See Sizing Memory on the Server.
 Check that there is enough unreserved swap space. For more information, see Swap Space and Guest Operating Systems.
 Check that the virtual disks are in a VMFS volume. If the virtual disk file is from VMware Workstation or VMware GSX Server, be sure the virtual disk has been properly imported, through the management interface, into ESX Server. See Migrating VMware Workstation and VMware GSX Server Virtual Machines.
 Can't connect to the VMware Management Interface.
 Check to see if there has been a loss in IP connectivity.
 Check that the NIC duplex or speed matches with the Ethernet switch.
 Check that the service console is not swapping.
 Check that the root file system has available disk space.
 Can't connect to the VMware Remote Console.
 Check to see if there has been a loss in IP connectivity.
 Check that the NIC duplex or speed matches with the Ethernet switch.
 Check that the service console is not swapping.
 Check that the root file system has available disk space.

previous Prev   Contents   Last   Next next