Difference between revisions of "Amazon EC2: GPU Cluster"
imported>Ubervert (Added general headers to be expanded on at a later date) |
imported>Ubervert (Added full instruction set for a SUSE GPU instance) |
||
Line 2: | Line 2: | ||
=Creating a new image= | =Creating a new image= | ||
− | + | Check which distributions are supported, [[https://developer.nvidia.com/cuda-downloads here]]. All you are concerned about are the developer drivers. | |
+ | From this point on, we will deal with a SUSE instance, but the general stes will be the same. '''Only select an instance that can work with CUDA!''' | ||
+ | |||
+ | With the Classic Wizard, select SUSE Linux Enterprise Server 11. | ||
+ | Change the Instance Type from T1 Micro to Cluster Compute Eight Extra Large Instance (cg1.4xlarge). | ||
+ | Enable Termination protection. | ||
+ | Generate your key pair and allow SSH access to the server. | ||
+ | Review the instance type and ensure all details are correct. | ||
+ | Pricing information may be found [[https://aws.amazon.com/ec2/pricing/ here]]. | ||
=Installing CUDA= | =Installing CUDA= | ||
+ | Zypper is Suse's package manager; YaST could alternatively be used if more comfortable with a GUI. | ||
+ | First, SSH into the system, update the package cache and upgrade: | ||
+ | <pre>SSH -i /PATH/TO/PKEY root@ec2-...-amazonaws.com | ||
+ | zypper ref | ||
+ | zypper up</pre> | ||
+ | |||
+ | Install the needed packages and generate needed config: | ||
+ | <pre>zypper in gcc kernel-ec2-devel kernel-docs | ||
+ | cd /usr/src/linux | ||
+ | make cloneconfig</pre> | ||
+ | |||
+ | Restart the instance: | ||
+ | <pre>reboot</pre> | ||
+ | You will be booted from the instance, just wait for it to resume again. | ||
+ | |||
+ | Now get the latest CUDA install and run the file: | ||
+ | <pre>wget http://developer.download.nvidia.com/compute/cuda/$CUDA_MAJOR_VERSION/$CUDA_MINOR_VERSION/installers/cuda_5.0.35_$(Linux|Windows)_$ARCH_$IMG.run | ||
+ | chmod +x cuda_*.run | ||
+ | ./cuda_*.run | ||
+ | </pre> | ||
+ | We only need the developer drivers. Ensure that the drivers install correctly. | ||
+ | |||
+ | =oclHashCat-plus= | ||
+ | Get oclHashCat: | ||
+ | <pre>wget http://hashcat.net/files/oclHashcat-plus-0.14.7z</pre> | ||
+ | |||
+ | To extract and use oclHashCat, we must unpackage the 7zip archive. In many distributions 7z is provided by the p7zip package. SUSE users need to download the binaries and extract it: | ||
+ | <pre>wget http://downloads.sourceforge.net/project/p7zip/p7zip/9.20.1/p7zip_9.20.1_x86_linux_bin.tar.bz2?r=&ts=1365352571&use_mirror=hivelocity | ||
+ | tar xjvf p7zip_9.20.1_x86_linux_bin.tar.bz2</pre> | ||
+ | |||
+ | Unarchive file, extracting full path: | ||
+ | <pre>7z x oclHashcat-plus-0.14.7z | ||
+ | cd oclHashcat-plus-0.14</pre> | ||
− | = | + | Running oclHashcat-plus (in a screen session): |
+ | <pre>screen | ||
+ | ./cudaHashcat-plus64 $HASHES ($DICTIONARY | -m $hashmask | --rules=$RULES) </pre> | ||
+ | oclHashcat-plus assumes unsalted md5 by default | ||
=Tunneling= | =Tunneling= | ||
Line 17: | Line 61: | ||
* [[w:Secure Shell|Wikipedia Article]] | * [[w:Secure Shell|Wikipedia Article]] | ||
* [http://dltj.org/article/ssh-as-socks-proxy/ SSH socks proxy howto] | * [http://dltj.org/article/ssh-as-socks-proxy/ SSH socks proxy howto] | ||
+ | * [[http://www.skullsecurity.org/wiki/index.php/Passwords Passwords Lists]] | ||
+ | * [[http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/index.html oclHashcat-plus for Linux]] | ||
[[Category:Howtos]] | [[Category:Howtos]] | ||
[[Category:Software]] | [[Category:Software]] |
Revision as of 16:39, 7 April 2013
An Amazon EC2: GPU cluster is a remote GPU cluster serive.
Contents
Creating a new image
Check which distributions are supported, [here]. All you are concerned about are the developer drivers. From this point on, we will deal with a SUSE instance, but the general stes will be the same. Only select an instance that can work with CUDA!
With the Classic Wizard, select SUSE Linux Enterprise Server 11. Change the Instance Type from T1 Micro to Cluster Compute Eight Extra Large Instance (cg1.4xlarge). Enable Termination protection. Generate your key pair and allow SSH access to the server. Review the instance type and ensure all details are correct. Pricing information may be found [here].
Installing CUDA
Zypper is Suse's package manager; YaST could alternatively be used if more comfortable with a GUI. First, SSH into the system, update the package cache and upgrade:
SSH -i /PATH/TO/PKEY root@ec2-...-amazonaws.com zypper ref zypper up
Install the needed packages and generate needed config:
zypper in gcc kernel-ec2-devel kernel-docs cd /usr/src/linux make cloneconfig
Restart the instance:
reboot
You will be booted from the instance, just wait for it to resume again.
Now get the latest CUDA install and run the file:
wget http://developer.download.nvidia.com/compute/cuda/$CUDA_MAJOR_VERSION/$CUDA_MINOR_VERSION/installers/cuda_5.0.35_$(Linux|Windows)_$ARCH_$IMG.run chmod +x cuda_*.run ./cuda_*.run
We only need the developer drivers. Ensure that the drivers install correctly.
oclHashCat-plus
Get oclHashCat:
wget http://hashcat.net/files/oclHashcat-plus-0.14.7z
To extract and use oclHashCat, we must unpackage the 7zip archive. In many distributions 7z is provided by the p7zip package. SUSE users need to download the binaries and extract it:
wget http://downloads.sourceforge.net/project/p7zip/p7zip/9.20.1/p7zip_9.20.1_x86_linux_bin.tar.bz2?r=&ts=1365352571&use_mirror=hivelocity tar xjvf p7zip_9.20.1_x86_linux_bin.tar.bz2
Unarchive file, extracting full path:
7z x oclHashcat-plus-0.14.7z cd oclHashcat-plus-0.14
Running oclHashcat-plus (in a screen session):
screen ./cudaHashcat-plus64 $HASHES ($DICTIONARY | -m $hashmask | --rules=$RULES)
oclHashcat-plus assumes unsalted md5 by default
Tunneling
You can tunnel single ports or run a socks proxy with SSH. Google for SSH forwarding or see the howto below.