May
07

VMTool installation in a Linux Virtual Machine

FacebookStumbleUponGoogle BuzzGoogle ReaderLinkedInOrkutShare

What is VMTool & What are the advantages?

VMware tool is a suit of utilities that increase the virtual machine’s performance. Without the VMTool, we lose some important functionalities and convenience. This will increase the system performance and also allows better monitoring of the virtual machines. So the installation of the VMTool is vital. Installing VMware Tools eliminates or improves the following issues:

  • low video resolution
  • inadequate color depth
  • incorrect display of network speed
  • restricted movement of the mouse
  • inability to copy and paste and drag-and-drop files
  • missing sound

The VMTool installation in windows platform is very easy task, but it is somewhat difficult in Linux.

Installation procedure of VMTool in Linux Virtual Machine

The virtual machine must have CD/DVD drive to install VMTool.  To add cd drive to virtual machine,

1)  Login to ESX server and select the virtual machine.

2)  Right click on the virtual machine and select “Edit settings” and check whether the CD/DVD drive is present or not.

3)  If not, please add CD/DVD drive. To add virtual  CD/DVD drive,

  • Power off the virtual machine and right click on it and select “Edit Settings”
  • From virtual machine’s properties window click on “Add” button and choose CD/DVD drive from the list.

 

  • By following this window will add CD/DVD drive. Once the CD/DVD drive successfully added to the virtual machine, select device type as “Host Device” and device status as “Connect at power on”.

 

4)  Power on the virtual system with root user.

5)  Go to inventory -> Guest -> Install/Upgrade VMware Tools

6)  Select Install/Upgrade VMware Tools.

We need to mount our CD/DVD drive to a location. For this example we are mounting CD/DVD drive to /mnt/cdrom. For that follow the below steps,

  • Right click on desktop and Open one Terminal console
  • Create a folder “cdrom” in /mnt by

mkdir /mnt/cdrom

  • Now mount CD/DVD drive to /mnt/cdrom by,

mount /dev/cdrom /mnt/cdrom

  • Then go to the mount location by

cd /mnt/cdrom

  • Here we can see the rpm package of the VMTool by using “ls” command

7)  We can confirm whether the VMTool is previously installed or not by using the command,

Rpm –qa | grep VM

8)  From here we can install /upgrade the VMTool.

  • For installing VMTool

rpm – ivh VMToolpackagename.rpm (VMToolpackagename.rpm replaces the exact rpm package name that shown in CD/DVD drive)

  • For upgrading existing VMTool

rpm –Uvh VMToolpackagename.rpm (VMToolpackagename.rpm replaces the exact rpm package name that shown in CD/DVD drive)

9)  VMTool installation is completed, now we need to configure it for our running kernel. For that run the following command,

/usr/bin/vmware-config-tools.pl

10)  Now the VMTool installation and the configuration are completed. Now we can unmount the CD/DVD drive from /mnt/cdrom by

umount /mnt/cdrom

 

 

 

Apr
24

How LAN problems can impact on your firewalls

FacebookStumbleUponGoogle BuzzGoogle ReaderLinkedInOrkutShare

Firewalls have come a long way since the original stateless varieties, which were little more than a collection of access control lists. These were superseded by stateful firewalls which kept track of the state of network connections. Modern firewalls are now application aware, you can do things like block access to certain applications or prevent users from using applications like Bittorrent.

However, these firewalls don’t come without their problems. They require lots of computing power to analyze and filter applications as they pass through. On some networks it can be a challenge getting the right balance of application awareness and traffic throughput. The more features you enable, the more stressed your firewall becomes. A lot of firewalls are priced on throughput: the greater the throughput, the greater the price. As a result of this, I see some networks with firewalls that are just about coping due to the costs involved of upgrading to the next model.

One incident I worked on last week was with an Internet service provider (ISP). A couple of their corporate firewalls, which linked their staff networks to the Internet, were resetting themselves. They suspected a resource issue on the firewalls and installed extra memory, but this seemed to make the problem worse. We discovered the source of the problem by looking at the network traffic going from the network core to the firewalls.

