welcome: please sign in

Diff for "KvmAccess"

Differences between revisions 6 and 10 (spanning 4 versions)
Revision 6 as of 2008-02-11 23:42:05
Size: 2883
Editor: MichaelOlson
Comment: Add explanation for xtightvncviewer
Revision 10 as of 2009-04-01 18:55:35
Size: 3105
Editor: dhcp-37-70
Comment:
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
 ssh admin@kvm.hcoop.net -L 5900:kvm.hcoop.net:5900  ssh admin@kvm.hcoop.net -L 5900:`dig +short kvm.hcoop.net`:5900
Line 12: Line 12:
Then use your favorite VNC client to connect to localhost:5900. The KVM password has been distributed to admins; if you don't know it and think that you should, please contact them. Then use your favorite VNC client to connect to localhost:5900. The KVM password is the same as mire's root password.
Line 14: Line 14:
One known-good program is {{{xtightvncviewer}}}. After establishing a tunnel, a VNC connection using it may be established as follows. Note that the second command uses a numeric IP address because the KVM does not have a DNS server set. We don't want to set the DNS server, because we'd almost certainly forget to update it if it ever changed -- simplest to just run without one.

One known-good VNC client program is {{{xtightvncviewer}}}. After establishing a tunnel, a VNC connection using it may be established as follows.
Line 33: Line 35:
attachment:Picture%201.png {{attachment:Picture 1.png}}
Line 35: Line 37:
attachment:Picture%202.png {{attachment:Picture 2.png}}
Line 62: Line 64:
attachment:kvm1.png {{attachment:kvm1.png}}
Line 66: Line 68:
attachment:kvm2.png {{attachment:kvm2.png}}

1. IP KVM Tunneling

To use a VNC through a tunnel, one of the following commands must be issued More information needed...

 /usr/local/bin/stunnel -f -c -d 5900 -r kvm.hcoop.net:15900

or

 ssh admin@kvm.hcoop.net -L 5900:`dig +short kvm.hcoop.net`:5900

Then use your favorite VNC client to connect to localhost:5900. The KVM password is the same as mire's root password.

Note that the second command uses a numeric IP address because the KVM does not have a DNS server set. We don't want to set the DNS server, because we'd almost certainly forget to update it if it ever changed -- simplest to just run without one.

One known-good VNC client program is xtightvncviewer. After establishing a tunnel, a VNC connection using it may be established as follows.

 xtightvncviewer -bgr233 localhost

Once connected, you will be "looking through" an IP KVM which is connected to a KVM Switch (these are different devices!). By pressing scroll lock twice and then the up or down arrow (ie SCRL SCRL UP or SCRL SCRL DOWN) you can switch between the various machines connected to the KVM Switch. Currently there are two: deleuze and mire.

2. Serial Port

To access the serial port, use one of the following:

 ssh -t admin@kvm.hcoop.net tip /dev/tts/0
 ssh -t admin@kvm.hcoop.net tip /dev/tts/1

One command corresponds to each of the two serial port connectors on the KVM (we're not sure which is which). After executing the command above, your ssh session will give you a console on the chosen serial port (which is probably connected to the remote power-cycling machinery of one of the servers)

3. Screenshots

Picture 1.png

Picture 2.png

4. Configuration

To change the password to the KVM, ssh to root@kvm.hcoop.net and do two things:

  passwd root
  setup

The second command will run the KVM vendor's setup program. Don't forget to choose the "Write configuration changes" option when you're done with setup! This will cause the KVM to reboot, so do not be alarmed if you get disconnected.

Note that the KVM stores the password twice -- one as a unix password (for user "root") and another time via the "setup" program.

5. More Instructions

Log into kvm.hcoop.net with the secret password.

You can then click on the screen to launch the a Java applet, or you can connect with a vnc client natively if the applet is too slow on your system.

The screen will probably be blanked; press a key to refresh the screen.

Channel 1 is Deleuze, channel 3 is mire. To switch between screens use the sequence Scrl Lock, Scrl Lock, followed by the Up or Down key.

You cannot press the keyboard Scroll Lock button. Instead, click on the [S] button twice. Before you click, mouse over the [S] and ensure that it is highlighted as below.

kvm1.png

A caption with the channel number should appear in the upper left corner of the screen as pictured below. Now press Up or Down to change the active channel.

kvm2.png

KvmAccess (last edited 2014-03-21 20:23:44 by ClintonEbadi)