Translate

Total Pageviews

My YouTube Channel

Saturday, 26 April 2014

Two Available VCAP5-DCA Exams




      


On April 7, we released a new exam to qualify candidates for the VMware Certified Advanced Professional 5 - Data Center Administration (VCAP5-DCA) Certification.
This new exam (exam code VDCA550) is based on vSphere v5.5, where the existing exam (exam code VDCA510) is based on vSphere v5.0.
Passing either of these exams will earn VCAP5-DCA certification if you meet the other pre-requisites.



vSphere 5.5 Based Exam – Exam Code VDCA550

vSphere 5.0 Based Exam – Exam Code VDCA510


Recommended Courses

The following VMware courses can help you prepare for the VCAP5-DCA exam but are not required:

Friday, 25 April 2014

Does cores per socket Affect Performance?

This is one of the very good post available on the blogs.vmware.com. I hope this will be helpful for all of us to understand the Performance Impact of Cores per Socket.

There is a lot of outdated information regarding the use of a vSphere feature that changes the presentation of logical processors for a virtual machine, into a specific socket and core configuration. This advanced setting is commonly known as corespersocket.


It was originally intended to address licensing issues where some operating systems had limitations on the number of sockets that could be used, but did not limit core count.
It’s often been said that this change of processor presentation does not affect performance, but it may impact performance by influencing the sizing and presentation of virtual NUMA to the guest operating system.
Reference Performance Best Practices for VMware vSphere 5.5 (page 44):http://www.vmware.com/pdf/Perf_Best_Practices_vSphere5.5.pdf

Recommended Practices

#1 When creating a virtual machine, by default, vSphere will create as many virtual sockets as you’ve requested vCPUs and the cores per socket is equal to one. I think of this configuration as “wide” and “flat.” This will enable vNUMA to select and present the best virtual NUMA topology to the guest operating system, which will be optimal on the underlying physical topology.
#2 When you must change the cores per socket though, commonly due to licensing constraints, ensure you mirror physical server’s NUMA topology. This is because when a virtual machine is no longer configured by default as “wide” and “flat,” vNUMA will not automatically pick the best NUMA configuration based on the physical server, but will instead honor your configuration – right or wrong – potentially leading to a topology mismatch that does affect performance.
To demonstrate this, the following experiment was performed. Special thanks to Seongbeom for this test and the results.

Test Bed

Dell R815 AMD Opteron 6174 based server with 4x physical sockets by 12x cores per processor = 48x logical processors.
TestBed
The AMD Opteron 6174 (aka Magny-Cours) processor is essentially two 6 core Istanbul processors assembled into a single socket. This architecture means that each physical socket is actually two NUMA nodes. So this server actually has 8x NUMA nodes and not four, as some may incorrectly assume.
Within esxtop, we can validate the total number of physical NUMA nodes that vSphere detects.
8NUMANodes
Test VM Configuration #1 – 24 sockets by 1 core per socket (“Wide” and “Flat”)
VMTest1
Since this virtual machine requires 24 logical processors, vNUMA automatically creates the smallest topology to support this requirement being 24 cores, which means 2 physical sockets, and therefore a total of 4 physical NUMA nodes.
Within the Linux based virtual machine used for our testing, we can validate what vNUMA presented to the guest operating system by using: numactl –hardware
VMTest1NUMA
Next, we ran an in-house micro-benchmark, which exercises processors and memory. For this configuration we see a total execution time of 45 seconds.
VMTest1Result
Next let’s alter the virtual sockets and cores per socket of this virtual machine to generate another result for comparison.
Test VM Configuration #2 – 2 sockets by 12 cores per socket
VMTest2
In this configuration, while the virtual machine is still configured have a total of 24 logical processors, we manually intervened and configured 2 virtual sockets by 12 cores per socket. vNUMA will no longer automatically create the topology it thinks is best, but instead will respect this specific configuration and present only two virtual NUMA nodes as defined by our virtual socket count.
Within the Linux based virtual machine, we can validate what vNUMA presented to the guest operating system by using: numactl –hardware
TestVM2NUMA
Re-running the exact same micro-benchmark we get an execution time of 54 seconds.
TestVM2Result
This configuration, which resulted in a non-optimal virtual NUMA topology, incurred a 17% increase in execution time.
Test VM Configuration #3 – 1 socket by 24 cores per socket
TestVM3
In this configuration, while the virtual machine is again still configured have a total of 24 logical processors, we manually intervene and configured 1 virtual socket by 24 cores per socket. Again, vNUMA will no longer automatically create the topology it thinks is best, but instead will respect this specific configuration and present only one NUMA node as defined by our virtual socket count.
Within the Linux based virtual machine, we can validate what vNUMA presented to the guest operating system by using: numactl –hardware
TestVM3NUMA
Re-running the micro-benchmark one more time we get an execution time of 65 seconds.
TestVM3Result
This configuration, with yet a different non-optimal virtual NUMA topology, incurred a 31% increase in execution time.
To summarize, this test demonstrates that changing the corespersocket configuration of a virtual machine does indeed have an impact on performance in the case when the manually configured virtual NUMA topology does not optimally match the physical NUMA topology.