We found that large volumes of syslog traffic was being routed to an external IP address. This was unusual as syslog is normally used for managing local networks.  We looked at the external IP addresses and saw that they were from an IP range that was once owned by the ISP. They sold it off and updated routing tables. However, nobody checked if any remaining systems were exporting data to this old subnet. Once routing tables were updated the syslog traffic was now sent out via their firewall. This caused an overload and the firewalls reset themselves.

It’s an interesting problem caused by the lack of IPV4 address space. A block of addresses is very valuable.  For example, earlier this year Microsoft paid $7.5 million to purchase a block of 666,624 IPv4 addresses. If you are looking to change IP addressing on your network, make sure you have monitoring in place so that you can identify what is using the IP addresses and for what reason.

The second incident I looked at involved a large university in Scotland. The connection rate limit on their main firewalls was peaking.  This resulted in complaints from network users that connections were dropping or that downloading and uploading was slow.

Networks within educational campuses are typically more open than they would be in a corporate environment. This means that even things like what’s on the TV schedules can affect network performance. Applications like Bittorrent can generate large numbers of connections as it downloads small pieces of data from lots of other clients on the Bittorrent network. In the case of this university network, users on their WiFi networks were tunnelling Bittorrent over TCP port 80.  This resulted in large amounts of traffic and connections. The firewall rules were updated to only allow 80 parallel connections per IP address and the firewalls stabilized.

 

Apr
01

Problems with Internet filters on college networks

FacebookStumbleUponGoogle BuzzGoogle ReaderLinkedInOrkutShare

Internet filters have being around for a while now, and they can form a vital part of the network security infrastructure. Typically they are used for

  • Blocking access to inappropriate or non-work related sites, sometimes called a blacklist
  • Preventing applications like Bittorrent from operating
  • Blocking malware and viruses from entering and leaving the network

However, many of the filtering systems used by small- to medium-sized organizations are not so good when it comes to managing sites that consume lots of bandwidth. Last week I worked with a school in the northeast who were having intermittent problems with their Internet connection. At regular intervals it would slow down causing problems for teachers, students and administrative staff.

While the Internet filtering system was doing its job and blocking sites on the blacklist, it was not providing visibility as to how bandwidth was being consumed. A lot of Internet filtering systems are like this: good at blocking but poor at reporting. The IT administrator downloaded a network traffic analysis system and we started to look at what was happening on the Internet connection.

Almost immediately we saw large amounts of video streaming traffic, an easy solution would have being to block access to these sites, but this was not straightforward. Teachers are now using a lot more online resources and this includes video streaming services and social networking sites. Students also want to access this material, but it will eat bandwidth if they are given unfiltered access. Too much filtering can also be bad as it can frustrate people, and the tech savvy will look for ways around them through online anonymizer sites and proxy servers. Filtering systems should also be checked regularly to make sure that the content filtering is working correctly.

The solution chosen by this school was to focus in on the top consumers of bandwidth in order to block specific computers from accessing high bandwidth sites. A dashboard was configured to show the current top consumers of bandwidth, and students and staff were contacted if they breached the fair use policy. Sometimes it came down to staff viewing class material in high definition when standard definition would have being sufficient. Students accessing lots of social networking sites were notified, and access to these sites was blocked from some systems located in public areas. Initially the IT administrators modified the host files on these systems so that some websites would not resolve correctly through DNS.

So far this approach has worked well. Their Internet filter blocks access to the inappropriate and malicious content and, by monitoring what bandwidth is being consumed, students and staff can enjoy an open learning environment with a minimum level of Internet filtering.

Networks that are too open are a nightmare to manage. Lots of issues with bandwidth usage, illegal downloads and malware. I am not a fan of too much filtering and control either.  I recently got back from a trip to the Middle East and Internet filters at some locations there prevented me from reading about the financial issues in Europe.  This big-brother approach was very frustrating for someone like me who is used to fairly open access to the Internet. The balance in my opinion is to block the really bad stuff and keep an eye on the top users of bandwidth and sites associated with things like social networking and video steaming.

 

