Translate

Total Pageviews

My YouTube Channel

Friday, 29 March 2013

Overhead Memory on Virtual Machines


Virtualization of memory resources has some associated overhead.
ESX/ESXi virtual machines can incur two kinds of memory overhead.
The additional time to access memory within a virtual machine.
The extra space needed by the ESX/ESXi host for its own code and data structures, beyond the memory allocated to each virtual machine.
ESX/ESXi memory virtualization adds little time overhead to memory accesses. Because the processor's paging hardware uses page tables (shadow page tables for software-based approach or nested page tables for hardware-assisted approach) directly, most memory accesses in the virtual machine can execute without address translation overhead.
The memory space overhead has two components.
A fixed, system-wide overhead for the VMkernel and (for ESX only) the service console.
Additional overhead for each virtual machine.
For ESX, the service console typically uses 272MB and the VMkernel uses a smaller amount of memory. The amount depends on the number and size of the device drivers that are being used.
Overhead memory includes space reserved for the virtual machine frame buffer and various virtualization data structures, such as shadow page tables. Overhead memory depends on the number of virtual CPUs and the configured memory for the guest operating system.
ESX/ESXi also provides optimizations such as memory sharing to reduce the amount of physical memory used on the underlying server. These optimizations can save more memory than is taken up by the overhead.


Click on this Link 

Virtual machine memory limits and hardware versions


Details

This article provides information about virtual machine memory limits and hardware versions.

Solution

Virtual machines that use hardware versions earlier than 7 do not account for reserved memory. Virtual machines using more than 4 GB of memory actually used 0.25 GB or 0.5 GB less memory, because the additional memory size was used to specify the highest space available as system RAM, ignoring the space occupied by PCI devices.

To determine the current hardware version of a virtual machine in the vSphere Client:
  1. Click the virtual machine.
  2. Click the Summary tab.
  3. Find the hardware version in the VM Version field.
Due to this, the guest recognizes less physical memory than you configured for the virtual machine. For example, if you configured 4 GB (memsize = 4096 in the .vmx configuration file) of memory, the guest only sees or recognizes 3.75 GB.

This behavior is expected and does not negatively affect the operation of the guest. Physical Address Extension (PAE) will not enable the guest to recognize all 4 GB of memory.

When you configure the virtual hardware to have 4 GB of physical memory, the virtual machine monitor (VMM) provides it to the guest as a single contiguous block of virtual physical memory. The guest also maps other devices in its address space, some of which must be at addresses less than 4 GB. As a result, this also makes some of the physical memory inaccessible. Therefore, the guest can only use 3.75 GB of physical memory from the 4 GB you originally configured.

Note: This does not waste 0.25 GB of memory. The VMM does not need to allocate the memory that the guest cannot access. There is only a slight difference between the size of memory you specify and the memory the guest recognizes. This also happens natively on some systems.

With hardware version 7 and later, VMware products reserve 1 GB for PCI devices. As a result, all the memory specified in the virtual machine configuration is available to the guest operating system. Memory settings now specify the amount of memory available, not the highest address available as system RAM, which is now 1 GB higher for virtual machines with more than 3 GB of memory.

Memory limits for VMware products


ESXi/ESX

ESXi/ESX virtual machinesHardware versionMemory limit
5.1932-bit and 64-bit virtual machines: 1011 GB
All specified memory is accessible to the guest. The guest accounts for space obscured by PCI devices.
5.0832-bit and 64-bit virtual machines: 1011 GB
All specified memory is accessible to the guest. The guest accounts for space obscured by PCI devices.
4.x732-bit and 64-bit virtual machines: 255 GB
All specified memory is accessible to the guest. The guest accounts for space obscured by PCI devices.
3.5432-bit and 64-bit virtual machines: 65532 MB
3.x432-bit and 64-bit virtual machines: 16384 MB
2.x332-bit and 64-bit virtual machines: 3600 MB


Workstation

Workstation virtual machinesHardware versionMemory limit
9.x964 GB for systems with 64-bit host operating systems
8 GB for systems with 32-bit host operating systems
8.x864 GB for systems with 64-bit host operating systems
8 GB for systems with 32-bit host operating systems
7.x732 GB for systems with 64-bit host operating systems
8 GB for systems with 32-bit host operating systems
6.5732-bit and 64-bit virtual machines: 8 GB
All specified memory is accessible to the guest.
6.x632-bit and 64-bit virtual machines: 8 GB
5.x3 and 432-bit and 64-bit virtual machines: 3600 MB
All specified memory is accessible to the guest.
4.x3 and 432-bit and 64-bit virtual machines: 3600 MB
All specified memory is accessible to the guest


Fusion

Fusion virtual machinesHardware versionMemory limit
5.x932-bit and 64-bit virtual machines: 8 GB
4.x832-bit and 64-bit virtual machines: 8 GB
3.x732-bit and 64-bit virtual machines: 8 GB
2.x732-bit and 64-bit virtual machines: 8 GB
1.x432-bit and 64-bit virtual machines: 8 GB


Player

