Tuesday, June 4, 2013

Learning Hyper-V Lesson-1

So far I have learned two hypervisor VMWare ESX and XenServer . Done some big implementation with these hypervisor. Now I have started implementing Citrix solution on Hyper -V 2008R2 . Yeah  at SYN2013 Citrix has formally announced  Hyper-V 2012 support with XenDesktop 7 and will support XD 5.6 with Hyper-V 2012 post October. Though some post claim that they have done implementation of XenDesktop 5.6 with Hyper-V 2012 but Citrix do not support it. Main reason is SCVMM 2012 where MS has made changes to API significantly. XenDesktop uses SCVMM significantly to manage and control virtual machine.

Anyway with this post I will explain how we install VM tools on Hyper-V VM: It is called "Integration Service". With XenServer it is called Xen tool and with VMWare it is called VM tool

image image

I will also carry out few series on how cluster is setup and how Hyper-V is integrated.

Friday, May 17, 2013

Step by Step guide for Installing HP Insight Management Agents on ESX server

Why there is not a definitive guide on the Internet I do not know. HP’s site for the install is horribly vague, and the VMware site is similarly vague, referencing the HP site. Oh yeah that helps. Since I am not a linux geek by any measure, it was a bit frustrating. So I had to write my own. For anyone that happens to trip here from google, enjoy. These are written for the uninitiated.

Installing HP Insight Management Agents on ESX Server

In this case, I am using HP Insight Management Agents for VMware 8.1.0 (available here). I am also using ML370 G5 and DL380 G5 Proliant servers with VMware versions 3.0.1, 3.0.2, and 3.5 and a pre-existing HP SIM server running in my Windows Server environment.

(Click through for the full instructions)

Note: do not include the quotes (”) when entering commands.

PREP:

1 Download the correct Insight Manager agents for VMware.

2 Unzip the tgz file using WinRAR or something similar, and peruse the readme for up-to-date info.

3 Using the ILO utility or the physical console, hit Alt-F1, login as root at the command line.

4 To allow root ssh access in ESX as well as enable sshd client access (SFTP, SSH), we have to change the local sshd_config file.

5 At the command line, type: “vi /etc/ssh/sshd_config”

6 Go to the line that says PermitRootLogin, change from “no” to “yes”

7 If you are unfamiliar with vi, use arrow keys to navigate, put cursor on the “n” of “no”, hit the i key to insert, then type in “yes” and delete/backspace “no”. Then hit ESC twice to exit Insert mode. Type colon (:) to get the in-editor command line, type “wq!” and hit enter. This will save the doc and exit vi.

8 Back at the command line type: “service sshd restart”, hit enter.

9 After the service restarts, type “logout” to exit the console, hit alt-f11 to go back to the esx screen.

REMOTE, FROM PC:

1 Download WinSCP or a similar SCP utility (PuttySCP, etc). You will also need PuTTY for this process as well.

2 Open WinSCP, connect to your server with root, and upload the .tgz file you just downloaded to the /home folder on the remote system. You can close WinSCP after the transfer is done.

OR

Select the host and browse the datastore where we have to upload the file

clip_image002

Browse to the folder and then select and upload the file

clip_image004

3 Log in to the remote system using PuTTY, login with root. This should look and feel like the console.

4 Switch to /home directory: “cd /home”, where you copied the .tgz file.

5 Issue the following command to unzip the contents: “tar -zxvf hpmgmt-8.1.0-vmware3x.tgz”

6 This will create two new directories (/hpmgmt/810) under your current directory.

7 Change to the new directory by typing: “cd ./hpmgmt/810″

8 Run the command “./installvm810.sh -–install”, it will start the install.

9 Follow the defaults of the wizard (in depth script answers are below), when asked for the public string enter “public” 2 times (it will not be visible), and be sure to have the HP SIM server’s IP or FQDN and the unique private trap string. Pretty much always answer yes when enabling ports and the snmpd daemon. The only things that you will have to change from default is the snmp string info (see script section below).

10 Once the wizard is done and it restarts the services, you should see: “HP Insight Manager agents have been installed successfully!”

11 To check if the configuration has succeeded, log in to the HP System Homepage https://(esx server ip or dns):2381/. You should see the servername on the right side. Use the root login to access the homepage.

12 To log out of the console and close PuTTY type: “logout”, then hit Alt-F11 to go back to the status screen.