Mar
16

Managing VMware Infrastructure using vSphere PowerCLI Commands

FacebookStumbleUponGoogle BuzzGoogle ReaderLinkedInOrkutShare

Using this Powershell commands we can manage our VMware Infrastructure (vCenter/ESX/ESXi). For that we need to install VMware PowerCLI. We can download it from below VMwaresite

http://communities.vmware.com/community/vmtn/vsphere/automationtools/powercli

After the installation of VMware PowerCLI, we can start the PowerCLI from Start > All Programs > VMware > VMware vSphere PowerCLI.

First we need to change the script execution policy of the PowerCLI; by default the execution policy will be disabled. For enabling this run the following command

“Set-executionpolicy remotesigned”

We can use “Get-Help” command to get the information about PowerCLI commands

Get-help commandname -examples

Get-help commandname -detailed

Get-help commandname –full

Some of the Basic PowerCLI commands and its usages

We can connect to vCenter or ESX server by using the following command

“Connect-VIServer -Server (IPADDRESS of the server) -Protocol https -User (USER NAME) -Password (PASSWORD)”

clip_image001

After the successful connection with the server we can perform powershell commands to manage the VMware Infrastructure.

To Get the details of the ESX host that we connected, we can use the command

“Get-Vmhost”

clip_image002

This will display the basic information about the server. If we need to more details about the host we can use “fl” switch with our previous command. fl = format list; ie., the command will be

“Get-Vmhost | fl”


clip_image004

We can use “Get-VM” or “Get-VM | fl” for getting the information about the VMs under the ESX host.

clip_image006

By using “Get-Harddisk vmname | fl” command, we can collect the hard disk information of a particular VM.

clip_image008

Like this we can use “Get-Datastore” for collecting the details of the datastores in ESX host.

“Get-Harddisk –Datastore datastorename” OR “Get-Harddisk –Datastore datastorename | fl” will help us to collect the details of all VMDK files in a particular datastore.

clip_image010

If we want to collect the details of all vmdk files in a datastore, use the command

“Get-Harddisk –Datastore datastorename

clip_image002[12]

We can use “Get-ScsiLun” for collecting the information about the ScSi LUNs.

Entering and Exiting the ESX host from the Maintenance Mode

For putting an ESX or ESXi host into the maintenance mode, first we need to connect the particular host by using the command “Connect-VIServer -Server (IPADDRESS of the server) -Protocol https -User (USER NAME) -Password (PASSWORD)”.

Once we successfully connected the host via VMware PowerCLI, run the following command to put the host into the maintenance mode.

“Set-VMHost –State maintenance”

12

For exiting the host from the maintenance mode follow the below command

“Set-VMHost –State connected”

13

Feb
28

Mount VMware virtual disk (VMDK file) in physical machine

FacebookStumbleUponGoogle BuzzGoogle ReaderLinkedInOrkutShare

VMDK files are the virtual hard disk files for VMware virtual machines. These virtual hard disks are saved as a file (VMDK file). Suppose the operating system in a VMDK file corrupted or if we need to copy data from a vmdk file to the physical system, VMware provides a tool called “vmware-mount” to mount VMDK file in physical system as a separate hard disk drive.

You can download VMWARE-MOUNT tool form the vmware site .

Install the tool in your physical system, once you finish the download.

VMDK mounting procedure

By default, the program will installed into “C:\Program Files\VMware\VMware DiskMount Utility”.

Open command prompt and go to the installation location by

cd \ “Program Files\VMware\VMware DiskMount Utility”

vmware-mount command is using for mounting a vmdk file. We can view all available switches with this command by

vmware-mount /?”

Suppose we have a vmdk file located in “C:\Windows XP Professional.vmdk” and we need to mount that in our Windows operating system.

For that in command prompt use the command syntax

“vmware-mount [driveletter:] [path-to-vmdk]”