Player virtual machinesHardware versionMemory limit
5.x964 GB for systems with 64-bit host operating systems
8 GB for systems with 32-bit host operating systems
4.x864 GB for systems with 64-bit host operating systems
8 GB for systems with 32-bit host operating systems
3.x732 GB for systems with 64-bit host operating systems
8 GB for systems with 32-bit host operating systems
2.5732-bit and 64-bit virtual machines: 8 GB
All specified memory is accessible to the guest.
2.x632-bit and 64-bit virtual machines: 8 GB
1.x3 and 432-bit and 64-bit virtual machines: 3600 MB
All specified memory is accessible to the guest.

The PC architecture reserves a portion of the address space that is below 4 GB for PCI devices. This space cannot be used for system memory. Also note that this is one of the main reasons for guests not recognizing all allocated physical memory.

For more information on the reservation for PCI devices, see PCI Hole.

Note: The information provided in this link is provided as-is and VMware does not guarantee the accuracy or applicability of this information.

This table lists the address space size available for system memory under 4 GB for each hardware version:

Hardware versionReserved memorySupported memory
91024 MB3 GB (3072 MB)
81024 MB3 GB (3072 MB)
71024 MB3 GB (3072 MB)
6512 MB3.5 GB (3584 MB)
4256 MB3.75 GB (3840 MB)
3496 MB*3.52 GB (3600 MB)

* Hardware version 3 does not support virtual machines larger than 3600 MB. As a result, the restrictions listed in this article do not apply to these virtual machines.
Source:-
http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=1014006

Virtual machine hardware versions

Symptoms

  • A virtual machine does not power on.
  • Some virtual machine operations are greyed out and unavailable.
  • You experience unexpected behavior in a guest operating system.

Purpose

This article guides you through the process of determining if your virtual machine's hardware version is the most up to date for the VMware product that you are using. The article also explains why a virtual machine created with one product may not power on from another product.

If you are experiencing a problem related to a virtual machine's hardware version, following this article resolves the problem.

For information specific to VMware Fusion, see Virtual machine hardware versions for Fusion (1022060).

Resolution

VMware products and their virtual hardware version

This table lists VMware products and their virtual hardware version:

Virtual Hardware VersionProducts
10ESXi 5.5
Fusion 6.x
Workstation 10.x
Player 6.x
9ESXi 5.1
Fusion 5.x
Workstation 9.x
Player 5.x
8ESXi 5.0
Fusion 4.x
Workstation 8.x
Player 4.x
7ESXi/ESX 4.x
Fusion 3.x
Fusion 2.x
Workstation 7.x
Workstation 6.5.x
Player 3.x
Server 2.x
6Workstation 6.0.x
4ACE 2.x
ESX 3.x
Fusion 1.x
Player 2.x
3 and 4ACE 1.x
Lab Manager 2.x
Player 1.x
Server 1.x
Workstation 5.x
Workstation 4.x
3ESX 2.x
GSX Server 3.x

Consider this information about virtual hardware versions when dealing with related problems:
  • A VMware product cannot power on a virtual machine with a virtual hardware version that is higher than what it supports.

    Note: If a virtual machine is created on a VMware product that supports a given virtual hardware version and is then migrated to a VMware product that does not support this level of virtual hardware, it does not power on. Consult the chart above. Virtual machines created by VMware products and versions located higher up in the chart cannot be powered on by products lower on the chart.
  • A VMware product can power on a virtual machine with a virtual hardware version that is lower than what it supports, but functionality may be lost. Lost functionality results in menu items related to virtual machine operations being grayed out and unavailable.
  • A virtual machine's hardware version can be downgraded only by Workstation 6.x or later, Converter 3.x or later, and Fusion 2.x or later.
  • Any VMware product in the chart above, with the exception of VMware Player, is able to upgrade the version of a virtual machine's hardware to the highest version that it supports.

Upgrading the virtual hardware

To upgrade the virtual hardware:

Note: For Lab Manager virtual machines, they must be undeployed, have their virtual hardware version upgraded from their configuration, then redeployed.
  1. Power on the virtual machine.
  2. Install VMware Tools.
  3. Power off the virtual machine.
  4. Change the hardware setting:

    In Workstation 8, go to VM > Manage > Change Hardware Compatibility.

    In ESXi/ESX, Server, Lab Manager, or GSX, depending on the version in use, right-click the entry for the virtual machine, then select:
    • Upgrade or Change Version
    • Upgrade Virtual Machine
    • Upgrade Virtual Hardware

Additional Information

Reactivation of a Windows guest operating system is not needed after upgrading the virtual hardware version. Update the VMware Tools version on the virtual machine for better performance, if prompted.

For information on virtual hardware versions and limitations, see Virtual machine memory limits and hardware versions (1014006).
Source:-
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003746

Friday, 15 March 2013

Find the name of the DB Server for vCenter

Today somebody asked me how to Find out the name of DB Server for vCenter Server. So Here is the Command that you can run in PowerCLI.

$vcName = $defaultVIServer.Name
$reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', $vcName)
$vcKeys = $reg.OpenSubKey("SOFTWARE\\VMware, Inc.\\VMware VirtualCenter\\DB")
$dsnName = $vcKeys.GetValue("1")
$odbcKeys = $reg.OpenSubKey("SOFTWARE\\ODBC\\ODBC.INI\\" + $dsnName)
$dbServer = $odbcKeys.GetValue("Server")

Write-Host "vCenter server:" $vcName 
Write-Host "vCenter DB server:" $dbServer