The Takeaway

Always spend a few minutes to understand your physical servers NUMA topology and leverage that when rightsizing your virtual machines.
Other Great References:
Source:-
Thanks to

Wednesday, 23 April 2014

How to Force a VM to ask for the answers for AnswerVM API Demonstration?

1. Connect with that esxi host shell where the vm is created through Putty (SSH Client) and then edit the .vmx file of that vm where you want input should be asked:-
 

2. Locate this attribute and change this UUID to any other value like in this demo I changed it from 59 to 54. You can use any value here. Once changed save the file and exit from here:-

 
3. Finally power on the VM either from GUI or CLI. In this demo I used CLI from vMA I tried to poweron the vm and then it got stuck there and then I used the another command to give the answer. All the commands are given here in this screenshot:-
 
 
That's done. That's how you can force the VM to ask for the answers.


How to Reset Expired SSO Admin Password?

  1. Connect with that machine where SSO is Installed.
  2. Click Start > Run, type cmd, and click OK. The Command Prompt window opens.
  3. Navigate to the directory SSOInstallDirectory\utilsBy default, the installation directory is C:\ProgramFiles\VMware\Infrastructure\SSOServer\utils.
  4. Run this command:

    rsautil reset-admin-password
  5. Enter the master password when prompted.

    Note: This is the password selected for the SSO administrator during the SSO installation. If you have changed your SSO administrator password later, the master password is still the original on
 

Tuesday, 22 April 2014

Cloud Computing Explained - What is Cloud Computing?


Earn a Microsoft Virtualization Certification for FREE till 30th June 2014

Microsoft Virtualization Exam Offer

Earn a Microsoft Virtualization Certification for FREE

Request a free voucher to take exam 74-409, which gets you a certification in Server Virtualization with Windows Server Hyper-V and System Center. Earn this certification if you are an IT professional who is responsible for designing, implementing, managing, and maintaining a virtualization infrastructure and/or want proof of your skills on current Microsoft virtualization technologies.

The number of free exams is limited, so be sure to schedule your appointment to lock-in your free exam. Vouchers expire and all exams must be taken by June 30, 2014. To register for your exam, go to http://www.register.prometric.com and, when prompted, use your voucher code to schedule your exam.

Link for this is :-
http://www.microsoftvirtualacademy.com/offers/virtualizationsquaredoffer

Configuring the VMware vCloud Director cell maintenance message (1026337)

Purpose

This article provides information about turning the VMware vCloud Director cell maintenance message on and off.

Resolution

If you want to stop a cell and let users know that you are performing maintenance, you can turn on the maintenance message.