Here in our example, vmware-mount K: “c:\Windows XP Professional.vmdk”

Techmaniac.in

Now the VMDK file will mount into our system as K drive. If any snapshots are associated with this VMDK file, it will prompt for the confirmation before mounting.

Since we have mounted the VMDK file as K drive, we can browse the K drive by putting K: in command prompt. Using Dir command we can view the content of this VMDK file.

Techmaniac.in

We can view and browse the content of K drive from My Computer also. From there we can copy data form VMDK file to our system.

Techmaniac.in

So by using this tool, we can access the data from VMDK file without using VMware application. This free tool gives us a good opportunity to troubleshoot the operating system related issues in a VM. Just try it now… !!!

 

 

 

 

Feb
16

Wi-Fi routers: Oldies are goodies

FacebookStumbleUponGoogle BuzzGoogle ReaderLinkedInOrkutShare

If you haven’t heard, the landscape for wireless router security has drastically changed.

The most important things to know in the old days were fairly simple: chose WPA2 security in combination with AES or CCMP (two names for the same thing) and a long password.

Of course, there is more to configuring a router than just that, but these three things were the definition of safety. WPA2 is the third generation of Wi-Fi encryption/security and it has stood the test of time. It’s safe.

But, it turns out that a router is like a house with great locks on the front door, but a side window left open.

Routers are computers and do many things in addition to WPA2. One of these other things is a simplified setup method  for people unable to deal with logging in to the router and choosing WPA2, AES and password longer than 12 characters (router configuration for dummies, if you will).

This alternate configuration protocol, Wi-Fi Protected Setup (WPS), is broken. It was designed poorly. Bad guys can exploit the design flaws to learn the Wi-Fi network password, even if the router is using WPA2-AES with a long password. The bug is in WPS (the side window left open), not in WPA2 (the impossible to crack lock on the front door).

Needless to say, when this news broke, I went logged in to my ancient Linksys WRT54GL router to disable WPS. But I couldn’t find it. The only thing that seemed like configuration-for-dummies was something called SES. But all the news stories spoke of WPS, not of SES.

Configuring SES on a Linksys WRT54GL router

The documentation in the router says nothing about SES. Perhaps it was explained in hardcopy but the setup instructions that came with the router are long gone. So too is the CD that came with it. All I could come up with was that SES stood for Secure Easy Setup.

One credible source of security information is the U.S. Computer Emergency Readiness Team (US-CERT). At the bottom of their Vulnerability Note describing the bug in WPS is a link for feedback. So, I asked whether SES was related to WPS.

Someone at CERT was kind enough to reply:

SES is a precursor to WPS.  It has the push-button configuration but not the external registrar PIN feature so it is not vulnerable to having a PIN brute forced remotely.

And thus the title of this blog posting. Older routers that do not support WPS at all are the safest ones available.

Go figure.

UPDATE:

Perhaps the worst aspect of the WPS security flaw is that on many routers, even when WPS appears to be disabled, it’s not. Which routers really disable WPS and which do not? It’s hard to know, which makes the lack of WPS support all the more appealing.

WPS was released in January 2007. Routers released earlier, probably don’t support it. The Wi-Fi Alliance, the governing body for Wi-Fi, publishes a list of certified routers that includes the date of certification.

 

Feb
08

Finding the top users of bandwidth

FacebookStumbleUponGoogle BuzzGoogle ReaderLinkedInOrkutShare

Recently I worked with a few IT managers who wanted to know one thing: who were the top users of bandwidth on their networks? In some cases, WAN links were oversubscribed, and in others, access to the Internet was slow due to large downloads.

Finding the top users of bandwidth can be broken down into two steps. First, you need to gain visibility into what is happening on the network; then you need to associate this with usernames. Seems straightforward enough, but this data is spread all around the network. This is especially true if you have multiple data centers.