13 You’re done! You can log into the web interface and send a test trap to your SIM host.

SCRIPT ANSWERS:

(answers from script can be edited from web interface of insight mgmt agents)

1 This script will attempt to install the hp insight manager agents, do you wish to continue (y)

2 This script will attempt to shut down pegasus CIM in order to manipulate the HP insight manager agents, do you wish to continue (y)

3 For accessing the system management homepage, the port for hpim service (2381) should be enabled in the firewall, do you want to enable this port? (y)

4 For allowing discovery byt HP system management manager, the port for hpim service (2301) should be enabled in the firewall, do you want to enable this port? (y)

5 Do you want to enable the snmpd service? (y)

6 For adding the HP systems insight manager certificate in the SMH, the port (280) should be enabled in the firewall, do you want to enable this port? (y)

7 Welcome to the hp system health application and … hpasm package installation. … Do you wish to continue? (y)

8 Note: Your SNMP stack can load the 32bit hp proliant management extension… Press enter to continue (enter)

9 Do you want to load the hp modules even though they may “taint” your kernel? (y)

10 Do you require SNMP agents? (y)

11 Do you require storage agent support? (y)

12 Do you require NIC agent support? (y)

13 Do you wish to use an existing snmpd.conf? (n)

14 Enter the localhost SNMP read/write community string: public

15 Reenter the same input to confirm: public

16 Localhost snmp read only community strings are already known. Do you wish to change it? (n)

17 Enter read/write authorized management station IP or DNS name: (10.100.227.135)

18 Enter SNMP read/write community string for management station (private ip): public

19 Reenter the same input to confirm: (your private string) public

20 Read only community strings are already set to rocommunity public, do you wish to change them? (n)

21 The SNMP trap community strings are setup like this: trapcommunity public, do you wish to change this? (y)

22 Enter default SNMP trap community string: (your private string) public

23 Trap sinks are set up like this: trapsink localhost, do you wish to change this? (y)

24 Enter SNMP trap destination IP or DNS name: (your private IP of SIM) 10.100.227.135

25 Enter trap community string: (your private string) public

26 System contact is set to: syscontact root@localhost, do you wish to change it? (n) (can change it later)

27 System location is set to: syslocation room1, do you wish to change it? (n) (can change it later)

28 Do you wish to disable hpsmh support? (n)

Friday, March 22, 2013

How to Remote into Wyse T50 thin client

Lot many time if we have to take screenshot of thin client we use camera . Now this can be done via VNC also. Setup VNC server on Wyse thin client using password or without password

image

Download the VNC viewer from RealVNC.  Once it is launch and connected it gives similar experience as any other remote tools

image

How to capture TCP dump on Wyse T50

To capture Wyse T50 TCP dump we need to insure that we have "tcpdump" module is installed.  Now open terminal available

1.   

image

2. Now  run following command to get latest tcpdump

su -
cd /etc/apt
cp sources.list sources.list.back
cp sources.list.orig sources.list
sudo apt-get update

3. Now install tcpdump on Wyse terminal

image

And run following to autoclean

cp sources.list.back sources.list
sudo apt-get autoclean

4. Run following command to capture tcp dump

image

5. This will files under /tmp file

image

6. Now biggest challenge how to copy it? Insert pen drive into thin client and under following path you can copy tcpdump

image

Wednesday, March 20, 2013

Integrating foot pedal with XenDesktop

Foot Pedal are used to playback audio or video and used by various different industries. Here we are trying to integrate one such foot pedal with Express Scribe Transcription Software.
clip_image001[4]
These are HID based device which require few policies on XD and then if we need to run via thin client then few setting on VDA

Client USB redirection work with XenApp 6.0 and XenDesktop 5.0 or latter .
1.  Make sure this policies are in place
image
2. If we need to integrate with thin client then make sure we have registry hack for "AutoRedirect" explained in  CTX123015.  This need to made on virtual machine
image
To get the PID and VID for this foot pedal use device manager or use any physical machine where this was presentimage
3. When this need to integrate with thin client we need to do force redirect from end device itself. Recently some of the Wyse model do provide option using TCX USB Virtualizer
image
4. Lastly we should have USB device redirection rules applied on desktop group . Citrix eDocs explain in great detailimage
Once all these are in place this is how it show up when we use Wyse T50 thin client . Notice when Foot Pedal is plugged into thin client it does get auto detected.




And this is how it show up with Thick client