When the maintenance message is turned on, users that attempt to log in to the cell from a browser see a message stating that the cell is down for maintenance. Users that attempt to reach the cell using the vCloud API receive a similar message.
 
To turn on the maintenance message:
  1. Stop the cell with the command:

    service vmware-vcd stop
  2. Run the command:

    $VCLOUD_HOME/bin/vmware-vcd-cell maintenance


    For example:

    /opt/vmware/cloud-director/bin/vmware-vcd-cell maintenance
When you are finished performing maintenance on a cell and are ready to restart the cell, you can turn off the maintenance message.
 
To turn off the maintenance message:
  1. Run the command:
    $VCLOUD_HOME/bin/vmware-vcd-cell stop
    For example:
    /opt/vmware/cloud-director/bin/vmware-vcd-cell stop
  2. Start the cell with the command:

    service vmware-vcd start
 
Source:-

Saturday, 5 April 2014

Using the pktcap-uw tool in ESXi 5.5 (2051814)

Purpose

The pktcap-uw tool is an enhanced packet capture and analysis tool that can be used in place of the legacy tcpdump-uw tool. Thepktcap-uw tool is included by default in ESXi 5.5.

Note: The tcpdump-uw tool can only capture packets/frames at the vmkernel interface level and cannot capture frames at the uplinks, or vSwitch, or virtual port levels. The new pktcap-uw tool allows traffic to be captured at all points within the hypervisor for greater flexibility and improved troubleshooting.
 
This article provides information on using the pktcap-uw tool for packet capture and analysis.

Resolution

Using the pktcap-uw tool

  • To obtain basic help and syntax information, use the -h option:

    # pktcap-uw -h |more
  • To view a live capture of a vmkernel port's traffic:

    # pktcap-uw --vmk vmkX
    For example, to capture frames/packets on vmk0:  

    # pktcap-uw --vmk vmk0
  • To view a live capture of a specific physical network card on the host (vmnic):

    # pktcap-uw --uplink vmnicX
    For example, to capture frames/packets on vmnic7:  

    # pktcap-uw --uplink vmnic7
  • To view a live capture of a particular vSwitch port for a virtual machine, use the --switchport option:

    # pktcap-uw --switchport switchportnumber
    For example, to capture frames or packets to and from a virtual machine connected to dvSwitchport 8: 

    # pktcap-uw --switchport 8
  • To capture the output to a file, use -o option:

    # pktcap-uw --vmk vmk# -o file.pcap
    For example, to capture the packets from vmk0 and save to test.pcap file under /tmp directory : 

    # pktcap-uw --vmk vmk0 -o /tmp/test.pcap
    Note: To end the capture, ensure to use Cntrl-C multiple times instead of Cntrl-Z because Cntrl-Z may leave background processes running that may prevent subsequent pktcap-uw commands from running and report the error:

    error: Can't create the session, Exiting

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
Source:-

Capturing a network trace in ESXi using Tech Support Mode or ESXi Shell (1031186)

Purpose

This article provides information on capturing network traces in ESXi 4.0 Update 1, ESXi 4.1, and ESXi 5.x. You may want to capture the network traces to investigate network problems.

Resolution

To capture the network traces in ESXi 4.x and ESXi 5.x, you can use the tcpdump-uw command in the Tech Support Mode.

Note: In ESXi 5.x, Tech Support Mode is replaced by ESXi Shell. For more information, see Using ESXi Shell in ESXi 5.0 and 5.1 (2004746).
The tcpdump-uw command is based on the standard tcpdump utility. Network traces are captured from the perspective of a network interface. The examples in this article use vmk0, though any VMKernel network interface could be used.