To gain visibility into what is happening on your network, you must first understand what makes up your network core. A network core is typically made up of one or more network switches where servers, routers, firewalls and other switches connect. It is the crossroads of your network, and it is at this point where you can gain visibility into what is happening on the network. Even traffic from WAN sites gets routed through the core as users in the remote sites access applications and servers which are hosted in the data centre.

Once you have identified your network core, you can then use port mirroring or flow features to monitor what data is moving around the network. Flow features exist on most layer 3 devices, typically routers or network switches which can route packets between VLANs. When enabled the device will report on things like what systems are connecting to what and how much data is moving around. A simple analogy is a flow report is that its like a bill you get from your telephone company. You get to see what calls you made and how much they cost.

Port mirroring features are available on most network switches and some routers. It allows you to take a copy of the network packets as they move through the switch. Some switches allow you to monitor specific ports while others will allow you to monitor VLANs. The analogy I would use for port mirroring is that it is like an old fashioned phone tap. Not only do you know who is calling who but you also get the detail of what was discussed during the conversations. In networking terms this is sometimes referred to as DPI, deep packet inspection.

There are many systems and applications out there that can support packet capturing and/or flow data. You just need to find a system that works on your network and gives you the level of detail that you need. Both port mirroring and flow monitoring techniques will produce reports based on the hostname, IP or MAC addresses as the source of the data.

The next step in finding out who is responsible for generating the data on your network is to get the usernames from you network authentication infrastructure. A lot of networks use Microsoft Active Directory for this purpose, although other systems like RADIUS are also used. No matter what system you use I would recommend that you have auditing of user logons enabled. What you are looking for is that each time a user logs onto your network a record is kept of what system they logged onto and at what time. In most cases the system that the user logged onto is captured as an IP address.

Now it comes to putting the data together. Your traffic analysis (flow or packets) system should be able to produce an output like top IP addresses generating data on the network. You can then look at what usernames are associated with these systems by cross checking the logs on your authentication systems. The final report will then be the top users of bandwidth on your network.

 

 

Feb
01

Tips & Tricks in Windows

FacebookStumbleUponGoogle BuzzGoogle ReaderLinkedInOrkutShare

Enable Remote Desktop Remotely

To enable the remote desktop connection to a network system without going to the physical machine, follow:-

1. Go to Regedit of our local system

2.Click on File then select Connect Network Registry.

3. Here enter the IP address or system name of the computer to which you want to enable remote Click OK

4.Now the registry of remote machine will open.

6. Go to remote system registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server, here in the right panel side selectfdenyTSConnection(REG_DWORD).

7. Change the value data from 1 (Remote Desktop Disabled) to 0 (Remote Desktop Enabled)

Now try to establish the RDP connection to that remote system

How to disable dumprep.exe process

  1. Right click on “My Computer,” choose “Properties” from that menu.
  2. Click on “Advanced tab,”
  3. Click the “Error Reporting” button.
  4. Check the “Disable error reporting” box. You may choose to uncheck the the box below it, “But notify me when an error occurs,” if desired.

System Taskmanager Process list http://www.answersthatwork.com/Tasklist_pages/tasklist_d.htm

Workgroup and Domain are disabled

Restart the Netlogon Service

Enabling/Disabling Alt+Ctrl+Del Login

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

 

Jan
19

Enhanced vMotion Compatibility (EVC)

FacebookStumbleUponGoogle BuzzGoogle ReaderLinkedInOrkutShare

I have found few articles about Enhanced vMotion Compatibility (EVC) and would like share the details to you all.

I think you all are familiar with vMotion feature of vCenter server. In earlier versions, there are few limitations in migrating virtual machines from one to another. Unless you are using enhanced VMotion compatibility, VirtualCenter must match up the features of the source and destination host CPUs to ensure that a virtual machine and its applications will operate normally after migration with VMotion. VirtualCenter uses features reported by the CPUID instruction to do so. VirtualCenter

matches features between the source and destination host CPUs to ensure that all features are compatible.

