Monday, December 28, 2009

"Server manager has detected that the processor on this computer is not compatible with Hyper-V" Error While Enabling Hyper-V Role

If you receive the below error during the installation of Hyper-V role :

"Server manager has detected that the processor on this computer is not compatible with Hyper-V.  To install this roll, the processor must have a supported version of hardware-assisted virtualization and that feature must 
be turned on in the BIOS."


First make sure you have Hardware Assisted Virtualization and DEP turned on BIOS. If you still see this error message after enabling those roles make sure you didn't enable the role using :

start /w ocsetup Microsoft-Hyper-V

If so you need to first uninstall it (
start /w ocsetup Microsoft-Hyper-V /uninstall) then install using the GUI (Server Manager -> Add Roles)

Monday, December 14, 2009

Redhat Virtual Experience 2009

Redhat Virtual Experience 2009 online convention is available for replay :


http://www-2.virtualevents365.com/rhexp/

Saturday, December 5, 2009

Eclipse Character Set Problem During Save

I'm using ECLIPSE as the Perl editor on my Windows machine together with EPIC Perl. If I copy/paste sample code from Perl books I get the error :

Save could not be completed.
Reason:

Some characters cannot be mapped using "Cp1254" character encoding.
Either change the encoding or remove the characters which are not supported by the "Cp1254" character encoding..



In order to overcome this problem go Window > Preferences > General > Content Types > Text > Perl Source Files > Default Encoding and make it UTF-8

Tuesday, December 1, 2009

How to see the path of a process that's listening on specific port

From time to time you can have multiple instances of Apache installed on your server. As ps aux only shows the entire path, if you started the process using full path convention; you need to check /proc presudo file system to gather path information for the process. I generally use the below one liner to fetch this info :

[root@VM1 bin]# ls -altr /proc/`netstat -natp | grep 80 |  awk '{print $7}' | awk -F/ '{print $1}'`/exe
lrwxrwxrwx 1 root root 0 Nov 30 13:03 /proc/25316/exe -> /apache_test/bin/httpd

It uses netstat to gather process ID for specific port (also lsof can be used) then checks the /proc/$PROCESS_ID/exe soft link to see where the process resides.