Capturing network traces with tcpdump-uw

  • To list the vmkernel interfaces, use the esxcfg-vmknic command with the -l option:

    # esxcfg-vmknic -l
  • To display packets on the vmkernel interface vmk0, use the tcpdump-uw command with the -i option:

    # tcpdump-uw -i vmk0
    Note:
  • To capture the entire packet, use the tcpdump-uw command with the -s option with a value of 1514 for normal traffic and 9014 if Jumbo Frames are enabled.

    Normal traffic: # tcpdump-uw -i vmk0 -s 1514Jumbo Frames enabled: # tcpdump-uw -i vmk0 -s 9014 -B 9

    Note: By default, tcpdump-uw can only capture a maximum of 8138 bytes due to buffer constraints. The -B 9 option increases the buffer to allow the capture of up to 9014 bytes.
  • To display all of the packets on vmk0 with verbose detail,  use the tcpdump-uw command with the -vvv option:

    # tcpdump-uw -i vmk0 -s 1514 -vvv
    Note: Refer the help page for tcpdump-uw command for more -v options.
  • To display only the TCP packets on vmk0, use the tcp option with the tcpdump-uw command.

    # tcpdump-uw -i vmk0 -s 1514 tcp
  • To see traffic to/from only a single IP address, you can use the host option:

    # tcpdump-uw -i vmk0 -s 1514 host x.x.x.x
  • To avoid seeing unwanted traffic types in the tcpdump-uw output, use the not option. For example, to filter out DNS and SSH traffic, use the following command: 

    # tcpdump-uw -i vmk0 -s 1514 port not 22 and port not 53

    Note: This is useful when doing a packet capture on a VMkernel interface when that same interface is also being used for an active SSH session.
  • To save the dump in pcap format for later use with Wireshark, use the traffic.pcap option.

    # tcpdump-uw -i vmk0 -s 1514 -w traffic.pcap
  • If the trace is running for long time, you can split the trace pcap file to chunks of desired size using the-C option.

    # tcpdump-uw -i vmk0 -s 1514 -C 100M -w /var/tmp/test.pcap
  • To limit
  •  the log files to a specified number, you can use the -W option. You can use this option if a trace must be set running for a long period of time, waiting for an even to occur. 

    For example:

    # tcpdump-uw -i vmk0 -s 1514 -C 100M -W 10 -w /var/tmp/test.pcap
    This command creates 10 trace files of size 100MB each. This ensures that you do not run out of space on ESX.

    Note: This option has the same effect of rotating the log files.

Additional Information

By default, packet captures on the vmkernel network interface (vmk) only captures the network traffic moving to and from the vmkernel on that interface. It does not capture other traffic moving across the Virtual Switch.

To capture all traffic moving across the Virtual Switch:
Source:-

Thursday, 3 April 2014

Accessing Direct Console User Interface (DCUI) from an SSH session

You may want to access the DCUI if you want to troubleshoot issues and there are no remote management tools available, such as DRAC, iLo, or RSA, to access the ESXi host.

For this Use Any SSH Client (Putty) > Provide the ESXi IP/Name, Username and Password >

To access the DCUI from an SSH session, run this command:

# dcui



To exit the DCUI, press Ctrl+C.



Typical administration tasks includes:-
- Reset ‘root’ password
- Configure Lockdown mode
- Configure, Restart, Test and Restore the VMware ESXi Management Network
- Restart Management Agents
- Configure Keyboard
- Troubleshoot
- View System Logs
- Reset System Configuration (Factory Reset)
-  Shutdown/Restart the VMware ESXi Host

Most actions are carried out by using [F2] on the keyboard or [F11] confirm changes, along with typical options such as [Y] and [N] to various system prompts. Before carrying out any task you will be required to supply the ‘root’ password. However, the first law of security is to secure the physical server – so take care to ensure your access to ILO/RAC/BMC interfaces are properly secured. Although the VMware ESX host can be rebooted from the DCUI this is regarded as an action of last resort. If the VMware ESX hosts has running VMs these will crash, and may or may not be restarted on other hosts depending on whether they are part of a cluster.

KB Reference:-
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2039638