Suppose we had implemented a VMware infra with 3 ESX hosts of identical CPU models (e.g. Intel) and formed a cluster. After few months or years, we planned to add another ESX host to the cluster, but unfortunately we don’t get the exact model of CPU as the old 3 ESX host has. Suppose the new ESX server contains updated model of Intel CPU. If we add this host into cluster, the vMotion will not work by default. CPUID instructions are used to query to CPU to determine the features of a particular CPU. In this case the result of CPUID instructions of the new host must be different than that of old ones as the new CPU included new features.

The updated CPU has latest set of instruction sets. The VM running under the new ESX host use this updated features. The guest OS and the applications in that VM must utilize the new features of the updated instruction sets. So if we migrate the VM from this new ESX host to old one, the applications will crash because the new functions that were available in new ESX host are no longer available in old ESX hosts. So the vCenter will check the CPU compatibility of source and destination ESX hosts before starting the migration. If it found the CPU is not compactable, it will block the migration.

Then the VMware work with CPU vendors to solve this issue and introduced EVC. It was first introduced with ESX3.5 update2. Additionally CPU vendors introduced few new features with their products to support this. Intel introduces their FlexMigration with Penryn and AMD AMD-V Extended Migration with their Rev. E or F Operations.

So in our example, we can enable the EVC in the cluster add the new ESX host to the cluster. When the new host is added, it’s CPUID instruction is set to respond with the same set of instructions that the existing CPU’s have. The EVC will not block the actual instructions, but it masks what the CPUID instruction reports. So the vMotion between these ESX host will work perfectly. The only one thing that we need to consider is the new CPU must have the capable for EVC.

In order to enable the EVC in a cluster, the all virtual machine’s must be powered off.

The EVC is a combination of hardware and software capability. VMware is still investigating to improve this feature. We can hope the upcoming versions of ESX will have the updated EVC feature

 

Dec
21

Intel rolls out six-watt Atom chip for cloud servers

FacebookStumbleUponGoogle BuzzGoogle ReaderLinkedInOrkutShare

Intel took the wraps off its new Atom-based S1200 processor family (aka Centerton), a trio of 64-bit SoCs (systems on chips) that run on a mere six watts of power. The S1200 is clearly groomed for the legions of low-power microservers increasingly taking up residence in cloud-computing farms across the globe, as well as energy-efficient storage and networking gear.

The chips are aimed at a specific processing task: lightweight, scale-out Web apps that don’t require heavy processing on the back end. These babies are all about high density, unlike the Intel Xeon line, which is groomed for compute-intensive apps that require a high rate of transactions.

“If you want the maximum possible throughput per node or per rack, Xeon delivers twice as much compared to Atom,” said Chris Feltham, Intel EMEA product manager. “If you want density, Atom will give more than five times [capacity]…. If your business model is based around the number of dedicated servers — hosting or revenue per tweet — [having] the maximum number of nodes is going to interest you.”

The Atom S1200 chips, which feature speeds ranging from 1.6GHz to 2.0GHz, include two physical cores and a total of four threads, all enabled with Intel’s Hyper-Threading Technology. The chip also includes 64-bit support, a memory controller supporting up to 8GB of DDR3 memory, Intel’s Virtualization Technologies, eight lanes of PCI Express 2.0, Error-Correcting Code support for higher reliability, and other I/O interfaces integrated from Intel chip sets. According to Intel, they’re compatible with existing x86 software.

The fact that Intel has managed to crank out a six-watt chip is quite noteworthy, demonstrating that green traits like low energy consumption have shifted from a novelty to a must-have feature. In comparison, the thermal design power for Intel’s Xeon processors in 2006 was 40 watts; this year, the company has reduced the draw to 17 watts. Rivals ARM and AMD have similarly strived to slash the energy draw of their server chips.

Intel also took the opportunity to boast that major server players like Dell, HP, and Supermicro are already embracing the S1200 for microserver designs and other gear.

Floundering AMD pre-emptively jumped on Intel’s announcement with a PR blast to journalists to deride Intel’s latest foray into the microserver space — and to take to jabs at the company’s struggles in the mobile market.

 

Older posts «